Skip to content

unwired(settings): SettingsPanel's clearRedisCache handler has no emitter — the Redis cache clear is unreachable from the GUI #19532

Closed
0 of 1 issue completed

Description

@mrveiss

autobot-frontend/src/components/settings/SettingsPanel.vue:39 binds @clear-redis-cache="clearRedisCache", and :599 defines the handler, which POSTs /api/cache/redis/clear/{database}. No component emits clear-redis-cache: on origin/main, a grep of autobot-frontend/src for clear-redis-cache|RedisCache matches only those two lines. The backend route exists, and after #19365 it is admin-only, audited, and clears only cache/analytics (owner decision 2026-10-25), but no GUI control reaches it.

Acceptance criteria

  • Either the backend cache settings tab gets an admin-only control that emits clear-redis-cache with cache, analytics or all, offering exactly the server's clearable set (from the stats response, never a hard-coded list); or the handler and binding are retired with a recorded verdict.
  • A test shows the control emits and the panel calls the route (or, if retired, that the binding and handler are gone).
  • The button text and errors use i18n keys.

Found while fixing #19365 (#19497). Parent: #18717.

Activity

  1. mrveiss commented on Oct 27, 2026

    @mrveiss
    OwnerAuthor

    Sequencing: the control must offer the server's clearable set from the stats response, which #19365 introduces (merge train #19746, landing next in PR-number order). This starts from main right after that.

  2. mrveiss commented on Oct 27, 2026

    @mrveiss
    OwnerAuthor

    Finding: the issue's premise ('no GUI control reaches the route') does not hold for the live UI.

    • autobot-slm-frontend/src/views/settings/admin/CacheSettings.vue (admin route settings/admin/cache) lists exactly the server's clearable databases. It reads them from GET /cache/stats redis_databases, which api/cache_redis_databases.py builds from _CLEARABLE_DATABASE_NAMES. Each one gets a clear button that posts /cache/redis/clear/{database} through useAutobotApi.clearRedisDatabase, with i18n confirm and success messages.
    • The unemitted clear-redis-cache binding lives in the main GUI's autobot-frontend/src/components/settings/SettingsPanel.vue. Nothing mounts that component: /settings redirects to the SLM admin (router/index.ts), and only SettingsPanel.test.ts and SettingsPanel.stories.ts import it.

    Maintainer decision (2026-10-27): retire the main GUI's SettingsPanel.vue; the SLM is the settings home. Before removal, every handler it carries (backend settings load/save, cache config/activity/stats, clear, clear-type, Redis clear, warmup, prompts) is checked for an SLM equivalent. A handler without one is wired into the SLM first. The removal ships with a recorded dead-code verdict.

  3. mrveiss commented on Oct 27, 2026

    @mrveiss
    OwnerAuthor

    Maintainer decision (2026-10-27), amending the one above: filing is enough for the two handlers that have no working SLM equivalent. The panel retires now in PR #19803. Its versions of those handlers were already non-functional: clearCacheType called the same backend stub that returns success for no-ops, and its settings-blob editor had no reachable route. Removing it loses nothing that worked. The real work lives in #19801 (a real per-type cache clear, or its removal) and #19802 (which settings need an SLM editor).

  4. mrveiss commented on Oct 28, 2026

    @mrveiss
    OwnerAuthor

    Landed via the merge train (PR #19894), main e71921c.

    All three ACs checked against origin/main (retire branch of AC1):

    • AC1 (retire with recorded verdict): autobot-frontend/src/components/settings/SettingsPanel.vue no longer exists on main, and a grep of autobot-frontend/src for clear-redis-cache|clearRedisCache finds nothing. The maintainer decision is recorded on this issue, and the SLM admin view has the working control: autobot-slm-frontend/src/views/settings/admin/CacheSettings.vue (clearRedisDatabase via composables/useAutobotApi.ts).
    • AC2 (binding and handler gone): the panel, its test and its stories are removed, and so are services/CacheService.ts and types/settings.ts, which only the panel used. No remaining importer.
    • AC3 (i18n): the surviving control uses i18n keys, e.g. t('settings.admin.cacheSettings.confirmClearRedisDatabase', ...) at CacheSettings.vue:140; the retired panel's own keys are removed from all locales.

    The two handlers with no working SLM equivalent are tracked in #19801 and #19802.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions