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

PROD-2701 Fix no monitor button on empty tables #5249

Conversation

lucanovera
Copy link
Contributor

@lucanovera lucanovera commented Aug 30, 2024

Description Of Changes

Fix no monitor button appearing on empty tables.

The problem was caused because the FE was trying to figure out the resource type based off the nested resource content. This caused a problem with empty tables causing it to think that it was a Field and therefore not showing a Monitor icon. The BE now returns a resource_type so we should use that instead. I still left the other code as a fallback since resource_type is listed as an optional property.

Code Changes

  • Get resource type from the BE property first, before trying to infer the type based on it's nested resources

Steps to Confirm

  • Run a DnD monitor with our test BQ
  • Look at the monitor results in the Data Detection / Activity pages
  • Check that we now display a Monitor button for the empty_dataset

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Aug 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Aug 30, 2024 5:12pm

Copy link

cypress bot commented Aug 30, 2024

fides    Run #9761

Run Properties:  status check passed Passed #9761  •  git commit a53b5b0274 ℹ️: Merge 6e3e33b72962731e743ca439cecb3370a444b6af into e8f344029b278046fd30a8d6572e...
Project fides
Branch Review refs/pull/5249/merge
Run status status check passed Passed #9761
Run duration 00m 39s
Commit git commit a53b5b0274 ℹ️: Merge 6e3e33b72962731e743ca439cecb3370a444b6af into e8f344029b278046fd30a8d6572e...
Committer Lucano Vera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

@lucanovera lucanovera requested a review from jpople August 30, 2024 15:07
@lucanovera lucanovera merged commit 8736672 into main Aug 30, 2024
13 checks passed
@lucanovera lucanovera deleted the PROD-2701-No-action-button-to-monitor-empty-table-in-Data-Detection branch August 30, 2024 19:00
lucanovera added a commit that referenced this pull request Aug 30, 2024
Copy link

cypress bot commented Aug 30, 2024

fides    Run #9763

Run Properties:  status check passed Passed #9763  •  git commit 87366729a3: PROD-2701 Fix no monitor button on empty tables (#5249)
Project fides
Branch Review main
Run status status check passed Passed #9763
Run duration 00m 37s
Commit git commit 87366729a3: PROD-2701 Fix no monitor button on empty tables (#5249)
Committer Lucano Vera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

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.

2 participants