-
Notifications
You must be signed in to change notification settings - Fork 136
Migrate WCShippingLabelCreationEligibility to Room
#15008
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
Draft
wzieba
wants to merge
7
commits into
trunk
Choose a base branch
from
migrate_shipping_label_creation_eligibility
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.
Draft
+4,785
−108
Conversation
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
- Convert model to data class with Room annotations - Use composite primary key [localSiteId, remoteOrderId] - Replace synthetic primary key with LocalId/RemoteId types - Add ShippingLabelCreationEligibilityDao with upsert and query methods - Add comprehensive DAO unit tests covering all operations - Table name: ShippingLabelCreationEligibilityEntity 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Update WCShippingLabelStore to use ShippingLabelCreationEligibilityDao - Make store constructor internal to allow internal DAO injection - Use runBlocking for DAO calls outside coroutines - Remove rowsAffected handling - Delete WCShippingLabelSqlUtils 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Register WCShippingLabelCreationEligibility entity in WCAndroidDatabase - Add ShippingLabelCreationEligibilityDao to database - Increment database version from 74 to 75 - Add AutoMigration(from = 74, to = 75) - Add WellSql migration 234 to drop legacy table 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Remove ADDON_WOOCOMMERCE parameter from test configurations - Update WCDataStoreTest, WCProductStoreTest, WCShippingLabelStoreTest - Update WooCommerceStoreTest, WCLeaderboardsStoreTest, WCProductLeaderboardsMapperTest - Remove unused WellSqlConfig imports 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Collaborator
Generated by 🚫 Danger |
Collaborator
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
Without this provider, Hilt cannot inject the DAO into WCShippingLabelStore, causing build failures. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Collaborator
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
Base automatically changed from
migrate_order_shipment_tracking_model
to
trunk
November 27, 2025 17:36
WCShippingLabelCreationEligibility to Room
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR migrates
WCShippingLabelCreationEligibilityfrom WellSql to Room.The migration, like always, focuses on actually migrating database entities and not fixing threading issues. All database calls on main thread are now more visible though, because of the runBlocking usage.
Test Steps
Images/gif
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.