Version 0.5.5.94: field type conversion, exclusion filters and value lists

- Change the data type of custom fields with stored values via a preview:
  values that cannot be converted need an explicit decision, the
  conversion runs in one transaction with row locks and a stale-preview
  check, old values are saved to data/backups and recorded in history.
- Table filters: "!value" excludes rows, "=value" compares exactly;
  Excel-like value list (▾) per column in all tables. The software job
  list computes its value list on the server over the full job history.
- Bulk edit offers custom fields with type-specific input and validation.
- MeshCentral mappings: optional "value if empty" with a guard path;
  fallbacks are skipped when only basic data was delivered.
- Deleting a field removes its translations (same name can be reused);
  one confirmation with the value count replaces the checkbox.
- Job list filters recognize the "reinstall" action and the
  "software deployment" job type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
RolandandClaude Opus 5.5 committed 2026-11-18 21:14:21 +01:00
1 parent 261b4f2029
commit 40cd88871f
20 files changed
+1400 -187

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
- [0.5.5.94](UPDATE-0.5.5.94.md) - data type conversion for custom fields with preview, exclusion filters and Excel-like value lists in tables, bulk edit for custom fields, MeshCentral fallback values for empty sources.
- [0.5.5.93](UPDATE-0.5.5.93.md) - custom fields in asset lists, MeshCentral sync flag for statuses, enforced session secret and translated UI texts.
- [0.5.5.92](UPDATE-0.5.5.92.md) - startup diagnostics with runtime, database and callback endpoint information.
- [0.5.5.91](UPDATE-0.5.5.91.md) - smoother table scrolling and consolidated current development changes.
@@ -29,7 +30,7 @@
Release notes are stored outside the project root to keep the repository overview compact.
The current release is **0.5.5.93**.
The current release is **0.5.5.94**.
Older notes are concise English summaries migrated from the original release documents. Git history remains authoritative for exact implementation details.
+26
View File
@@ -0,0 +1,26 @@
# Update 0.5.5.94
Version 0.5.5.94 makes custom fields fully usable in bulk edit, allows changing the data type of custom fields that already contain values, and lets MeshCentral mappings write a value when the source is missing.
## Changes
- **Bulk edit for custom fields:** custom fields with the "Bulk edit" flag are now offered in asset bulk edit (previously only fields stored directly on the asset were listed). Yes/no fields get a Yes/No/Empty selection, date, number, e-mail and URL fields get a matching input. Values are validated against the field type, changes are recorded in the asset history.
- **Data type conversion with preview:** changing the data type of a custom field with stored values no longer fails. Saving opens a preview that shows convertible values, empty values and values that cannot be converted, together with MeshCentral mappings whose transformation does not fit the new type.
- Values that cannot be converted are never dropped silently; for each one the administrator chooses *replace with* (validated) or *clear*.
- The conversion runs in one database transaction with row locks. If the values changed after the preview, the conversion is rejected and a new preview is shown.
- Before converting, all old values are written to `data/backups/field-conversion-<field>-<timestamp>.json`; every changed value is recorded in the asset history (source `type-conversion`).
- Supported types: short/long text, integer, decimal, yes/no, date, date and time, URL, e-mail, IP address. Text → yes/no recognizes `ja, yes, true, 1, on, an` and `nein, no, false, 0, off, aus`. Yes/no → text uses the default language (e.g. "Ja"/"Nein"). JSON, references and status fields are excluded.
- **MeshCentral "Value if empty":** each field mapping has an optional fallback value that is written when the MeshCentral source is missing or empty (e.g. `false` for BitLocker, whose key only exists while it is enabled). Combine it with the rule "MeshCentral wins" so later changes are applied.
- The fallback is only used if the surrounding data exists for the device: by default the parent path of the source path, or an explicit path in **Only if present**. Devices without detail data keep their values.
- If MeshCentral only delivers basic data (fallback after a failed detail query), no fallback values are applied in that run and a warning is logged.
- **Exclusion filters in all tables:** a filter line starting with `!` excludes matching rows (`!Dell`, `!@empty`), `=value` compares the whole cell value exactly (`=Windows 10` does not match "Windows 10 Pro"). Include lines stay OR-linked; a row must match one include (if any) and no exclude. `==x` searches for a literal "=x". The software job list supports the same syntax on the server.
- **Value list per column (Excel-like):** the ▾ button in a filter cell opens a list of all values of the column, with counts, search and "(Select all)". Only rows that pass the filters of the other columns are considered. Applying writes the selection into the normal filter field (`=a` lines or, if shorter, `!=b` lines), so saved filters, the filter status and "Reset filters" keep working.
- The software job list computes its value list on the server (`/software/job-filter-values`) over the complete job history, not only the displayed page, considering the filters of the other columns (at most the newest 20,000 jobs). Job ID and time have no value list; they keep the range helper.
- **Fix:** the job list text filters now also recognize the translated action "reinstall" and the job type "software deployment".
- **Deleting fields:** the "Confirm values" checkbox next to the delete button was removed. A single confirmation now names the field and the number of stored values; the server additionally checks that this number is still current.
- **Fix:** deleting a custom field now also removes its translations, so a field with the same technical name can be created again. Translations left over from earlier deletions are reused.
- Version updated to 0.5.5.94.
## Upgrade notes
- The database columns `mesh_field_mappings.empty_value` and `mesh_field_mappings.empty_value_guard` are added automatically at startup.