-
Notifications
You must be signed in to change notification settings - Fork 0
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
Communication
: Reintroduce foreign key constraints and offline primary keys
#70
Conversation
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.
Tested the App and works as expected without any crashes.
Also tested the migration from the 1.0.3 release to this app state, everything works fine 👍
...formatics/www1/artemis/native_app/feature/metis/shared/db/entities/MetisPostContextEntity.kt
Outdated
Show resolved
Hide resolved
...m/informatics/www1/artemis/native_app/feature/metis/shared/db/entities/PostReactionEntity.kt
Show resolved
Hide resolved
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.
Just tested it, and everything seems to work fine.
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.
Please add some unit Tests to verify that the referential integrity works by writing tests that add messages, delete messages, delete conversations etc.
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.
Ran MetisDaoTest and tested adding posts, deleting posts and post reactions. Worked as expected, reapprove.
b5770b9
to
8fb7338
Compare
Motivation
In the hotfix for version 1.0.1 and 1.0.2 the foreign key constraints for reactions were removed. Additionally, the primary key constraints for posts and reactions were altered to include the server_id. These changes were done to prevent the application from crashing. This however introduced the problem that while the app was running without crashes, the data integrity is not given anymore.
Description
Pull Request #58 fixed an issue with the answer threads not being shown. This issue also seemed to be the origin of the failing primary and foreign key constraints. Therefore I reverted the changes to include the previous FK and PK checks as they were.
Closes #62