Skip to content

feat(models): adhoc dispatch, fare and rating fields - #90

Merged
roncodes merged 1 commit into
release/v0.2.4from
feat/adhoc-dispatch-fields
Nov 6, 2026
Merged

roncodes merged 1 commit into
release/v0.2.4from
feat/adhoc-dispatch-fields

Conversation

@roncodes

@roncodes roncodes commented Nov 6, 2026

Copy link
Copy Markdown
Member

Model fields for the adhoc dispatch strategies, fares and driver ratings added in fleetbase/fleetops#424. The console needs them to set how adhoc orders are offered.

  • order:
    • adhoc_strategy: a strategy name, or null for the config or company default.
    • required_vehicle_type.
    • fare_finalized_at, paid_at.
  • order-config:
    • adhoc_strategy, adhoc_offer_timeout.
    • customer_orders_adhoc, match_vehicle_type: both default to false.
  • driver: rating_average, rating_count.

Testing

  • Unit tests for the new attributes and defaults.
  • Linted locally.
  • The Ember tests weren't run locally: this checkout's dependencies aren't installed. CI runs them.

Release

fleetbase/fleetops#424 bumps its @fleetbase/fleetops-data dependency to the release that includes this.

- order: `adhoc_strategy`, `required_vehicle_type`, `fare_finalized_at` and `paid_at`.
- order-config: `adhoc_strategy`, `adhoc_offer_timeout`, `customer_orders_adhoc` and `match_vehicle_type`.
- driver: `rating_average` and `rating_count`.

These match the columns added in fleetbase/fleetops#424, so the console can set how adhoc orders are offered.
@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4911b06) to head (6b014ec).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #90   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          121       121           
  Lines         3157      3157           
  Branches       777       777           
=========================================
  Hits          3157      3157           
Flag Coverage Δ
fleetops-data 100.00% <ø> (ø)

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

Files with missing lines Coverage Δ
addon/models/driver.js 100.00% <ø> (ø)
addon/models/order-config.js 100.00% <ø> (ø)
addon/models/order.js 100.00% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4911b06...6b014ec. Read the comment docs.

🚀 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 changed the base branch from main to release/v0.2.4 November 6, 2026 14:21
@roncodes roncodes mentioned this pull request Nov 6, 2026
@roncodes
roncodes merged commit 6a0dc96 into release/v0.2.4 Nov 6, 2026
8 checks passed
@roncodes
roncodes deleted the feat/adhoc-dispatch-fields branch November 6, 2026 14:46
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