Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dashboards): set name for deleted dashboard #1193

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

wass3rw3rk
Copy link
Member

scenario: another user adds dashboard, you add that dashboard to your list, other user decides to delete dashboard. the dashboard remains in your list but is inaccessible. we have the id, but not the name (because it has been deleted). this will set the name to "(not found)" in the response returned to the callee. we can utilize this in the UI(s) to provide appropriate messaging for users to update their dashboard list.

we don't have access to the actual name because it has been deleted. it
would appear as an empty string if we don't set it. we cue off this name
in the UIs to provide appropriate messaging.
@wass3rw3rk wass3rw3rk requested a review from a team as a code owner September 23, 2024 20:57
Copy link

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 53.04%. Comparing base (59553f5) to head (8edb7b7).

Files with missing lines Patch % Lines
api/dashboard/list_user.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1193      +/-   ##
==========================================
- Coverage   53.04%   53.04%   -0.01%     
==========================================
  Files         559      559              
  Lines       19742    19743       +1     
==========================================
  Hits        10473    10473              
- Misses       8700     8701       +1     
  Partials      569      569              
Files with missing lines Coverage Δ
api/dashboard/list_user.go 0.00% <0.00%> (ø)

@wass3rw3rk wass3rw3rk merged commit 2960513 into main Sep 24, 2024
11 of 14 checks passed
@wass3rw3rk wass3rw3rk deleted the fix/api/dashboards-user branch September 24, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants