-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Add tracking number parsing support #59172
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
Add tracking number parsing support #59172
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis change introduces a comprehensive tracking number lookup system for WooCommerce order fulfillments. It adds a REST API endpoint for tracking number lookup, a new extensible provider architecture, backend logic to parse tracking numbers, and replaces frontend test logic with real API integration. Numerous shipping provider classes are introduced as part of the new system. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Frontend
participant REST API
participant FulfillmentsManager
participant Provider(s)
User->>Frontend: Enter tracking number & click Lookup
Frontend->>REST API: GET /orders/{order_id}/fulfillments/lookup?tracking_number=...
REST API->>FulfillmentsManager: try_parse_tracking_number(tracking_number, from, to)
FulfillmentsManager->>Provider(s): try_parse_tracking_number(...)
Provider(s)-->>FulfillmentsManager: Return match or null
FulfillmentsManager-->>REST API: Return provider info or error
REST API-->>Frontend: provider info or error
Frontend-->>User: Display provider, tracking URL, or error
Assessment against linked issues
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
|
…-add-tracking-number-lookup-support
… fix style, fix missing images
Submission Review Guidelines:
Changes proposed in this Pull Request:
Closes #57406 WOOPLUG-4001
Screenshots or screen recordings:
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Testing that has already taken place:
Changelog entry
Changelog Entry Details
Significance
Type
Message
Changelog Entry Comment
Comment