-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CMM-779 migrate add categories to wordpress-rs #22227
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
Conversation
Generated by 🚫 Danger |
|
| App Name | WordPress |
|
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22227-34ed16c | |
| Commit | 34ed16c | |
| Direct Download | wordpress-prototype-build-pr22227-34ed16c.apk |
|
| App Name | Jetpack |
|
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22227-34ed16c | |
| Commit | 34ed16c | |
| Direct Download | jetpack-prototype-build-pr22227-34ed16c.apk |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #22227 +/- ##
=======================================
Coverage 39.22% 39.22%
=======================================
Files 2164 2164
Lines 103310 103310
Branches 15881 15881
=======================================
Hits 40522 40522
Misses 59193 59193
Partials 3595 3595 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Pull Request Overview
This PR migrates the ability to add categories to posts using the wordpress-rs Rust library instead of the existing WordPress REST API implementation. The change enables creating new categories on self-hosted WordPress sites through the new Rust-based API client.
- Adds
createPostCategorymethod to handle category creation via the wordpress-rs library - Updates the routing logic to use the new Rust client for self-hosted sites when creating categories
- Adds comprehensive test coverage for both success and error scenarios
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| TaxonomyStore.java | Routes category creation for self-hosted sites to the new Rust-based client |
| TaxonomyRsApiRestClient.kt | Implements the createPostCategory method using wordpress-rs API |
| TaxonomyRsApiRestClientTest.kt | Adds unit tests for the new category creation functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
libs/fluxc/src/main/java/org/wordpress/android/fluxc/store/TaxonomyStore.java
Outdated
Show resolved
Hide resolved
...main/java/org/wordpress/android/fluxc/network/rest/wpapi/taxonomy/TaxonomyRsApiRestClient.kt
Outdated
Show resolved
Hide resolved
|
dcalhoun
left a comment
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.
LGTM. Test plan succeeded for me.





Description
This PR is adding the ability to include new categories when writing a post using the
wordpress-rslibraryTesting instructions
Screen.Recording.2025-09-23.at.18.47.05.mov