-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fixing root user client ID #4582
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Passing run #6157 ↗︎Details:
Review all test suite changes for PR #4582 ↗︎ |
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.
Nice @galvana. This is a very old artifact!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4582 +/- ##
=======================================
Coverage 86.81% 86.81%
=======================================
Files 330 330
Lines 19839 19839
Branches 2545 2545
=======================================
Hits 17223 17223
Misses 2150 2150
Partials 466 466 ☔ View full report in Codecov by Sentry. |
Closes PROD-1540 and PROD-1541
Description Of Changes
Removing the need for a
client_id
when creating of aPolicy
,Rule
, orRuleTarget
. The root user is transient and doesn't have an entry in theclient
database table. This means that theclient_id
associated with the root user'sClientDetail
does not refer to a database row and causes thepolicy
and related tables to raise a foreign key violation during creation. Met with @NevilleS and @adamsachs and agreed it was acceptable to remove theclient_id
from the create calls for now. We want to spend more time at a later date to determine the full impact of removing theclient_id
from the tables altogether.Code Changes
client_id
when creating of aPolicy
,Rule
, orRuleTarget
client_id
field to be optional on thePolicy
modelPolicy
,Rule
, orRuleTarget
as a root userSteps to Confirm
nox -s dev
fidesadmin
userPolicy
,Rule
, orRuleTarget
, verify there aren't any errorsPre-Merge Checklist
CHANGELOG.md