mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-13 00:03:00 +00:00
* feat(operators): allow operators to access assets page Adds the "assets" key to workspace operator_settings (defaulting to true for existing and new workspaces) and toggles the frontend default so the assets page is visible to operators by default. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * nit: remove settings btn when not available --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
20 lines
502 B
SQL
20 lines
502 B
SQL
-- Remove "assets" key from operator_settings
|
|
UPDATE workspace_settings
|
|
SET operator_settings = operator_settings - 'assets'
|
|
WHERE operator_settings IS NOT NULL
|
|
AND operator_settings ? 'assets';
|
|
|
|
-- Revert the column default
|
|
ALTER TABLE workspace_settings
|
|
ALTER COLUMN operator_settings SET DEFAULT '{
|
|
"runs": true,
|
|
"groups": true,
|
|
"folders": true,
|
|
"workers": true,
|
|
"triggers": true,
|
|
"resources": true,
|
|
"schedules": true,
|
|
"variables": true,
|
|
"audit_logs": true
|
|
}';
|