-
Notifications
You must be signed in to change notification settings - Fork 131
[1/2] WCProductVariationModel
to Room: working app
#13972
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
21
commits into
feature/product_variation_to_room
Choose a base branch
from
migrate_product_variation_to_room
base: feature/product_variation_to_room
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.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9f715a4
Migrate `WCProductVariationModel` to Room
wzieba 5127a0c
Migrate `getVariations` and `observeVariations` to Room's DAO
wzieba 149d6b4
Migrate `getVariation` to Room's DAO
wzieba 8370dd4
Migrate `upsertVariation`(s) to Room's DAO
wzieba 1df49aa
Migrate `deleteVariation` to Room's DAO
wzieba 5bee63b
Remove unused observability wrappers for variations in `ProductSqlUtils`
wzieba 9d12e9d
Adjust `WooCommerce` module to WCProductVariationModel changes: updat…
wzieba 316ef5f
Fix operations on ProductVariationsDao by passing **local** site id
wzieba b45f030
Fix `ProductTestUtils` from testFixtures
wzieba 076f143
Fix missing buildkite test collector support when JaCoCo fails
wzieba 9d416db
Run `jacocoTestReport` on the same Gradle invocation. Upload code cov…
wzieba 8bec355
Add missing modules test tasks to JacocoReport dependencies
wzieba 6c958c1
Print "Uploading code coverage" in a new line
wzieba ca437a0
Open `Testing` by default
wzieba 6ff44ee
echo report tests status group in a new line
wzieba a5cc82b
Actually print some section headers in a new line
wzieba 4211e37
Drop `WCProductVariationModel` from WellSql
wzieba 9b5949c
Make `ProductVariationsDao` internal
wzieba bfab067
Merge branch 'trunk' into migrate_product_variation_to_room
wzieba 1e156ea
Merge pull request #13986 from woocommerce/fix_tests_collection_on_ja…
wzieba 886bff1
Merge branch 'feature/product_variation_to_room' into migrate_product…
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
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
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.
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.
this replaces
addVariant
method. I like it doesn't needgson
object (we shouldn't usegson
inside models, nor create instance ofgson
per model), but we also loose synchronization of fields withProductVariantOption
. I think it's acceptable, because I think it's unlikely this model will change.https://github.com/woocommerce/woocommerce-android/pull/13972/files#diff-a2f8ea1eb59520371a927db507f69e8a3da9de51a52c6cb1665a1bb2b56cbe17L108-L115