-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sync filter params moved to matrix config #7843
Conversation
LogError: Error: Could not find the Dangerfile at ./tools/danger/dangerfile-lint.js - does a file exist at danger/dangerfile-lint.js in ./tools?.
at /usr/src/danger/distribution/platforms/GitHub.js:166:27
at step (/usr/src/danger/distribution/platforms/GitHub.js:44:23)
at Object.next (/usr/src/danger/distribution/platforms/GitHub.js:25:53)
at fulfilled (/usr/src/danger/distribution/platforms/GitHub.js:16:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
danger-results://tmp/danger-results-1a64d801.json |
@@ -72,7 +72,6 @@ import org.matrix.android.sdk.internal.database.model.threads.ThreadSummaryEntit | |||
SpaceParentSummaryEntity::class, | |||
UserPresenceEntity::class, | |||
ThreadSummaryEntity::class, | |||
SyncFilterParamsEntity::class, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a database migration because of this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested upgrading develop build with this branch and there were no problems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the migration to cleanup the database from the entity added in 45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks, just a question about the database migration.
Also did you test to clear cache and see what was the sync filter applied to the sync request?
Yes, I've tested enabling and disabling threads which clears session realm and also tested login with different account. All works fine |
After a clear cache homeServerCapabilities will be null. That means that the initial sync will have a filter without useThreadNotifications. Is this expected? Edit |
SonarCloud Quality Gate failed. |
Type of change
Content
currently sync filter params are stored in session realm which can be cleared. This leads to incorrect filter being used (e.g. without lazyLoadEvents param).
We need to move params to somewhere else, so they won't be cleared
Motivation and context
Screenshots / GIFs
Tests
Tested devices
Checklist