Commit 5d59c0a
fix(objectql): use valid scope value for project overlay rows
protocol.saveMetaItem was writing scope='project' for per-project
customizations, but the sys_metadata.scope enum is
['system', 'platform', 'user']. Every Studio overlay write
("Duplicate view", edit field, etc.) on a tenant environment
hit Field.select validation and returned 500
overlay_persistence_failed.
Project isolation is already provided by the project_id column
(part of the overlay-active unique index), so the scope label
is informational. Always write 'platform' — the value the schema
already defaults to.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4f6bae0 commit 5d59c0a
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1742 | 1742 | | |
1743 | 1743 | | |
1744 | 1744 | | |
1745 | | - | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
1746 | 1749 | | |
1747 | 1750 | | |
1748 | 1751 | | |
| |||
0 commit comments