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(dashboard): Cleanup DashboardProject instances on delete #80351

Conversation

narsaynorath
Copy link
Member

@narsaynorath narsaynorath commented Nov 6, 2024

Currently we leave a number of dashboard to project relationships hanging when projects are deleted. Add this clause so deleting projects removes them properly from the dashboard filters.

This appeared because we were grabbing projects off the dashboard instances to run the widget queries, but if a project has been deleted, resolving the project could fail just to evaluate the filters.

@narsaynorath narsaynorath requested a review from a team November 6, 2024 23:44
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 6, 2024
@narsaynorath narsaynorath force-pushed the nar/fix/dashboards-cleanup-dashboardproject-relationships-on-delete branch from 27a8c68 to 795068b Compare November 7, 2024 16:56
Currently we leave a number of dashboard to project relationships
hanging when projects are deleted. Add this clause so deleting projects
removes them properly from the dashboard filters.
@narsaynorath narsaynorath force-pushed the nar/fix/dashboards-cleanup-dashboardproject-relationships-on-delete branch from 795068b to 6de8c94 Compare November 7, 2024 17:10
@narsaynorath narsaynorath marked this pull request as ready for review November 7, 2024 17:11
@narsaynorath
Copy link
Member Author

Closed this because I realized this is the default behaviour and the issues I'd seen for this were actually triggered from the filter conditions.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant