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 stale items rendering on D&D tables #5372

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

jpople
Copy link
Contributor

@jpople jpople commented Oct 14, 2024

Closes HJ-40

Description Of Changes

Updates the key generation helper method on D&D tables to use the item URN instead of just the name to prevent name collisions from causing visual bugs.

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Relevant Follow-Up Issues Created
  • Update CHANGELOG.md

Copy link

vercel bot commented Oct 14, 2024

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

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 14, 2024 4:32pm

@@ -1,6 +1,6 @@
import { StagedResource } from "~/types/api";

const getResourceRowName = (row: StagedResource) =>
`${row.monitor_config_id}-${row.name ?? row.urn}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think urn already includes the monitor id, so we don't need it?

Copy link

cypress bot commented Oct 14, 2024

fides    Run #10397

Run Properties:  status check passed Passed #10397  •  git commit 56088b0cbe ℹ️: Merge 47359686f5d60a2933c269a3f5bb40e2af4af10c into 5d76877509afc1bf2f7b230e308b...
Project fides
Run status status check passed Passed #10397
Run duration 00m 37s
Commit git commit 56088b0cbe ℹ️: Merge 47359686f5d60a2933c269a3f5bb40e2af4af10c into 5d76877509afc1bf2f7b230e308b...
Committer jpople
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.

@andres-torres-marroquin andres-torres-marroquin merged commit 33ef064 into main Oct 14, 2024
10 of 12 checks passed
@andres-torres-marroquin andres-torres-marroquin deleted the jpople/hj-40/dnd-row-id-fix branch October 14, 2024 16:42
Copy link

cypress bot commented Oct 14, 2024

fides    Run #10401

Run Properties:  status check passed Passed #10401  •  git commit 33ef06491f: Fix stale items rendering on D&D tables (#5372)
Project fides
Run status status check passed Passed #10401
Run duration 00m 37s
Commit git commit 33ef06491f: Fix stale items rendering on D&D tables (#5372)
Committer jpople
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.

@jpople jpople mentioned this pull request Oct 14, 2024
4 tasks
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