Skip to content

Migrate MediaModel to Room#15176

Closed
wzieba wants to merge 13 commits intotrunkfrom
migrate_media_model
Closed

Migrate MediaModel to Room#15176
wzieba wants to merge 13 commits intotrunkfrom
migrate_media_model

Conversation

@wzieba
Copy link
Contributor

@wzieba wzieba commented Jan 9, 2026

Closes: AINFRA-542: Migrate MediaModel

Description

Test Steps

Images/gif

  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

wzieba added 6 commits January 6, 2026 12:40
As I want to migrate `MediaModel` first in a single PR
And `MediaDao` with AI-generated methods based on  `MediaSqlUtils` contract
Replace all usages of `MediaSqlUtils` with `MediaDao`
It's a dead code that previously was used only in tests
@dangermattic
Copy link
Collaborator

dangermattic commented Jan 9, 2026

1 Error
🚫 Please add tests for class MediaDao (or add unit-tests-exemption label to ignore this).
1 Warning
⚠️ This PR is larger than 300 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Jan 9, 2026

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App NameWooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit94db8f3
Direct Downloadwoocommerce-wear-prototype-build-pr15176-94db8f3.apk

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Jan 9, 2026

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App NameWooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit94db8f3
Direct Downloadwoocommerce-prototype-build-pr15176-94db8f3.apk

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Jan 9, 2026

🤖 Build Failure Analysis

This build has failures. Claude has analyzed them - check the build annotations for details.

@wzieba wzieba force-pushed the migrate_media_model branch from 51734c8 to 070ff03 Compare January 12, 2026 16:52
@wzieba wzieba added this to the 24.0 milestone Jan 12, 2026
@wzieba wzieba marked this pull request as ready for review January 12, 2026 17:42
@wzieba wzieba added the type: technical debt Represents or solves tech debt of the project. label Jan 12, 2026
Comment out not working tests, update test utilities: tests compile now
Tests DAO behavior and removes the old `MediaSqlUtilsTest`
`fluxc-tests` is a legacy module, migrated from "sample FluxC app". Unit tests should be placed in the same module as SUT.
This value is actually never used
@wzieba wzieba force-pushed the migrate_media_model branch from 070ff03 to 94db8f3 Compare January 13, 2026 11:06
@wzieba wzieba marked this pull request as draft January 14, 2026 13:26
@wzieba
Copy link
Contributor Author

wzieba commented Jan 19, 2026

Replaced by #15215

@wzieba wzieba closed this Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: technical debt Represents or solves tech debt of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants