Skip to content

fix(admin): Feature Flags Enable/Disable buttons (Unknown action import) - #2083

Merged
jung-thomas merged 1 commit into
mainfrom
fix/feature-flags-enable-action
Aug 29, 2026
Merged

fix(admin): Feature Flags Enable/Disable buttons (Unknown action import)#2083
jung-thomas merged 1 commit into
mainfrom
fix/feature-flags-enable-action

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Problem

On /admin-ui/#featureFlags, the Enable/Disable buttons do nothing — the browser console throws Error: Unknown action import. Shipped in 1.20.1 (#2060, commit c203773).

Cause

The UI.DataFieldForAction annotations used Action: 'AdminService.FeatureFlags/enable'. The <qualifier>/<name> slash form is OData v4 unbound ActionImport syntax, but enable/disable are bound actions on the FeatureFlags entity (srv/admin-service.cds). Fiori Elements resolves it as a non-existent action import and errors client-side before any POST — so nothing toggles and a reload doesn't help.

Fix

Use the bound-action FQN AdminService.enable / AdminService.disable (4 occurrences: List Report + Object Page). Server side was always correct (unit test test/unit/admin-feature-flags-toggle.test.js posts the bound URL and asserts the flip).

Deploy note

Admin-UI change → the admin bundle is raw-copied into the approuter by mbt build, so this needs a FULL deploy (no --skip-build/-m) to take effect; verify the button post-deploy. Until then, flags are settable via POST /admin/setFeatureFlag.

…-action FQN

The #2060 editable Feature Flags UI wired the enable/disable buttons as
Action: 'AdminService.FeatureFlags/enable' — the <qualifier>/<name> slash form
is OData v4 UNBOUND ActionImport syntax, but enable/disable are BOUND actions
on the FeatureFlags entity. Fiori Elements throws 'Unknown action import'
client-side and never sends the POST, so the buttons do nothing (shipped in
1.20.1). Use the bound-action FQN AdminService.enable / AdminService.disable.
@jung-thomas
jung-thomas merged commit 51ac0bc into main Aug 29, 2026
3 checks passed
@jung-thomas
jung-thomas deleted the fix/feature-flags-enable-action branch August 29, 2026 06:45
jung-thomas added a commit that referenced this pull request Aug 29, 2026
…2081-2083

chore: sync main into DEV (reconcile hotfixes #2081 + #2083)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant