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

Data section resource deletion warning #15499

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

mike12345567
Copy link
Collaborator

Description

Previously we had some warnings for deletion of data resources - but they were not always accurate and did not cover all of the data resources that are available within the system.

We have implemented a new endpoint POST /api/screens/usage/:sourceId that will determine what type of data resource the source is and then attempt to find its usages throughout the screens within the app - this can then be used to warn users before deleting a data resource that it may break the screen to remove it.

Screenshots

A query, not in use:
image

A query that is in use:
image

A datasource which is in use (through queries) and has two queries attached to it:
image

An internal table, with views, that is in use:
image

An external table, with views, but no screens:
image

An external table, with no views and no screens:
image

A view used in screens:
image

@mike12345567 mike12345567 self-assigned this Feb 6, 2025
@mike12345567 mike12345567 requested a review from a team as a code owner February 6, 2025 15:29
@mike12345567 mike12345567 requested review from samwho and removed request for a team February 6, 2025 15:29
Copy link

qa-wolf bot commented Feb 6, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/xl labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
firestorm Data/Infra/Revenue Team size/xl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants