Skip to content

Preserve deleted dashboards across restart#63

Merged
ccpk1 merged 1 commit intomainfrom
ccpk1/issue62
Mar 18, 2026
Merged

Preserve deleted dashboards across restart#63
ccpk1 merged 1 commit intomainfrom
ccpk1/issue62

Conversation

@ccpk1
Copy link
Owner

@ccpk1 ccpk1 commented Mar 18, 2026

Summary

  • treat legacy kcd-... and current cod-... dashboard URL paths as aliases for existence, dedupe, and delete flows
  • remove both alias variants when a dashboard is deleted so pre-fix dashboards cannot reappear after restart
  • collapse legacy/current alias pairs in the dashboard selector and add regression coverage for legacy dashboard behavior

Validation

  • ./utils/quick_lint.sh --fix
  • python -m pytest tests/test_dashboard_builder_single_path.py tests/test_dashboard_builder_frontend_compat.py tests/test_dashboard_builder_release_fetch.py tests/test_dashboard_release_asset_apply.py tests/test_dashboard_context_contract.py tests/test_dashboard_template_contract.py tests/test_dashboard_template_release_resolution.py tests/test_dashboard_provenance_contract.py tests/test_dashboard_manifest_runtime_policy.py tests/test_dashboard_manifest_dependencies_contract.py tests/test_dashboard_custom_card_detection.py tests/test_options_flow_dashboard_release_selection.py -v --tb=line

Closes #62

What changed:
- treat legacy kcd and current cod dashboard URL paths as aliases for existence checks
- delete and startup dedupe both dashboard aliases instead of a single path variant
- collapse alias pairs in the dashboard selector and add regressions for the legacy/current pair behavior

Why:
- dashboards created before the current URL-path behavior could leave behind a sibling alias entry
- that surviving alias could make a deleted dashboard reappear after restart or reboot

Refs #62
@ccpk1 ccpk1 added bug Something is not working area: dashboard Dashboard UI and template behavior labels Mar 18, 2026
@ccpk1 ccpk1 merged commit cd59c22 into main Mar 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: dashboard Dashboard UI and template behavior bug Something is not working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ISSUE] Deleted dashboards reappear after reboot

1 participant