v0.2.1 is a fix release. Nothing about how Trove KB works has moved; a few things that should have worked in v0.2.0 now do. A server on the Production channel installs it at its update hour.
Changing a field’s type keeps its values
A field’s type could always be changed on its edit page, but the values documents already held stayed in their old shape: a VLAN typed into a text field stayed text after the field became a VLAN, and no longer passed the field’s own check. Changing the type now converts each document’s value where it fits the new type. 10 becomes the VLAN number 10, 10.0.0.5 becomes an IP address, and a dropdown’s option becomes its label in a text field. A value that doesn’t fit is kept as it was, and the doc type page says how many were converted and how many kept. Moving a dropdown to another option list, or changing a MAC field’s format, converts the same way. The Field types topic has the details.
PDF imports read like the document
An imported PDF used to take its title from its file name, so a folder of manual_v3_final.pdf became a collection of articles named exactly that, and its body arrived as flat lines. A PDF is now titled by the heading on its first page, then by its own Title property, and only then by its file name. Its text becomes Markdown: larger type becomes headings, gaps become paragraphs, bullets and numbered or indented lines become lists, and words hyphenated across a line are joined again. Running headers, footers, and page numbers are left out.
This applies to PDFs imported from now on, and to a new version uploaded under Manage. Articles already imported keep their text until their file changes in a later import, or a new version is uploaded under Manage.
Smaller things
- Sidecars across updates. The updater left the Bitwarden (
--profile vault) and 1Password (--profile onepassword) sidecars running, but never applied a new build’s changes to them. It now turns on every profile with a service running before each deploy, and a rollback puts the old definitions back. A sidecar you stopped stays stopped, andCOMPOSE_PROFILESin.envfixes the list if you’d rather. The updater runs from the checkout, so this takes effect from the update after v0.2.1. - A way back for a sole administrator. Administrators must enroll a second step, and one who loses every factor is reset by another administrator from Admin → Users. With only one administrator, there was no way back short of editing the database. Now there is, from the server console:
docker compose exec app node dist/reset-mfa.js [email protected]
It does what the Admin → Users button does and writes the same audit entry, marked as done from the console. The Accounts topic has the bare-metal form.
- “1 icon”. The doc type icon picker said “1 icons” when a search narrowed it to one.
- Update hour wording. The README said a Development server installs each night; it installs at the update hour, like Production.
Upgrading
Nothing to do by hand. A server on the Production channel installs v0.2.1 at its update hour, or within ten minutes of Update now under Admin → System health. On the Manual channel, install it from the checkout:
updater/trove-kb-update.sh --install v0.2.1
Without the updater, docker compose pull && docker compose up -d picks up the new stable image. The Updates topic has the details.