Commit Graph
42 Commits
Author SHA1 Message Date
Felix Angelov c831a50753 fix(stream_chat_persistence): isNotNull -> isNull 2021-03-24 09:25:39 -05:00
Felix Angelov b39d5e1811 chore(stream_chat_persistence): remove deprecated isNotNull use 2021-03-24 00:54:55 -05:00
Felix Angelov 991b236ea4 fix(stream_chat_persistence): tests 2021-03-24 00:49:11 -05:00
Sahil Kumar e6a27754a2 Merge branches 'develop' and 'persistence/add-tests' of https://github.com/GetStream/stream-chat-flutter into persistence/add-tests
 Conflicts:
	packages/stream_chat_persistence/analysis_options.yaml
	packages/stream_chat_persistence/lib/src/dao/channel_query_dao.dart
	packages/stream_chat_persistence/lib/src/dao/message_dao.dart
	packages/stream_chat_persistence/lib/src/dao/user_dao.dart
	packages/stream_chat_persistence/lib/src/db/moor_chat_database.dart
	packages/stream_chat_persistence/lib/src/db/shared/native_db.dart
	packages/stream_chat_persistence/lib/src/db/shared/unsupported_db.dart
	packages/stream_chat_persistence/lib/src/mapper/channel_mapper.dart
	packages/stream_chat_persistence/lib/src/stream_chat_persistence_client.dart
	packages/stream_chat_persistence/pubspec.yaml
2021-03-19 18:26:31 +05:30
Sahil Kumar 74f1752ceb test(persistence): add coverage:ignore-file for entities and db/shared directory
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 18:21:59 +05:30
Sahil Kumar e00881fbdd test(persistence): add getThreadMessagesByParentId along with pagination test in message, pinned message dao.
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-19 16:42:16 +05:30
Sahil Kumar bea545b154 test(persistence): add tests for stream chat persistence client
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-18 20:38:26 +05:30
Sahil Kumar 827e6a5dbd refactor(persistence): remove redundant UsersTable getter from ConnectionEventDao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-17 19:52:40 +05:30
Salvatore Giordano a14045a09d fix analysis 2021-03-16 16:52:44 +01:00
Sahil Kumar e87a8a07a1 test(persistence): add tests for user dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 21:11:07 +05:30
Salvatore Giordano 574cca792b fix pana 2021-03-16 16:25:20 +01:00
Sahil Kumar 8fefa3c129 test(persistence): add test for pinned message dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 18:53:07 +05:30
Sahil Kumar a24ec99a44 test(persistence): add tests for message dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 18:42:06 +05:30
Sahil Kumar 083ca28283 test(persistence): Add test for channel query dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 16:48:56 +05:30
Sahil KumarandGitHub 8ec54f3834 style: Apply team linter in stream chat persistence (#331)
* lint(persistence): Apply team linter

Signed-off-by: Sahil Kumar <[email protected]>

* style: flutter format

Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 10:23:44 +01:00
Sahil Kumar 4cbbc059d3 test(persistence): Add tests for channel dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 14:17:01 +05:30
Sahil Kumar 8c0da62f79 style: flutter format
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 12:05:36 +05:30
Sahil Kumar 6bdd065888 lint(persistence): Apply team linter
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 12:00:32 +05:30
Salvatore Giordano eaaa5c9962 fix getThreadMessagesByParentId 2021-03-12 15:07:47 +01:00
9952265109 fix: persistence (#329)
* fix(llc): Save original passed persistence for client reconnection.

Signed-off-by: Sahil Kumar <[email protected]>

* fix(persistence): Check for empty channels before applying offset

Signed-off-by: Sahil Kumar <[email protected]>

* fix(llc): Remove debug logs

Signed-off-by: Sahil Kumar <[email protected]>

* fix(persistence): Reset isolate on successful disconnect

Signed-off-by: Sahil Kumar <[email protected]>

* use mutexes in persistence client

* fix(persistence): use `super.updateChannelStates`

Signed-off-by: Sahil Kumar <[email protected]>

* fix(persistence): fix database multiple times creation.

Signed-off-by: Sahil Kumar <[email protected]>

Co-authored-by: Sahil Kumar <[email protected]>
2021-03-12 14:16:41 +01:00
39c2106497 feat: codecov (#327)
* [llc] add codecov in gh action

* update flag

* update path

* fix codevcov script

* fix codevcov script

* [persistence]: add basic test

* [persistence] add codecov

* [persistence] vgv action

* update threashold

* fix ci

* add coverage for ui packages

* fix ci

* test gh action

* test gh action

* update threashold

* fix(persistence): fix tests

Signed-off-by: Sahil Kumar <[email protected]>

Co-authored-by: Sahil Kumar <[email protected]>
2021-03-11 16:36:22 +01:00
Salvatore Giordano e7334dcf9b fix 2021-03-01 16:28:09 +01:00
Salvatore Giordano 5391919e33 fix 2021-03-01 16:09:49 +01:00
Sahil Kumar 623d48e32b Add custom sort support for offline channels
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 18:30:22 +05:30
Sahil Kumar cf6ae8761e [Persistence] Add support for pinned messages
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-22 17:39:23 +05:30
Sahil Kumar 0a6948cf32 [Async Attachment Upload] Initial implementation
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-16 21:21:15 +05:30
Salvatore Giordano 711c20b967 fix persistence bugs and update example 2021-02-01 16:50:52 +01:00
Salvatore Giordano 0d4db87906 check messagePagination nullability 2021-02-01 09:55:53 +01:00
Sahil Kumar b8e9d8efdc [Persistence] Add more docs
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-01 13:55:29 +05:30
Sahil Kumar e85a4326d6 [Persistence] Delete members, read data before adding new one
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-29 19:17:07 +05:30
Sahil Kumar 5954dfa2b2 [Persistence] Analyzer warning
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-29 17:38:11 +05:30
Sahil Kumar 1c54b3f36f [Persistence] Doc
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-29 17:32:29 +05:30
Sahil Kumar 0013cb98fd Ran formatter
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-29 17:31:43 +05:30
Sahil Kumar db275bfa71 [LLC, Persistence] Use pagination options instead of single filter
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-28 19:51:48 +05:30
Sahil Kumar 86a122aa23 [LLC, Persistence] Add doc comments
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-28 19:48:54 +05:30
Sahil Kumar 3b9af05214 [StreamChatPersistence] Fix ownReactions userId bug
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-27 15:51:55 +05:30
Sahil Kumar 1521558304 Make stream_chat_persistence a add on dependency instead of shipping it with the llc
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-27 12:52:37 +05:30
Sahil Kumar eaf322f660 [StreamChatPersistence] Ran formatter
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-26 16:55:23 +05:30
Sahil Kumar a869e458f4 [StreamChatPersistence] Add generated files
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-26 16:52:08 +05:30
Sahil Kumar a168d3695d [StreamChatPersistence] Fix connectionEventEntity, MessageDao
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-26 15:58:11 +05:30
Sahil Kumar 82fee14f68 [StreamChatPersistence] Ran formatter
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-25 19:23:38 +05:30
Sahil Kumar 657b58af8b [StreamChatPersistence] Add initial implementation
Signed-off-by: Sahil Kumar <[email protected]>
2021-01-25 19:14:55 +05:30