Skip to content

Dynamic Dashboard: Update Yosemite with stock report fetching #12781

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

Merged
merged 4 commits into from
May 20, 2024

Conversation

itsmeichigo
Copy link
Contributor

Closes: #12748

Description

This PR updates ProductStore and ProductAction to support fetching stock reports. Since this endpoint supports both stock status and lowstock option, I also updated ProductsRemote to accept a raw stock type instead of only stock status.

Due to the complexity of optimizing the stock card [p1715916527632179/1715228241.268569-slack-C03L1NF1EA3], we're only saving stock reports in-memory for now, so no storage change is added.

Testing instructions

Just CI passing is sufficient.

Screenshots

N/A


  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@itsmeichigo itsmeichigo added the type: task An internally driven task. label May 20, 2024
@itsmeichigo itsmeichigo added this to the 18.8 milestone May 20, 2024
@selanthiraiyan selanthiraiyan self-assigned this May 20, 2024
@wpmobilebot
Copy link
Collaborator

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

App NameWooCommerce iOS WooCommerce iOS
Build Numberpr12781-e2e1f26
Version18.7
Bundle IDcom.automattic.alpha.woocommerce
Commite2e1f26
App Center BuildWooCommerce - Prototype Builds #9137
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

Copy link
Contributor

@selanthiraiyan selanthiraiyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@itsmeichigo itsmeichigo merged commit 8850c1d into trunk May 20, 2024
26 of 27 checks passed
@itsmeichigo itsmeichigo deleted the feat/12748-yosemite-stock-report branch May 20, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task An internally driven task.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate GET wc-analytics/reports/stock endpoint
3 participants