Skip to content

Fix V3 config backups tab errors#1079

Merged
Tim020 merged 1 commit into
devfrom
fix/v3-backups-tab-errors
May 24, 2026
Merged

Fix V3 config backups tab errors#1079
Tim020 merged 1 commit into
devfrom
fix/v3-backups-tab-errors

Conversation

@Tim020
Copy link
Copy Markdown
Contributor

@Tim020 Tim020 commented May 24, 2026

Summary

  • NOOP WebSocket warning: Added case 'NOOP': break; to the handleMessage switch in useWebSocket.ts. The backend intentionally sends {"OP": "NOOP", "ACTION": "GET_SETTINGS"} on every WS connection — NOOP is a carrier OP for ACTION-based messages — but the switch had no handler for it, causing a spurious "Unknown OP received from WebSocket: NOOP" warning on every connect.
  • BTable TypeError crash: Removed invalid BVN 0.45.x props sort-by="created_at" and :sort-desc="true" from ConfigBackups.vue. BVN replaced the old Bootstrap Vue 2 string/bool sort pair with a unified v-model:sort-by accepting BTableSortBy[]. Passing a static string caused BVN's internal computedItems to call "created_at"?.filter(fn), which threw TypeError: o.value?.filter is not a function. The backend already returns backups sorted newest-first, so no client-side initial sort is needed. Column-header sorting still works via the sortable: true field config.

Test plan

  • Navigate to /config → Backups tab
  • Confirm no "Unknown OP received from WebSocket: NOOP" warning in the browser console
  • Confirm no "TypeError: o.value?.filter is not a function" error
  • Confirm backup files are displayed and the table renders correctly
  • Confirm clicking "Size" or "Date Created" column headers sorts the table

🤖 Generated with Claude Code

- Add `case 'NOOP': break;` to the WebSocket handleMessage switch so the
  intentional NOOP carrier OP (used to deliver ACTION-based messages on
  connect) is silently consumed instead of falling to the default warn log.
- Remove invalid BVN 0.45.x props `sort-by="created_at"` and
  `:sort-desc="true"` from ConfigBackups BTable. BVN replaced the old BV2
  string/bool pair with `v-model:sort-by` (BTableSortBy[]); passing a
  string caused computedItems to call `"created_at"?.filter(fn)` which
  threw TypeError. Backend already returns backups sorted newest-first.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Client V3 Test Results

23 tests  ±0   23 ✅ ±0   0s ⏱️ ±0s
 2 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 8e830df. ± Comparison against base commit c39e427.

@github-actions
Copy link
Copy Markdown

Client Test Results

128 tests  ±0   128 ✅ ±0   0s ⏱️ ±0s
  6 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 8e830df. ± Comparison against base commit c39e427.

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Python Test Results

  1 files  ±0    1 suites  ±0   1m 35s ⏱️ +2s
603 tests ±0  603 ✅ ±0  0 💤 ±0  0 ❌ ±0 
608 runs  ±0  608 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 8e830df. ± Comparison against base commit c39e427.

@Tim020 Tim020 enabled auto-merge (squash) May 24, 2026 10:05
@Tim020 Tim020 merged commit 4c9ad93 into dev May 24, 2026
31 checks passed
@Tim020 Tim020 deleted the fix/v3-backups-tab-errors branch May 24, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant