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(dasboards): remove deleted dashboards from users list #1182

Merged
merged 7 commits into from
Sep 13, 2024

Conversation

KellyMerrick
Copy link
Contributor

Dashboard ID's for deleted dashboards need to also be deleted from a user's dashboard list, as they would continue to count towards a user's total dashboard count otherwise.

@KellyMerrick KellyMerrick self-assigned this Sep 13, 2024
@KellyMerrick KellyMerrick requested a review from a team as a code owner September 13, 2024 18:09
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 52.41%. Comparing base (c5896c4) to head (e1e25c3).
Report is 1 commits behind head on main.

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

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1182      +/-   ##
==========================================
- Coverage   52.44%   52.41%   -0.04%     
==========================================
  Files         557      557              
  Lines       19421    19433      +12     
==========================================
  Hits        10185    10185              
- Misses       8670     8682      +12     
  Partials      566      566              
Files with missing lines Coverage Δ
api/types/user.go 100.00% <ø> (ø)
api/dashboard/delete.go 0.00% <0.00%> (ø)

Copy link
Contributor

@ecrupper ecrupper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: do you think it's a better idea to make the user updates after the deletion of the dashboard? Say the DB call fails for whatever reason, it may be a better experience for the dashboard reference to still exist on the user object if the delete fails.

@KellyMerrick KellyMerrick merged commit f3b5f5c into main Sep 13, 2024
11 of 13 checks passed
@KellyMerrick KellyMerrick deleted the enh_del_user_dashboards branch September 13, 2024 19:16
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