Commit 7723720
feat(cat-voices): database queries cleanup (#3672)
* docs: capture initial times
* chore: remove cacheDocument
* turn off logging
* chore: use debugPrint instead of logger
* feat: bulk documents save
* batching sync
* chore: move exact ref resoling to getDocumentData instead of index
* fix: DocumentRepository
* chore: simplify getting documents data
* remove getAllDocumentsRefs and getCachedDocumentsRefs from DocumentRepository. Index is only available in DocumentDataRemoteSource
* chore: update docs
* simplified document index endpoint
* remove randomness from LocalCatGateway
* indexing by batch size
* wip: filtering by types
* Rework filtering refs + checking all refs if already cached in parallel
* docs
* update indexing.csv
* update indexing csv
* chore: cleanup
* trailing new line
* chore
* move performance tab to docs
* bulk saving typed docs in parallel
* chore: revert hardcoded timestamp
* chore: typos
* split _sync into smaller functions + add documentation
* little refactor
* fix: analyzer
* initial v2 tables
* wip
* wip
* feat: database migration
* chore: cleanup
* bump batch size
* cleanup
* chore: remove defensive content decoding
* chore: daos
* spelling
* saveAll
* test on platform
* chore: update build scripts
* feat: DocumentsV2Dao methods
* simple proposals pagination query
* chore: create a JoinedProposalBriefEntity
* rename method
* feat: exclude hidden proposals
* more tests
* renaming and splitting logic into smaller parts
* feat: per language strategy
* remove CatalystDatabaseLanguage in favor of raw queries as they are easier to mange
* remove Index Strategy Documentation
* handle case where ref is empty
* migration now includes indexes
* use v2 documents table for saveAll and isCachedBulk
* adds ActionType to JoinedProposalBriefEntity
* adds versionIds to JoinedProposalBriefEntity
* comments count
* adds isFavorite to JoinedProposalBriefEntity
* add template to JoinedProposalBriefEntity
* adds documentsLocalMetadata table for auto updates
* Update docs
* use v2 proposals query for discovery most recent section
* feat: simplify most recent proposals section
* add proposal fav status for v2 tables
* local proposal fav status update
* update fav state locally for faster feedback
* self review
* fix tests
* update times
* fix: analyzer
* more migration test data
* clean up constructors
* cleanup
* fix: template tests
* spelling
* fix: spelling
* chore: PR review adjustments
* add order parameter
* ProposalsOrder docs
* GetProposalsBriefPage supports order
* add filters object
* proposalsBriefPage filtering
* fix: status filtering
* more draft proposals filtering tests
* Campaign proposals filter
* update docs
* expose getVisibleProposalsCount and tests
* expose filters parameter
* integrate proposals page with v2 queries
* chore: increase time diff between proposals
* chore: reduce count query tables watched when not needed
* local proposals cubit
* local proposal fav staus update
* docs
* fix: add discovery specific colors (#3637)
* fix code-generator earthly target
* use logger in migration + wrap in transaction
* spelling
* wip
* rename category to categoryId for better consistency
* adding vote data to ProposalBriefData
* fix: dependencies
* voting page + cubit integration - wip
* proposals per tab selector
* release completed in close
* extract early return logic into function
* Voting tabs selector + releasing completer on close
* move spaces blocs to shell page level
* fix: voting in grid view
* dummy voting integration
* chore: remove showComments
* docs: ProposalOrDocument
* create proposals/count query .csv files
* update proposals query times
* category indexes
* CatId parse and tryParse
* create new tables for authors
* update migration
* run database analyze after sync
* DocumentAuthors docs
* simpler copyWith
* cat.id keeps schema
* get rid of authorCatIdWithoutUsername column
* console profiler
* catId -> id
* times
* results notes
* spelling
* fix: analyzer
* update results (#3673)
* fix: readme
* remove CatalystRuntimeProfiler
* catId schema -> scheme
* rename
* bring back profiler to SignedDocumentManager, with debounce
---------
Co-authored-by: Ryszard Schossler <[email protected]>1 parent 5bf67f6 commit 7723720
File tree
46 files changed
+1058
-307
lines changed- catalyst_voices
- apps/voices/lib
- configs
- dependency
- docs/performance
- packages/internal
- catalyst_voices_models/lib/src
- campaign
- config
- document/data
- pagination
- user
- catalyst_voices_repositories
- drift_schemas/catalyst_database
- lib/src
- database
- dao
- migration
- model
- table
- document
- source
- dto
- document
- user
- signed_document
- test/src
- database
- dao
- migration/catalyst_database
- document
- catalyst_voices_services
- lib/src
- documents
- proposal
- sync
- test/src/sync
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
46 files changed
+1058
-307
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
103 | | - | |
104 | 101 | | |
105 | 102 | | |
106 | 103 | | |
| |||
216 | 213 | | |
217 | 214 | | |
218 | 215 | | |
219 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
223 | | - | |
| 222 | + | |
224 | 223 | | |
225 | 224 | | |
226 | | - | |
| 225 | + | |
227 | 226 | | |
228 | 227 | | |
229 | 228 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 58 | | |
63 | 59 | | |
64 | 60 | | |
| |||
247 | 243 | | |
248 | 244 | | |
249 | 245 | | |
| 246 | + | |
250 | 247 | | |
251 | 248 | | |
252 | 249 | | |
253 | | - | |
| 250 | + | |
254 | 251 | | |
255 | 252 | | |
256 | 253 | | |
| |||
261 | 258 | | |
262 | 259 | | |
263 | 260 | | |
| 261 | + | |
264 | 262 | | |
265 | 263 | | |
266 | 264 | | |
| |||
277 | 275 | | |
278 | 276 | | |
279 | 277 | | |
| 278 | + | |
280 | 279 | | |
281 | 280 | | |
282 | 281 | | |
| |||
513 | 512 | | |
514 | 513 | | |
515 | 514 | | |
| 515 | + | |
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | | - | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments