-
Notifications
You must be signed in to change notification settings - Fork 137
Migrate "What's New" models from WellSql to Room
#15075
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
Open
wzieba
wants to merge
23
commits into
trunk
Choose a base branch
from
migrate_whats_new_announcement_model
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+607
−384
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
337134b
Remove unused "whats new announcement" code
wzieba 1c41d3d
Remove unused `FeatureAnnouncement` properties
wzieba 739fec4
Add Room entities, DAO, and converters for WhatsNew
wzieba 96e8069
Update WPAndroidDatabase to include WhatsNew tables
wzieba c54471b
Refactor WhatsNewStore to use Room instead of WellSql
wzieba 9ee9f01
Remove WellSql code and update tests for Room
wzieba a7dad31
Consolidate RemoteIdConverter to avoid duplication
wzieba 5ebd658
Simplify data retrieval using Room @Relation
wzieba 727c97e
Improve WhatsNew DAO with Room @Relation and unified insert
wzieba 3988105
Extract WhatsNew mapping logic to separate mapper object
wzieba 135c8e8
Move WhatsNew payload and app ID to appropriate locations
wzieba 0820b5b
Remove deprecated EventBus pattern from WhatsNewStore
wzieba d3fb3e4
Remove `runBlocking` from `WhatsNewStore`
wzieba 02c44cf
Move `SemicolonAtSeparatedStringListConverter` usage declaration to t…
wzieba 9311059
Use database entity in `WhatsNewDaoTest`
wzieba 11269b9
Fix imports ordering
wzieba 6be984a
If feature's title is empty, skip it.
wzieba 919e8e9
Fix unit tests typo
wzieba dae1fe3
Move "replace" logic to DAO
wzieba 99861be
Add tests coverage for empty list and null list for SemicolonAtSepara…
wzieba da7b9b2
Introduce `AppVersionTargets` wrapper
wzieba 706e12f
Merge branch 'trunk' into migrate_whats_new_announcement_model
wzieba 1343de8
Remove `WhatsNewAnnouncement` from WellSql database
wzieba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 0 additions & 100 deletions
100
libs/fluxc-tests/src/test/java/org/wordpress/android/fluxc/whatsnew/WhatsNewSqlUtilsTest.kt
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
libs/fluxc/src/main/java/org/wordpress/android/fluxc/action/WhatsNewAction.kt
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
libs/fluxc/src/main/java/org/wordpress/android/fluxc/model/whatsnew/WhatsNewAppId.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| package org.wordpress.android.fluxc.model.whatsnew | ||
|
|
||
| internal enum class WhatsNewAppId(val id: Int) { | ||
| WOO_ANDROID(3), | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.