You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unwired(settings): SettingsPanel's clearRedisCache handler has no emitter — the Redis cache clear is unreachable from the GUI #19532
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).
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.
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/statsredis_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.
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).
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.
Activity
mrveiss commentedon Oct 27, 2026
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.
mrveiss commentedon Oct 27, 2026
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 routesettings/admin/cache) lists exactly the server's clearable databases. It reads them fromGET /cache/statsredis_databases, whichapi/cache_redis_databases.pybuilds from_CLEARABLE_DATABASE_NAMES. Each one gets a clear button that posts/cache/redis/clear/{database}throughuseAutobotApi.clearRedisDatabase, with i18n confirm and success messages.clear-redis-cachebinding lives in the main GUI'sautobot-frontend/src/components/settings/SettingsPanel.vue. Nothing mounts that component:/settingsredirects to the SLM admin (router/index.ts), and onlySettingsPanel.test.tsandSettingsPanel.stories.tsimport 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.mrveiss commentedon Oct 27, 2026
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:
clearCacheTypecalled 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).docs(frontend): the async example and the docs index no longer point …
mrveiss commentedon Oct 28, 2026
Landed via the merge train (PR #19894), main e71921c.
All three ACs checked against origin/main (retire branch of AC1):
autobot-frontend/src/components/settings/SettingsPanel.vueno longer exists on main, and a grep ofautobot-frontend/srcforclear-redis-cache|clearRedisCachefinds 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(clearRedisDatabaseviacomposables/useAutobotApi.ts).services/CacheService.tsandtypes/settings.ts, which only the panel used. No remaining importer.t('settings.admin.cacheSettings.confirmClearRedisDatabase', ...)atCacheSettings.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.