-
Notifications
You must be signed in to change notification settings - Fork 74
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
CLI Issues: YAML Cannot Find Constructors for FidesKeys #5113
Conversation
…alized as a python object and not a string in the yaml file.
… as strings and not FidesKey Python objects.
… and adjust this.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Passing run #9050 ↗︎
Details:
Review all test suite changes for PR #5113 ↗︎ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5113 +/- ##
==========================================
+ Coverage 86.42% 86.54% +0.12%
==========================================
Files 357 357
Lines 22345 22345
Branches 2954 2954
==========================================
+ Hits 19312 19339 +27
+ Misses 2516 2482 -34
- Partials 517 524 +7 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tested locally and it worked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it works locally for me
Thanks very much @thingscouldbeworse and @erosselli! |
Passing run #9051 ↗︎
Details:
Review all test suite changes for PR #5113 ↗︎ |
Closes #2423
Description Of Changes
fides generate
andfides annotate
dataset commands are running into issues due to pyyaml not being able to find a constructor for the FidesKey tag. FidesKeys areConstrainedStr
underneath and have been successfully dumped as strings in the past. The commands appear to pass, but then data like this is written to the yaml file:Code Changes
Steps to Confirm
Fides Generate
nox -s dev -- shell
fides generate dataset db --connection-string postgresql+psycopg2://postgres:fides@fides-db:5432/fides .fides/test.yml
(this generates a dataset from the locally running application db. No real secrets here, these are all public)Fides Annotate
fides annotate dataset .fides/db_dataset.yml
to annotate your dataset interactivelyPre-Merge Checklist
CHANGELOG.md
main
downgrade()
migration is correct and works