Repository navigation
v0.9.0 ~ "Fleetbase Extensions Registry v2: install extensions without rebuilding the console"
Highlights
-
A new Extensions experience. Extensions now come from the Fleetbase Registry Service (registry v2):
- Discover with featured listings and a category rail;
- category pages with a card or list view;
- an extension page that installs in place;
- a library for Installed, Purchased and Updates.
Installs, updates and removals run as queued jobs that the console follows live. Paid extensions check out with Stripe. (registry-bridge 0.3.1)
-
Extensions install without rebuilding the console. The console mounts prebuilt engine releases at boot from
~registry/v1/engines/runtime. The API serves them fromstorage/app/registry-runtime-engines. (#730, ember-core 0.4.0) -
Installed extensions live in their own Composer project.
api/extensions/composer.jsonlists the extensions installed on top of core, whether from the registry or by hand.- Core's
api/composer.jsonandcomposer.locklist core and the core modules (FleetOps, Storefront, Ledger, Customer Portal, AI, Valhalla, VROOM). - So upgrading core no longer conflicts with installs, and installs never touch core's files. (#754)
-
Docker installs extensions from the registry.
- The installer's worker runs in
applicationnext to Octane and reloads it after each install. api/extensionsis a named volume shared withqueueandscheduler, and it's re-synced on start.- The console image writes
host-modules.jsonfor the compatibility check.
See
docker/README.md. - The installer's worker runs in
-
Instances register with the registry. A self-hosted instance uses a one-time code from the registry website, in the admin settings under Registry Service. The Fleetbase Cloud registers itself on boot.
-
Driver apps sign in with the instance's platform token. Navigator is built for a whole instance, not for one organization. Its sign-in routes (
v1/drivers/login,login-with-sms,verify-code,forgot-password,reset-password) now accept the platform token from the admin settings, so an organization's API key no longer has to be built into the app. API keys and driver tokens work as before, and every other route still refuses the platform token. Platform-token requests are rate limited per client address. (core-api 2.0.6, fleetops 0.7.4) -
Route optimization works without setup. VROOM now defaults to Fleetbase Hosted Routing, using the install's hosted routing key, and FleetOps uses VROOM for route optimization when it is installed. (vroom 0.1.1, fleetops 0.7.4)
-
Driver cash. Ledger tracks each driver's cash from cash-on-delivery orders: what they collected, handed in and still hold. Staff confirm hand-ins at a cash desk, and an organization can cap how much cash a driver may hold. Journal entry numbers are now unique per company. (ledger 0.1.1)
-
Navigator v3 on the server. FleetOps 0.7.4 is the server and console side of the new driver app:
- Routes: route optimization on real roads with before and after, driver pins and dispatch locks, driver-proposed changes for dispatch to approve, and a rebuilt Operations › Routes.
- Doing the work: failed deliveries recorded as delivery attempts; order steps that require an inspection or raise a work order; drivers adding waypoints and creating orders; order chat with dispatch; quick Dispatch in the console.
- Drivers: documents the organization asks for, approved or sent back in the console; the phones a driver is signed in on; time on duty, breaks and shifts; a driver's currency.
- Settings: Driver pay (pay plans with rules, bonuses and a live preview) and Vehicle papers (the organization's own kinds of paper, one slot per kind on each vehicle).
See the FleetOps v0.7.4 notes. (fleetops 0.7.4, fleetops-data 0.2.5)
Includes everything in v0.8.1–v0.8.3.
Component Versions
registry-bridge:0.3.1ember-core:0.4.0core-api:2.0.6fleetops:0.7.4fleetops-data:0.2.5ledger:0.1.1vroom:0.1.1- Works with the Registry Service
v2.0.0and@fleetbase/cli2.0.0
Upgrading
-
Instances installed before v0.9.0 keep their extensions in core's
composer.json. After pulling or unpacking the release, and beforecomposer installinapi/, run this in a maintenance window:php artisan extensions:migrate-manifest --dry-run # shows what moves php artisan extensions:migrate-manifestSee
api/extensions/README.md. Fresh installs start with an empty manifest.Extensions that came from the registry are downloaded from the Registry Service, and a paid one needs the instance token for that (
COMPOSER_AUTH, seeapi/extensions/README.md). An instance gets its token when it registers (step 6), so before that a paid extension can't be moved: leave it out with--keep=<package>and install it from Extensions after registering. -
Run
php artisan migrate. This adds:- the registry-bridge tables for Registry Service installs and auto-update;
- FleetOps' tables for driver duty periods and breaks, cash handovers, delivery attempts and driver pay plans;
- per-company journal numbers in Ledger, which replace the global index.
-
Run a worker on the
installerqueue, and keep the scheduler running (auto-update and re-registration). The Docker setup does both:REGISTRY_INSTALLER_WORKER=trueandREGISTRY_INSTALLER_RELOAD_OCTANE=trueonapplication. -
Keep
api/extensionsandapi/storage/app/registry-runtime-engineson persistent storage, so installs survive image upgrades. After an image upgrade, runphp artisan extensions:sync. -
If
console/.npmrcor your build points the@fleetbasenpm scope athttps://registry.fleetbase.io, remove that line. The Registry Service serves only extension packages; the core@fleetbase/*packages come from npmjs. -
Self-hosted: open the admin settings → Registry Service and register the instance with a code from your registry organization.
Fleetbase Cloud: set
REGISTRY_SERVICE_URL;REGISTRY_CLOUD_AUTO_REGISTER=true;REGISTRY_CLOUD_PLATFORM_SECRET(the same value as the Registry Service);REGISTRY_PREINSTALLED_EXTENSIONS=truewhere every extension is built into the images.
See the registry's
docs/cutover.md. -
VROOM: an install that never saved a VROOM host moves to Fleetbase Hosted Routing. One that saved a host in Admin → VROOM keeps it.