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 nested field name displays in D&D tables #5439

Merged
merged 5 commits into from
Nov 5, 2024

Conversation

jpople
Copy link
Contributor

@jpople jpople commented Oct 31, 2024

Closes HJ-59

Description Of Changes

Changes D&D's default result cell to display "un-nested" subfield names with multiple parts derived from the URN instead of just the "terminal" field's name.

Before:
Screenshot 2024-10-31 at 02 37 57

After:
Screenshot 2024-10-31 at 02 38 19

Non-subfield resources' naming is unchanged.

Code Changes

  • Adds a helper method to derive a resource's name

Steps to Confirm

  • Populate D&D tables with data in nested fields
  • Check cell names beneath nested fields
  • Fields that are nested more than one level deep should show a multiple-part name separated by a .

Pre-Merge Checklist

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

Copy link

vercel bot commented Oct 31, 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 Nov 5, 2024 9:07pm

Copy link

cypress bot commented Oct 31, 2024

fides    Run #10803

Run Properties:  status check passed Passed #10803  •  git commit 0ed2890776 ℹ️: Merge 3f66b14d505d5215f9a9d430570c725a28aa6e19 into ba4c825f21a3fc44507b071193e3...
Project fides
Branch Review refs/pull/5439/merge
Run status status check passed Passed #10803
Run duration 00m 39s
Commit git commit 0ed2890776 ℹ️: Merge 3f66b14d505d5215f9a9d430570c725a28aa6e19 into ba4c825f21a3fc44507b071193e3...
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
View all changes introduced in this branch ↗︎

@jpople jpople requested a review from gilluminate November 5, 2024 17:02
@jpople jpople merged commit 44054e7 into main Nov 5, 2024
13 checks passed
@jpople jpople deleted the jpople/hj-59/fix-subfield-naming branch November 5, 2024 21:39
Copy link

cypress bot commented Nov 5, 2024

fides    Run #10808

Run Properties:  status check passed Passed #10808  •  git commit 44054e7b96: Fix nested field name displays in D&D tables (#5439)
Project fides
Branch Review main
Run status status check passed Passed #10808
Run duration 00m 38s
Commit git commit 44054e7b96: Fix nested field name displays in D&D tables (#5439)
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
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