Skip to content
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

Woo: Part two for orders/batch endpoint #3120

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from

Conversation

hafizrahman
Copy link
Contributor

@hafizrahman hafizrahman commented Dec 13, 2024

Part of woocommerce/woocommerce-android#13115

Working on adding the endpoint for /wc/v3/orders/batch
Documentation in pe5sF9-3kb-p2

This PR adds the following:

  • REST client functionality to do batch orders status update
  • Order store functionality to do batch orders status update
  • Unit tests for the store

Discussion:

  • I'm not adding this case to the Example app: so I can save a bit of time and because I feel the unit tests suffice. But let me know if you prefer to have it added, too.
  • Still undecided whether the function in order store should save the successfully updated Orders to the database. I need to look at the existing behavior in Woo Android, see if it's easier for it to just do a full reload, etc. I'll make another PR later if that's needed.

@irfano irfano self-assigned this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants