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

HJ-20 remove requirement in fides and fideslang to not have datacategories on subfields #5434

Merged
merged 7 commits into from
Nov 7, 2024

Conversation

thingscouldbeworse
Copy link
Contributor

Closes #HJ-20

Description Of Changes

remove the validator on subfields not having data categories

Code Changes

  • remove the pydantic validator step about subfield data categories

Steps to Confirm

  • add a new dataset via upload that has data categories on subfields, such as
dataset:
- fides_key: example_dataset_issue_hj36
  organization_fides_key: default_organization
  name: example_dataset_issue_hj36
  description: Minimal dataset reproducing issue (HJ-36)
  collections:
    - name: example_table
      fields:
        - name: example_success_field
          description: Can save data category changes
          data_categories:
            - user.device
        - name: example_success_field
          description: Can save data category changes
          data_categories:
            - user.device
        - name: example_nested_field
          data_categories:
            - user.device
          fields:
            - name: example_success_nested_field
              description: Can save data category changes on nested field
              data_categories:
                - user.device
              fields: []
  • verify that the dataset uploaded

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Documentation:
    • documentation complete, PR opened in fidesdocs
    • documentation issue created in fidesdocs
    • if there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
  • Issue Requirements are Met
  • Relevant Follow-Up Issues Created
  • Update CHANGELOG.md
  • For API changes, the Postman collection has been updated
  • If there are any database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!

Copy link

vercel bot commented Oct 29, 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 Nov 6, 2024 9:58pm

Copy link
Contributor

@erosselli erosselli left a comment

Choose a reason for hiding this comment

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

Can we add a test (maybe in the patch dataset yaml endpoint?) that checks that we can successfully add a data category to a non-terminal field?

Copy link

cypress bot commented Oct 29, 2024

fides    Run #10865

Run Properties:  status check passed Passed #10865  •  git commit 18f552941d ℹ️: Merge 31e0abec63a19856ad3ba5d59f87496cc46168e4 into 66ec9d2d89f3dcd4853ce7d03055...
Project fides
Branch Review refs/pull/5434/merge
Run status status check passed Passed #10865
Run duration 00m 38s
Commit git commit 18f552941d ℹ️: Merge 31e0abec63a19856ad3ba5d59f87496cc46168e4 into 66ec9d2d89f3dcd4853ce7d03055...
Committer Kirk Hardy
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 ↗︎

Copy link
Contributor

@erosselli erosselli left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for adding the change. Don't forget to add the changelog entry and update the requirements once the fideslang PR is released

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.20%. Comparing base (55d3454) to head (31e0abe).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5434      +/-   ##
==========================================
- Coverage   85.30%   85.20%   -0.10%     
==========================================
  Files         386      386              
  Lines       24206    24234      +28     
  Branches     2636     2640       +4     
==========================================
  Hits        20649    20649              
- Misses       3004     3032      +28     
  Partials      553      553              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thingscouldbeworse thingscouldbeworse merged commit 590d85a into main Nov 7, 2024
39 checks passed
@thingscouldbeworse thingscouldbeworse deleted the HJ-20_save-data-categories-nested-fields branch November 7, 2024 13:07
Copy link

cypress bot commented Nov 7, 2024

fides    Run #10873

Run Properties:  status check passed Passed #10873  •  git commit 590d85afb7: HJ-20 remove requirement in fides and fideslang to not have datacategories on su...
Project fides
Branch Review main
Run status status check passed Passed #10873
Run duration 00m 38s
Commit git commit 590d85afb7: HJ-20 remove requirement in fides and fideslang to not have datacategories on su...
Committer Kirk Hardy
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