Skip to content

[14.0][FIX] connector_woocommerce: gate status export on tracking readiness#900

Open
deeniiz wants to merge 8 commits into
14.0from
14.0-fix-connector_woocommerce_ast-wait_for_carrier_tracking_url_indexed
Open

[14.0][FIX] connector_woocommerce: gate status export on tracking readiness#900
deeniiz wants to merge 8 commits into
14.0from
14.0-fix-connector_woocommerce_ast-wait_for_carrier_tracking_url_indexed

Conversation

@deeniiz
Copy link
Copy Markdown
Collaborator

@deeniiz deeniiz commented May 4, 2026

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

❌ Patch coverage is 61.53846% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.97%. Comparing base (0d2efd7) to head (bf91403).

Files with missing lines Patch % Lines
...woocommerce_ast/models/sale_order/export_mapper.py 13.63% 19 Missing ⚠️
...commerce_ast/models/stock_picking/stock_picking.py 16.66% 5 Missing ⚠️
...onnector_woocommerce/models/sale_order/listener.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             14.0     #900      +/-   ##
==========================================
+ Coverage   50.91%   50.97%   +0.05%     
==========================================
  Files        1178     1180       +2     
  Lines       20280    20343      +63     
  Branches     4277     4287      +10     
==========================================
+ Hits        10325    10369      +44     
- Misses       9712     9732      +20     
+ Partials      243      242       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…publicly indexed before exporting

URL responds OK for the picking's tracking number.
@deeniiz deeniiz force-pushed the 14.0-fix-connector_woocommerce_ast-wait_for_carrier_tracking_url_indexed branch from 4b4ced6 to e39bdc4 Compare May 5, 2026 16:25
deeniiz added 5 commits May 6, 2026 10:32
…queue_job

Triggered through with_delay() with identity_key=identity_exact, so
multiple notifications targeting the same sale.order/backend collapse
into a single pending job. Without it, each event that fires the
on_compute_woocommerce_order_state notify (SO state change, picking
tracking write, picking validation) would create its own redundant
export job.
@deeniiz deeniiz force-pushed the 14.0-fix-connector_woocommerce_ast-wait_for_carrier_tracking_url_indexed branch from e39bdc4 to 74cf77f Compare May 6, 2026 08:33
deeniiz added 2 commits May 6, 2026 18:10
… retries are exhausted

  When the URL gate or tracking_ref check has failed `max_retries` times,
  skip the `_wc_shipment_tracking_items` and let the export complete with the SO status only, instead of marking the job as failed.
@deeniiz deeniiz force-pushed the 14.0-fix-connector_woocommerce_ast-wait_for_carrier_tracking_url_indexed branch from 90fc2f7 to bf91403 Compare May 6, 2026 16:18
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.

1 participant