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

Remove row actions when unfetching tables #14860

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

adrinr
Copy link
Collaborator

@adrinr adrinr commented Oct 24, 2024

Description

Similar to #14859, we might have orphan row actions when some tables are "unfetched". This PR ensures that row actions are removed when a table has been indirectly removed.

image

@adrinr adrinr requested a review from a team as a code owner October 24, 2024 10:40
@adrinr adrinr requested review from samwho and removed request for a team October 24, 2024 10:40
Copy link

linear bot commented Oct 24, 2024

Copy link

qa-wolf bot commented Oct 24, 2024

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/s labels Oct 24, 2024
@adrinr adrinr requested a review from mike12345567 October 24, 2024 10:41
t => !Object.keys(tables).includes(t)
)
for (const table of tablesToRemove) {
await sdk.rowActions.deleteAll(oldTables[table]._id!)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't like adding the row action stuff mixed with the datasource, but this is the only way to do it without redesigning how this currently works..

Base automatically changed from BUDI-8774/row-actions-dont-get-deleted-when-removing-a-datasource to v3-ui October 24, 2024 16:04
@adrinr adrinr merged commit c13613f into v3-ui Oct 24, 2024
11 checks passed
@adrinr adrinr deleted the BUDI-8774/delete-row-actions-when-unfetching-tables branch October 24, 2024 16:05
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/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants