Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
v0.8.3 ~ "App Review sign-in for customer apps"
Highlights
- App Review sign-in for customer apps. Apps that customers sign in to through Fleet-Ops' customer API, such as the Passenger app, send a texted code, and Apple's and Google's reviewers can't receive one. Fleet-Ops → Settings → Customer Apps now turns App Review sign-in on and off for an organization, the way Settings → Navigator App does for Navigator.
- Reviewers sign in with +1 202 555 0145 and a six-digit code the Console shows once. The number is from the range reserved for fiction and is never texted. It differs from Navigator's (+1 202 555 0144), because a customer and a driver are different accounts.
- The organization's code signs in as its review customer, App Reviewer, and only in that organization's apps. Orders it places get
meta.app_review = true.
- Two App Review types can share a model. Navigator and the customer apps are both registered on the organization, and core now keeps each type's number, code and access apart.
Component Versions
console:0.8.3core-api:2.0.5fleetops:0.7.3storefront:0.5.0ledger:0.1.0customer-portal:0.1.0registry-bridge:0.2.1ai:0.1.0valhalla:0.1.0vroom:0.1.0dev-engine:0.2.18ember-ui:0.4.7ember-core:0.3.27fleetops-data:0.2.4iam-engine:0.1.13
Core API 2.0.5
- A second App Review type on the same model is read and changed as itself. Before,
AppReview::typeOf()returned the first registered type whose model matched, so any other type onCompanywas treated as Navigator's.accessFor(),isEnabledFor(),acceptsCode(),update()andstatus()take an optional?string $typeas their last argument. Left out, it istypeOf($subject), so existing callers behave as before.- New
AppReview::resolveType($subject, $type)gives the type a subject is checked as. - The Console endpoint (
/int/v1/review-access/{type}/{id}) and the OAuth endpoint (/oauth/v1/review-access/{type}/{id}) pass the route's{type}through.
Fleet-Ops 0.7.3
- Settings → Customer Apps: turn App Review sign-in for customer apps on and off, see the review number, and show or replace the code.
- Customer API:
- With access on,
customers/request-code,customers/login-with-smsandcustomers/request-creation-code(SMS) answer for the review number as if a code were sent, and send nothing. With access off, they answer 422 and say where to turn it on. - With the organization's code,
customers/verify-codeandPOST customerssign in as the organization's review customer and return the same response as any sign-in, nevernew_customer. A wrong code, or another organization's, is refused.
- With access on,
- Permissions:
fleet-ops view customer-app-settingsandfleet-ops update customer-app-settings, a CustomerAppSettingsManager policy and a Customer App Manager role. Administrators have them already.
Upgrade Steps
- Pull the new images and restart the API, queue, scheduler and events containers. There's no new migration.
- Run
php artisan fleetbase:create-permissions(or your usual permission sync) so Fleet-Ops' new permissions, the CustomerAppSettingsManager policy and the Customer App Manager role exist. - No configuration changes are needed. Customer app review sign-in is off until an organization turns it on.