发布

  • [OPIK-5271] [BE] Runtime assistant sidebar config endpoint (#5882)

    frostbyte_neo 发布于 2026-03-26 16:17:57 +00:00

    • [OPIK-5271] [BE] feat: runtime assistant sidebar config endpoint

    Add GET /v1/private/assistant-sidebar/config endpoint that returns
    CDN manifest URL and enabled toggle from Helm-injected config.
    Operators can switch ollie-console versions by updating Helm values
    and restarting backend pods — no frontend rebuild required.

    • New AssistantSidebarConfig POJO with manifestUrl field
    • Default: https://cdn.comet.com/ollie/v1/manifest.json (always latest)
    • Override via ASSISTANT_SIDEBAR_MANIFEST_URL env var
    • Add assistantSidebarEnabled toggle to ServiceTogglesConfig
    • Response: { "enabled": bool, "manifest_url": "..." }

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • [OPIK-5271] [BE] test: add test config and integration test for assistant sidebar endpoint
    • Add assistantSidebarEnabled toggle and assistantSidebar config to config-test.yml
    • Add integration test verifying GET /v1/private/assistant-sidebar/config
      returns default values (enabled=false, manifestUrl=cdn default)

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • [OPIK-5271] [BE] fix: add @NonNull to manifestUrl in response DTO

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • [OPIK-5271] [BE] fix: rename to plural AssistantSidebarsResource

    Rename class and path to follow project plural naming convention:

    • AssistantSidebarResource → AssistantSidebarsResource
    • /v1/private/assistant-sidebar/config → /v1/private/assistant-sidebars/config

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • [OPIK-5271] [BE] fix: add @NotBlank validation to manifestUrl

    Prevents serving a blank URL if ASSISTANT_SIDEBAR_MANIFEST_URL is set
    to an empty string.

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • [OPIK-5271] [BE] fix: spotless formatting for AssistantSidebarConfig

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com


    Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

    下载附件