Commit 2a8547a
feat(cat-voices): proposals query filtering (#3641)
* 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
* rename category to categoryId for better consistency
* proposals per tab selector
* release completed in close
* extract early return logic into function
---------
Co-authored-by: Ryszard Schossler <[email protected]>1 parent a91871d commit 2a8547a
File tree
22 files changed
+3202
-406
lines changed- catalyst_voices
- apps/voices/lib
- app/view
- dependency
- pages/proposals
- widgets
- routes/routing
- packages/internal
- catalyst_voices_blocs/lib/src
- discovery
- proposals
- catalyst_voices_models/lib/src
- pagination
- proposals
- catalyst_voices_repositories
- lib/src
- api/local
- database/dao
- document/source
- proposal
- test/src/database/dao
- catalyst_voices_services/lib/src/proposal
- catalyst_voices_view_models/lib/src/proposals
22 files changed
+3202
-406
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
Lines changed: 29 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
50 | 61 | | |
51 | 62 | | |
52 | 63 | | |
| |||
59 | 70 | | |
60 | 71 | | |
61 | 72 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
| |||
75 | 85 | | |
76 | 86 | | |
77 | 87 | | |
| 88 | + | |
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
| |||
105 | 116 | | |
106 | 117 | | |
107 | 118 | | |
108 | | - | |
109 | 119 | | |
110 | | - | |
| 120 | + | |
111 | 121 | | |
112 | 122 | | |
113 | 123 | | |
| |||
123 | 133 | | |
124 | 134 | | |
125 | 135 | | |
126 | | - | |
| 136 | + | |
127 | 137 | | |
128 | 138 | | |
129 | 139 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
135 | 143 | | |
136 | 144 | | |
137 | 145 | | |
| |||
167 | 175 | | |
168 | 176 | | |
169 | 177 | | |
170 | | - | |
| 178 | + | |
171 | 179 | | |
172 | 180 | | |
173 | 181 | | |
174 | 182 | | |
175 | 183 | | |
176 | 184 | | |
177 | 185 | | |
178 | | - | |
| 186 | + | |
179 | 187 | | |
180 | 188 | | |
181 | 189 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
Lines changed: 18 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 17 | | |
42 | 18 | | |
43 | 19 | | |
| |||
51 | 27 | | |
52 | 28 | | |
53 | 29 | | |
54 | | - | |
| 30 | + | |
55 | 31 | | |
56 | 32 | | |
57 | 33 | | |
58 | 34 | | |
59 | 35 | | |
60 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
61 | 54 | | |
62 | 55 | | |
63 | 56 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 87 | | |
91 | 88 | | |
92 | 89 | | |
93 | | - | |
| 90 | + | |
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments