Skip to content

Admin UI: toggle KnowledgeGraphSettings flags (learningPathEnabled, conceptDefinitionsEnabled) #2439

Description

@jung-thomas

Problem

KG_LEARNING_PATH_ENABLED and KG_CONCEPT_DEFINITIONS_ENABLED are registered in srv/lib/feature-flags/registry.js as kind: 'db-setting' on the KnowledgeGraphSettings singleton (columns learningPathEnabled / conceptDefinitionsEnabled), not as ImsConfig flag.* rows.

The admin Feature Flags page only toggles ImsConfig flag.* entries, so attempting to flip these there returns:

Only DB feature flags are togglable here

There is no admin-UI surface for the KnowledgeGraphSettings singleton, so an operator currently cannot enable these two flags from the UI.

Current workaround (used on PROD 2026-09-20)

Direct HANA UPDATE via hana-cli:

UPDATE COM_SAP_DEVELOPERS_IMS_KNOWLEDGEGRAPHSETTINGS
SET LEARNINGPATHENABLED=TRUE, CONCEPTDEFINITIONSENABLED=TRUE, MODIFIEDAT=CURRENT_TIMESTAMP;

(Or a PATCH /odata/v4/admin/KnowledgeGraphSettings singleton with an Admin JWT — the projection is updatable, @requires: 'Admin'.)

Ask

Add an admin-UI surface to view/toggle the KnowledgeGraphSettings singleton columns (enabled, learningPathEnabled, conceptDefinitionsEnabled, onDemandExtractionEnabled, and the tunables extractBuildCap / mergeSimThreshold*), so these no longer require DB access or a hand-crafted PATCH.

Options to consider:

  • A dedicated "Knowledge Graph Settings" tile/section in the admin shell (parallels the existing settings surfaces).
  • OR extend the Feature Flags page to render db-setting-kind registry entries and PATCH the backing *Settings entity, not just ImsConfig flag.* rows — would cover this whole class of flag generically.

Refs

  • srv/lib/feature-flags/registry.js (entries KG_LEARNING_PATH_ENABLED, KG_CONCEPT_DEFINITIONS_ENABLED)
  • srv/admin-service.cds:497 (KnowledgeGraphSettings singleton projection)
  • db/schema.cds:841 (entity definition)
  • Resolver cache TTL 5s: srv/lib/runtime-config/kg-settings.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions