v20260113-08-vspc-object-linking-normalize #114

Merged
ivooskamp merged 3 commits from v20260113-08-vspc-object-linking-normalize into main 2026-01-13 16:46:00 +01:00
Showing only changes of commit beda8cc0f9 - Show all commits

View File

@ -1,77 +1,75 @@
## v20260113-01-changelog-markdown-render
- Updated the changelog route to render remote Markdown content with proper formatting. ***
- Enabled Markdown parsing so headings, lists, links, and code blocks are displayed as intended.
- Ensured the changelog always fetches the latest version from the source repository at request time.
- Removed plain-text rendering to prevent loss of Markdown structure.
--- ## v0.1.21
## v20260113-02-edge-mail-lightmode This release focuses on improving correctness, consistency, and access control across core application workflows, with particular attention to changelog rendering, browser-specific mail readability, Run Checks visibility, role-based access restrictions, override flexibility, and VSPC object linking reliability. The goal is to ensure predictable behavior, clearer diagnostics, and safer administration across both day-to-day operations and complex multi-entity reports.
- Forced light color-scheme for embedded mail content to prevent Edge auto dark mode rendering. ### Changelog Rendering and Documentation Accuracy
- Added explicit color-scheme and forced-color-adjust rules so original mail CSS is respected.
- Ensured consistent mail readability across Edge and Firefox in Inbox, Deleted Inbox, Job Detail, Run Checks, Daily Jobs, and Admin All Mail views.
--- - Updated the Changelog route to render remote Markdown content instead of plain text.
- Enabled full Markdown parsing so headings, lists, links, and code blocks are displayed correctly.
- Ensured the changelog always fetches the latest version directly from the source repository at request time.
- Removed legacy plain-text rendering to prevent loss of structure and formatting.
## v20260113-03-runchecks-overall-remark ### Mail Rendering and Browser Compatibility
- Added support to display the overall remark (overall_message) on the Run Checks page. - Forced a light color scheme for embedded mail content to prevent Microsoft Edge from applying automatic dark mode styling.
- Ensured consistency between the Run Checks view and the Job Details page where the overall remark was already available. - Added explicit `color-scheme` and `forced-color-adjust` rules so original mail CSS is respected.
- Ensured consistent mail readability across Edge and Firefox.
- Applied these fixes consistently across Inbox, Deleted Inbox, Job Details, Run Checks, Daily Jobs, and Admin All Mail views.
--- ### Run Checks Visibility and Consistency
## v20260113-04-edge-initial-setup-users-exist - Added support for displaying the overall remark (overall_message) directly on the Run Checks page.
- Fixed incorrect redirect to the “Initial admin setup” page when users already exist. - Ensured consistency between Run Checks and Job Details, where the overall remark was already available.
- Changed the setup check from “admin user exists” to “any user exists”, so existing environments always show the login page instead of allowing a new initial admin to be created. - Improved operator visibility of high-level run context without requiring navigation to job details.
- Prevented direct access to the initial setup route when at least one user is present (redirects to login).
--- ### Initial Setup and User Existence Safeguards
## v20260113-05-reporter-menu-restrict - Fixed an incorrect redirect to the “Initial admin setup” page when users already exist.
- Changed setup detection logic from “admin user exists” to “any user exists”.
- Ensured existing environments always show the login page instead of allowing a new initial admin to be created.
- Prevented direct access to the initial setup route when at least one user is present.
### Role-Based Access Control and Menu Restrictions
- Restricted the Reporter role to only access Dashboard, Reports, Changelog, and Feedback. - Restricted the Reporter role to only access Dashboard, Reports, Changelog, and Feedback.
- Updated menu rendering to hide all unauthorized menu items for Reporter users. - Updated menu rendering to fully hide unauthorized menu items for Reporter users.
- Adjusted route access to ensure Feedback pages are accessible for the Reporter role. - Adjusted route access to ensure Feedback pages remain accessible for the Reporter role.
- Improved overall consistency between visible navigation and backend access rules.
--- ### Override Matching Flexibility and Maintainability
## v20260113-06-overrides-error-match-modes - Added configurable error text matching modes for overrides: contains, exact, starts with, and ends with.
- Added configurable error text matching modes for overrides: contains, exact, starts with, ends with - Updated override evaluation logic to apply the selected match mode across run remarks and object error messages.
- Updated override evaluation logic to apply the selected match mode across run remarks and object error messages - Extended the overrides UI with a match type selector and improved edit support for existing overrides.
- Extended overrides UI with a match type selector and improved edit support for existing overrides - Added a database migration to create and backfill the `overrides.match_error_mode` field for existing records.
- Added database migration to create and backfill overrides.match_error_mode for existing records
--- ### Job Deletion Stability
## v20260113-07-job-delete-fix - Fixed an error that occurred during job deletion.
- Corrected backend deletion logic to prevent runtime exceptions.
- Ensured related records are handled safely to avoid constraint or reference errors during removal.
- Fixed an error that occurred when deleting a job. ### VSPC Object Linking and Normalization
- Corrected backend deletion logic to prevent exceptions during job removal.
- Ensured related records are handled safely to avoid constraint or reference errors.
--- - Fixed VSPC company name normalization so detection and object prefixing behave consistently.
- Ensured filtered object persistence respects the UNIQUE(customer_id, object_name) constraint.
- Correctly update `last_seen` timestamps for existing objects.
- Added automatic object persistence routing for VSPC per-company runs, ensuring objects are linked to the correct customer and job.
- Improved auto-approval for VSPC Active Alarms summaries with per-company run creation and case-insensitive object matching.
- Added best-effort retroactive processing to automatically link older inbox messages once company mappings are approved.
## v20260113-08-vspc-object-linking ### VSPC Normalization Bug Fixes and Backward Compatibility
- Fixed VSPC company name normalization so company detection and object prefixing match consistently.
- Fixed filtered object persistence to respect UNIQUE(customer_id, object_name) and to update last_seen timestamps correctly.
- Added auto object persistence routing for VSPC per-company runs so objects are linked to the correct customer/job (prefix stripped).
- Improved auto-approval for VSPC Active Alarms summary:
- Creates per-company runs automatically when company jobs are mapped (new imports and inbox re-parse).
- Uses case-insensitive matching for "<company> | <object>" mail objects.
- Added best-effort retroactive processing after approving VSPC company mappings to automatically link older inbox messages that are now fully mapped.
--- - Removed duplicate definitions of VSPC Active Alarms company extraction logic that caused inconsistent normalization.
- Ensured a single, consistent normalization path is used when creating jobs and linking objects.
## v20260113-08-vspc-object-linking-normalize - Improved object linking so real objects (e.g. HV01, USB Disk) are reliably associated with their jobs.
- Restored automatic re-linking for both new and historical VSPC mails.
- Fixed duplicate definition of the VSPC Active Alarms company extraction logic, which caused inconsistent company normalization.
- Ensured consistent company name normalization is used when creating per-company VSPC jobs and when linking objects to those jobs.
- Improved object linking for VSPC Active Alarms so real objects (e.g. HV01, USB Disk) are correctly associated with their jobs.
- Restored automatic re-linking of previously approved companies and objects for new and historical VSPC mails.
- Added backward-compatible matching to prevent existing VSPC jobs from breaking due to earlier inconsistent company naming. - Added backward-compatible matching to prevent existing VSPC jobs from breaking due to earlier inconsistent company naming.
***
---
## v0.1.20 ## v0.1.20