Skip to content

test: bring fixtures up to date and cover the order config work on release/v0.7.0 - #427

Merged
roncodes merged 3 commits into
release/v0.7.0from
fix/customer-seams-driver-ratings
Nov 15, 2026
Merged

roncodes merged 3 commits into
release/v0.7.0from
fix/customer-seams-driver-ratings

Conversation

@roncodes

@roncodes roncodes commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

PHP CI on #426 fails on two test files whose hand-built SQLite schemas predate changes on release/v0.7.0. Nobody saw them because #426's PHP CI couldn't install until core-api 2.0.0 reached Packagist.

  • CustomerControllerHelperSeamsTest: no such table: driver_ratings. CustomerController has eager-loaded driverRating since feat(dispatch): adhoc dispatch strategies, safe accept, ride flow and rider features #424. This adds the table with the columns AdhocDispatchAndOrderConfigTest uses.
  • OrderControllerNearbyFiltersTest: no such column: oc.policies. The order config's adhoc strategy moved from order_configs.adhoc_strategy into policies JSON. The fixture now creates policies instead.

Locally all 517 test files pass against core-api 2.0.0. Before this change, these two failed.

Coverage. With the tests passing, the 100% line gate failed at 99.85%: 71 statements from the 9 November order config commits, which had never had a PHP CI run. The third commit adds tests for them, with no changes under server/src:

  • the cancel, open chat and set meta actions
  • custom field validation and storage
  • the capabilities and create-from-template endpoints
  • the resource's custom fields
  • template registration
  • Condition edge cases
  • the customer and API order refusals
  • dispatch refused by the config

OrderUpdate::toFcm/toApn are run only up to core's PushNotification, because the harness has no push credentials.

CustomerController eager-loads driverRating on customer orders since the
passenger rides work, so the hand-built SQLite schema needs the table.
…ies column

The adhoc strategy moved from order_configs.adhoc_strategy into the
policies JSON in the order config policies refactor.
@roncodes roncodes changed the title test(customers): add driver_ratings to the customer helper seams schema test: bring two fixture schemas up to date with release/v0.7.0 Nov 14, 2026
…emplates and endpoints

The order config policies, triggers and templates work on release/v0.7.0
had no PHP CI run, so these lines were never measured:
- the cancel, open chat and set meta actions, and notify driver with
  nothing to say
- OrderCustomFields validate and apply
- OrderUpdate's FCM and APN messages
- the internal capabilities and create from template endpoints
- the OrderConfig resource's custom fields
- template registration and unknown template keys
- Condition with collections and single values
- custom field and payment method refusals on customer and API order
  creation, and dispatch refused by the config
@roncodes roncodes changed the title test: bring two fixture schemas up to date with release/v0.7.0 test: bring fixtures up to date and cover the order config work on release/v0.7.0 Nov 14, 2026
@codecov

codecov Bot commented Nov 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (6e53c01) to head (3f11a53).
⚠️ Report is 26 commits behind head on release/v0.7.0.

Additional details and impacted files
@@                 Coverage Diff                  @@
##             release/v0.7.0      #427     +/-   ##
====================================================
  Coverage            100.00%   100.00%             
- Complexity            13947     14689    +742     
====================================================
  Files                   642       676     +34     
  Lines                 50099     51282   +1183     
====================================================
+ Hits                  50099     51282   +1183     
Flag Coverage Δ
backend 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@roncodes
roncodes merged commit 9f54dfb into release/v0.7.0 Nov 15, 2026
8 checks passed
@roncodes
roncodes deleted the fix/customer-seams-driver-ratings branch November 15, 2026 00:43
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