Dashboard sync fails for entity types with long names

Created on 25 March 2025, 12 days ago

Problem/Motivation

The API attempts to write route names to the entity_id column that exceed its schema length, causing a write failure.

Steps to reproduce

Create a view with a long nice name.

Proposed resolution

Changing to machine names would fix the problem but cause a lot of annoying data duplication to existing dashboards without writing a prohibitively complicated update hook. Better to just truncate the string for now; long strings don't fit in the dashboard UI anyway, and this field will eventually have to be rewritten as part of the dashboard initiative.

Remaining tasks

Compare API code and DB column lengths and truncate strings as needed.

Data model changes

I plan to be a little conservative on length, so some sites with entity types with exactly the character length limit may see a duplicate result in their dashboard for "View: My very long name for a view" and "View: My very long name for..."

πŸ› Bug report
Status

Active

Version

2.2

Component

Bugs

Created by

πŸ‡ΊπŸ‡ΈUnited States itmaybejj

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024