Skip to content

Modular logistics and supply chain operating system (LSOS)

chore(release): open release v0.8.2

Ronald A. Richardsonc7e2e67e39c8
diff --git a/RELEASE.md b/RELEASE.md
index 18ca50b2..f4cd22b0 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -1,22 +1,21 @@
-> v0.8.1 ~ "Migrations run on MySQL 8.4, and extensions can add sortable, grouped columns to any table"
+> v0.8.2 ~ "Foreign keys point at unique keys"
---
## Highlights
-- **Extensions can add fully working columns to another engine's table.** A column an extension registers on a table can now be sorted by data that lives outside that table's model, listed under its own heading in Customize Columns, and left hidden until a user turns it on. Together with the column values, filters and search an extension could already add, an extension no longer needs changes in the engine that owns the table.
-- **Installs and upgrades run on MySQL 8.4 and later.** MySQL 8.4 refuses to create or alter tables whose foreign keys point at a non-unique key, and many Fleetbase foreign keys point at `uuid` columns with an ordinary index. So on 8.4 a fresh install failed at its first such key (`6125 Missing unique key`), and the upgrade to v0.8.0 failed in Fleet-Ops' adhoc dispatch migration (`1553 Cannot drop index '<unknown key name>'`). Migrations now run with that check off for their own database sessions. MySQL 8.0, which the bundled Docker setup uses, was never affected.
-- **An upgrade that stopped in that migration now finishes.** MySQL doesn't roll back schema changes, so a failed v0.8.0 upgrade left part of the migration applied. Running `php artisan migrate` again on v0.8.1 picks up from where it stopped.
-- This is a dependency release: core-api 2.0.2, Fleet-Ops 0.7.1, ember-core 0.3.27 and ember-ui 0.4.7. Nothing changes for an instance that has no extension using the new column hooks.
+- **Tables that foreign keys point at can be altered on MySQL 8.4 without any workaround.** MySQL 8.4 turns on `restrict_fk_on_non_standard_key` by default, and then refuses any change to a table that a foreign key points at through a non-unique key. v0.8.1 turned the setting off while migrations run. This release makes those columns unique: 9 core tables, 7 Fleet-Ops tables, 3 registry tables and, on Cloud, 3 billing tables.
+- **Sandbox no longer has foreign keys to a table it doesn't have.** Three log-table foreign keys pointed at `personal_access_tokens`, which exists only in the main database.
+- CI now runs the fresh install on MySQL 8.4.8 next to 8.0, and checks that every foreign key points at a unique key and every table it points at can be altered with the setting on.
---
## Component Versions
-- `console`: `0.8.1`
-- `core-api`: `2.0.2`
-- `fleetops`: `0.7.1`
+- `console`: `0.8.2`
+- `core-api`: `2.0.3`
+- `fleetops`: `0.7.2`
- `storefront`: `0.5.0`
- `ledger`: `0.1.0`
- `customer-portal`: `0.1.0`
-- `registry-bridge`: `0.2.0`
+- `registry-bridge`: `0.2.1`
- `ai`: `0.1.0`
- `valhalla`: `0.1.0`
- `vroom`: `0.1.0`
@@ -27,26 +26,17 @@
- `iam-engine`: `0.1.13`
---
-## Core API `2.0.2`
-- **Migrations run on MySQL 8.4.** While `migrate` or `sandbox:migrate` runs, each MySQL connection it uses, including storefront's, has `restrict_fk_on_non_standard_key` off for its session and back on when the run ends. Nothing changes outside migrations, or on MySQL 8.0 and MariaDB.
+## Core API `2.0.3`
+- `uuid` is unique on `chat_channels`, `chat_messages`, `chat_participants`, `comments`, `custom_fields`, `dashboards` and `reports`, and `id` on `permissions` and `roles`.
+- The sandbox `access_token_id` foreign keys to `personal_access_tokens` are dropped.
-## Core API `2.0.1`
-- **Sort keys registered at runtime.** `Model::addSortHandler('key', fn ($builder, $direction, $request) => …)` lets an extension order a model's list endpoint by a key that is not one of its columns (`?sort=key`, `?sort=-key`), for example by a column of a companion table.
+## Fleet-Ops `0.7.2`
+- `uuid` is unique on `devices`, `inspection_forms`, `inspection_submissions`, `order_configs`, `telematics`, `warranties` and `work_orders`.
-## Fleet-Ops `0.7.1`
-- **The adhoc dispatch migration finishes on MySQL 8.4 and after a failed run.** Each table and column it adds is created only if it's missing, and its column changes run with MySQL 8.4's foreign key check off for the session.
-
-## Ember Core `0.3.27`
-- **`TableColumn.withSort(sortParam)`, `inGroup(group)` and `hiddenByDefault()`** for columns registered into `<extension>:<resource>:table:columns`.
-
-## Ember UI `0.4.7`
-- **Column picker groups.** Customize Columns lists columns that carry a `group` under a heading of that name, after the table's own columns.
+## Registry Bridge `0.2.1`
+- `uuid` is unique on `registry_extensions`, `registry_extension_bundles` and `registry_users`.
---
## Upgrade Steps
-- Pull the new images and restart the API, queue, scheduler and events containers. There are no configuration changes.
-- Run `php artisan migrate` and `php artisan sandbox:migrate`. On an install whose v0.8.0 upgrade stopped in the adhoc dispatch migration, this finishes it. Elsewhere there is nothing new to run.
-
----
-## Need help?
-Join the discussion on [GitHub Discussions](https://github.com/fleetbase/fleetbase/discussions) or drop by [#fleetbase on Discord](https://discord.com/invite/HnTqQ6zAVn)
+- Pull the new images and restart the API, queue, scheduler and events containers. The deploy runs `migrate` and `sandbox:migrate`.
+- If a migration reports a table with duplicate values, it skips that table. Remove the duplicates, then run the `php artisan migrate:refresh --force --path=…` command the message gives.
diff --git a/console/package.json b/console/package.json
index cebceb3d..ac06a0eb 100644
--- a/console/package.json
+++ b/console/package.json
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/console",
- "version": "0.8.1",
+ "version": "0.8.2",
"private": true,
"description": "Modular logistics and supply chain operating system (LSOS)",
"repository": "https://github.com/fleetbase/fleetbase",
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 288439c3..3a7c5899 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -106,7 +106,7 @@ ENV OCTANE_SERVER=frankenphp
# its "develop" default it roughly doubled every request's time and disabled the OPcache
# JIT in every image built from here, production included.
ENV XDEBUG_MODE=off
-ENV FLEETBASE_VERSION=0.8.1
+ENV FLEETBASE_VERSION=0.8.2
# Set environment
ARG ENVIRONMENT=production