-
Notifications
You must be signed in to change notification settings - Fork 72
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-5 - Added new RDS Postgres Connector #5380
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
fides Run #10521
Run Properties:
|
Project |
fides
|
Run status |
Passed #10521
|
Run duration | 00m 38s |
Commit |
9c954d8d3d ℹ️: Merge 8e327f413e4d73564c5089c44215543c7c99c09a into ef1b7895f66fa2a82bb65f15e067...
|
Committer | Andres Torres |
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. |
src/fides/api/alembic/migrations/versions/5dafbc1818ae_add_rds_postgres_to_connector_type.py
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5380 +/- ##
==========================================
- Coverage 85.57% 85.48% -0.10%
==========================================
Files 379 382 +3
Lines 23985 24067 +82
Branches 2623 2624 +1
==========================================
+ Hits 20526 20573 +47
- Misses 2907 2942 +35
Partials 552 552 ☔ View full report in Codecov by Sentry. |
clients/admin-ui/src/features/integrations/integration-type-info/rdsPostgresInfo.tsx
Show resolved
Hide resolved
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 work! I left some questions, mainly for my own understanding I think.
clients/admin-ui/src/features/integrations/integration-type-info/rdsPostgresInfo.tsx
Outdated
Show resolved
Hide resolved
src/fides/api/schemas/connection_configuration/connection_secrets_rds_mysql.py
Show resolved
Hide resolved
input_data: Dict[str, List[Any]], | ||
) -> List[Row]: | ||
"""DSR execution not yet supported for RDS Postgres""" | ||
return [] |
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.
I think we should probably raise a NotImplemented
error here right? we don't w ant our code calling these methods and making it seem like it's actually doing things? or am I missing something?
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.
I think that could be a possibility, Adam did the same as I did here on the S3Connector, should we continue the pattern?
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.
honestly I'm not too sure if raising NotImplemented will make it so that DSRs fail when the connector is configured -- let's keep existing behavior for now and maybe discuss this more thoroughly another time
rds_postgres_connection_config.secrets["aws_secret_access_key"] = "bad_key" | ||
rds_postgres_connection_config.save(db) | ||
connector = get_connector(rds_postgres_connection_config) | ||
with pytest.raises(ConnectionException): | ||
connector.test_connection() |
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.
a bit of a nitpick, but maybe we can move this to a separate test ? e.g test_connection_with_bad_key
or something, I find it a bit easier to read / maintain when each test only tests for one thing
…fo/rdsPostgresInfo.tsx Co-authored-by: erosselli <[email protected]>
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.
Approving! I just left a small suggestion
connector = get_connector(rds_postgres_connection_config) | ||
assert connector.test_connection() == ConnectionTestStatus.succeeded | ||
|
||
def test_test_wrong_connection( |
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.
def test_test_wrong_connection( | |
def test_wrong_connection_secrets( |
fides Run #10522
Run Properties:
|
Project |
fides
|
Run status |
Passed #10522
|
Run duration | 00m 38s |
Commit |
7247873f8b: HJ-5 - Added new RDS Postgres Connector (#5380)
|
Committer | Andres Torres |
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. |
Closes #HJ-5
Description Of Changes
Added new RDS Postgres Connector, which allows D&D feature to be implemented.
Code Changes
BaseRDSSchema
,RDSMySQLSchema
now inherits from it.RDSPostgresSchema
.RDSPostgresConnector
.tests/fixtures/rds_postgres_fixtures.py
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.md
main
downgrade()
migration is correct and works