Akulij
|
58a16a5927
|
make CallbackInfo::store to consume self and return
|
2025-04-29 19:51:54 +03:00 |
|
Akulij
|
a00c0017bb
|
create CallbackInfo::get_callback method
|
2025-04-29 19:51:17 +03:00 |
|
Akulij
|
48bb7b133b
|
make DbError a custom error type to handle internal errors
|
2025-04-29 19:50:42 +03:00 |
|
Akulij
|
221fb87c8f
|
create query_call_consume macro
|
2025-04-29 19:31:23 +03:00 |
|
Akulij
|
078e2fd62a
|
create CallbackInfo and its tests
|
2025-04-29 17:37:20 +03:00 |
|
Akulij
|
0973499652
|
make query_call macro public
|
2025-04-29 17:35:49 +03:00 |
|
Akulij
|
b56f07e6be
|
rename db/tests.rs to dt/tests.mod.rs
reason: there will be way more tests, so its better to use multiple
files for them
|
2025-04-29 11:51:24 +03:00 |
|
Akulij
|
ccd38178ea
|
add todo to extend type in StorageError
|
2025-04-28 22:55:52 +03:00 |
|
Akulij
|
ec49ab24b6
|
clippy: fix warning unused result
|
2025-04-28 22:54:33 +03:00 |
|
Akulij
|
a51344d089
|
use log crate instead of raw prints
|
2025-04-28 22:53:58 +03:00 |
|
Akulij
|
fd3ef221c9
|
cargo add log
|
2025-04-28 22:44:01 +03:00 |
|
Akulij
|
ffe2fd8bc1
|
create custom type to return all errors
|
2025-04-28 22:43:18 +03:00 |
|
Akulij
|
1c9ab867ed
|
follow new db function declarations
|
2025-04-28 22:43:02 +03:00 |
|
Akulij
|
c11e671b15
|
return custom error in src/mongodb_storage.rs to support return of serializer error
|
2025-04-28 22:41:21 +03:00 |
|
Akulij
|
55d393eb2c
|
return result instead of unwraps in db/mod.rs
|
2025-04-28 22:40:38 +03:00 |
|
Akulij
|
3761cc6fa8
|
add atribute allow clippy::unwrap_used in tests, since it's what tests should do
|
2025-04-28 21:07:45 +03:00 |
|
Akulij
|
091c0a436e
|
ignore macos's file
|
2025-04-28 20:23:43 +03:00 |
|
Akulij
|
982b6c8ff0
|
set clippy rule unwrap used as warning
|
2025-04-28 20:23:00 +03:00 |
|
Akulij
|
329ead4f6e
|
add thiserror as a dependency
|
2025-04-28 20:22:41 +03:00 |
|
Akulij
|
8b371ebb2f
|
clippy: fix warnings in db/tests.rs
|
2025-04-28 18:34:25 +03:00 |
|
Akulij
|
adfd019166
|
add clippy lint rule
|
2025-04-28 18:07:34 +03:00 |
|
Akulij
|
2aff289a96
|
clippy: fix warnings
|
2025-04-28 17:47:31 +03:00 |
|
Akulij
|
03e42c9108
|
fix bug: editing text kept previous media in message
|
2025-04-28 00:06:22 +03:00 |
|
Akulij
|
a905325a52
|
update user in db from telegram user info
|
2025-04-27 23:55:45 +03:00 |
|
Akulij
|
4bf7c214b9
|
create update_user method on User struct
|
2025-04-27 23:55:24 +03:00 |
|
Akulij
|
345ea66f8e
|
fix cargo warnings
|
2025-04-27 23:04:58 +03:00 |
|
Akulij
|
82045a39a9
|
create BotController
|
2025-04-27 23:01:40 +03:00 |
|
Akulij
|
b318e3ec8e
|
use DB::init function instead of manual connection and migration
|
2025-04-27 21:04:34 +03:00 |
|
Akulij
|
09f7e76d96
|
create DB::init function
semantically, its better to have function, that fully prepares db
(connect and migrate)
|
2025-04-27 21:02:05 +03:00 |
|
Akulij
|
29acb02a97
|
fix message of becoming an admin
|
2025-04-26 19:56:33 +03:00 |
|
Akulij
|
403e06f542
|
call db migration on init
|
2025-04-26 00:28:47 +03:00 |
|
Akulij
|
a765dce328
|
use MongodbStorage
|
2025-04-26 00:28:19 +03:00 |
|
Akulij
|
7fe3a76052
|
create MongodbStorage
|
2025-04-26 00:26:59 +03:00 |
|
Akulij
|
4d2d344ea2
|
fix: update is_admin only on insert (in upsert query)
|
2025-04-26 00:26:29 +03:00 |
|
Akulij
|
0a64b25044
|
fix: used wrong collection in get_literal
|
2025-04-26 00:25:32 +03:00 |
|
Akulij
|
41ac1d7cea
|
create db migration function
will contain indexes
|
2025-04-26 00:21:41 +03:00 |
|
Akulij
|
08167143aa
|
migrate db to mongodb from diesel(postgres)
|
2025-04-25 22:44:50 +03:00 |
|
Akulij
|
e4007095ab
|
add mongodb and bson(flag chrono-0_4) as a dependency
|
2025-04-25 21:06:40 +03:00 |
|
Akulij
|
e2d2cebed8
|
cargo fmt
|
2025-04-25 21:05:54 +03:00 |
|
Akulij
|
a940ef5e83
|
move towards generefication of DB implementation
|
2025-04-22 22:51:54 +03:00 |
|
Akulij
|
b6ae5170a4
|
add support for media group in user configurable messages
|
2025-04-21 22:45:30 +03:00 |
|
Akulij
|
0bc97a9f58
|
fix: in drop_media_except handle case when group is null
|
2025-04-21 22:04:17 +03:00 |
|
Akulij
|
bdb5f10d34
|
add test for drop_media_except
|
2025-04-21 22:03:59 +03:00 |
|
Akulij
|
138a15ec67
|
improve test_is_media_group_exists
|
2025-04-21 22:03:35 +03:00 |
|
Akulij
|
a2f135ccda
|
feature: add support for video in user configurable messages
|
2025-04-21 20:23:09 +03:00 |
|
Akulij
|
5492beec41
|
add support for photo in message
|
2025-04-18 14:51:22 +03:00 |
|
Akulij
|
0950ccb150
|
create db.is_media_group_exists
|
2025-04-18 13:52:45 +03:00 |
|
Akulij
|
539b5ee48b
|
update db tests
|
2025-04-18 13:32:38 +03:00 |
|
Akulij
|
92c4f803eb
|
add support for media_group
|
2025-04-18 13:32:21 +03:00 |
|
Akulij
|
8e3f1496ae
|
move db.rs to db/mod.rs for better file structure
|
2025-04-18 13:22:59 +03:00 |
|