-
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
HJ-86 system endpoint new lifecycle table #5484
HJ-86 system endpoint new lifecycle table #5484
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
fides Run #10951
Run Properties:
|
Project |
fides
|
Branch Review |
refs/pull/5484/merge
|
Run status |
Passed #10951
|
Run duration | 00m 38s |
Commit |
8640115a70 ℹ️: Merge 2a000506b28ec230f77093d2e69af382dcd73ab2 into 2583b1cf7ebb7a902806ad2f3713...
|
Committer | Kirk Hardy |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
(System.connection_configs != None) | ||
| (System.dataset_references.any()) # noqa: E712 |
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.
why do we use != None
for one but .any()
for the other condition?
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.
dataset_references
is a column on ctl_systems
, so we just check for anything in that column. System.connection_configs
is a derived relationship, System
s have a property connection_configs
but it's attached via the connectionconfig
table having a system_id
, so the SQL that gets generated has a join and works better with != None
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5484 +/- ##
=======================================
Coverage 85.20% 85.20%
=======================================
Files 386 386
Lines 24242 24247 +5
Branches 2642 2644 +2
=======================================
+ Hits 20655 20660 +5
Misses 3033 3033
Partials 554 554 ☔ View full report in Codecov by Sentry. |
fides Run #10954
Run Properties:
|
Project |
fides
|
Branch Review |
main
|
Run status |
Passed #10954
|
Run duration | 00m 37s |
Commit |
accf7b3c1a: HJ-86 system endpoint new lifecycle table (#5484)
|
Committer | Kirk Hardy |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Closes #HJ-86
Description Of Changes
Necessary changes for lifecycle tables. Option to retrieve only DnD relevant systems when paginating/filtering, logic to filter out "hidden" systems, and corresponding migration to add
hidden
bool columnCode Changes
GET
endpoint also allow fordnd_relevant
systems, decided asctl_systems
hidden
, defaults toFalse
GET
endpoint filtering, but provide a param to optionally include themSteps to Confirm
ConnectionConfig
object (viaconnectionconfig.system_id
)ctl_systems.dataset_references
)hidden
column set toTrue
/system
endpoint withGET
to retrieve systems with pagination parameters and withdnd_relevant
set totrue
, and alsofalse
.true
should exclude the system without a connection config or dataset referenceshow_hidden
property on/off. When on, the hidden system should be returned, otherwise notPre-Merge Checklist
CHANGELOG.md
updatedmain
downgrade()
migration is correct and works