-
Notifications
You must be signed in to change notification settings - Fork 116
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
Background image upload for products without attaching images to the products (unit test of ProductImageActionHandler
)
#15290
base: feat/real-background-image-upload
Are you sure you want to change the base?
Conversation
…round-image-upload-part-2 # Conflicts: # WooCommerce/WooCommerceTests/ViewRelated/Products/Media/ProductImageActionHandlerTests.swift
…round-image-upload-part-2
@coderabbitai review |
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughWalkthroughThis change introduces six new tests in the Changes
Sequence Diagram(s)sequenceDiagram
participant Tester
participant Handler as ProductImageActionHandler
participant Media as MediaAction
Tester->>Handler: Initiate media upload (feature flag enabled)
Handler->>Media: Process media upload request
alt Upload is Successful
Media-->>Handler: Return success status
Handler-->>Tester: Update status to "upload successful"
else Upload Fails
Media-->>Handler: Return error status
Handler-->>Tester: Update status to "upload failed"
end
sequenceDiagram
participant Tester
participant Handler as ProductImageActionHandler
Tester->>Handler: Issue discard upload request
Handler-->>Tester: Update product image status to "discarded"
Tester->>Handler: Request product ID update for ongoing uploads
Handler-->>Tester: Propagate product ID to existing upload statuses
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
✅ Actions performedReview triggered.
|
ProductImageActionHandler
)ProductImageActionHandler
)
|
…round-image-upload-part-2
…round-image-upload-part-2
…round-image-upload-part-2
Version |
Part 7 of the changes needed for product image upload in the background.
Before merging this PR, make sure to merge this one.
Description
This PR just updates unit tests for
ProductImageActionHandler
whenbackgroundProductImageUpload
feature flag is enabled.Testing information
Unit Tests should pass ✅
RELEASE-NOTES.txt
if necessary.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: