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

Aws connectors #358

Merged
merged 29 commits into from
Apr 11, 2024
Merged

Aws connectors #358

merged 29 commits into from
Apr 11, 2024

Conversation

SaiSharathReddy
Copy link
Contributor

feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities


Signed-off-by: Saisharath srsharathreddy@gmail.com

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 97.14286% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 92.89%. Comparing base (db2cc4f) to head (497ba34).
Report is 3 commits behind head on main.

❗ Current head 497ba34 differs from pull request most recent head da865c1. Consider uploading reports for the commit da865c1 to get more accurate results

Files Patch % Lines
numalogic/connectors/rds/_base.py 90.32% 3 Missing ⚠️
numalogic/connectors/rds/_rds.py 92.30% 0 Missing and 1 partial ⚠️
...logic/connectors/utils/aws/boto3_client_manager.py 96.87% 0 Missing and 1 partial ⚠️
...malogic/connectors/utils/aws/sts_client_manager.py 95.83% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #358      +/-   ##
==========================================
+ Coverage   92.67%   92.89%   +0.21%     
==========================================
  Files          83       93      +10     
  Lines        4080     4290     +210     
  Branches      352      372      +20     
==========================================
+ Hits         3781     3985     +204     
- Misses        223      226       +3     
- Partials       76       79       +3     

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

@SaiSharathReddy SaiSharathReddy force-pushed the aws_connectors branch 5 times, most recently from 577c0b1 to bd5edf4 Compare April 5, 2024 20:28
@SaiSharathReddy SaiSharathReddy marked this pull request as ready for review April 5, 2024 20:28
@SaiSharathReddy SaiSharathReddy force-pushed the aws_connectors branch 2 times, most recently from f54d76e to fdeaafc Compare April 8, 2024 21:11
Copy link
Member

@ab93 ab93 left a comment

Choose a reason for hiding this comment

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

left some comments.

numalogic/connectors/rds/_base.py Outdated Show resolved Hide resolved
numalogic/connectors/rds/db/MYSQLFetcher.py Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
tests/connectors/rds/test_base.py Outdated Show resolved Hide resolved
numalogic/connectors/rds/db/__init__.py Outdated Show resolved Hide resolved
numalogic/connectors/utils/aws/exceptions.py Outdated Show resolved Hide resolved
numalogic/connectors/utils/aws/exceptions.py Outdated Show resolved Hide resolved
Copy link
Member

@ab93 ab93 left a comment

Choose a reason for hiding this comment

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

Some comments

pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
numalogic/connectors/rds/_base.py Outdated Show resolved Hide resolved
numalogic/connectors/rds/db/factory.py Outdated Show resolved Hide resolved
numalogic/connectors/utils/aws/exceptions.py Outdated Show resolved Hide resolved
numalogic/connectors/utils/aws/exceptions.py Outdated Show resolved Hide resolved
numalogic/connectors/utils/aws/exceptions.py Outdated Show resolved Hide resolved
numalogic/connectors/rds/db/mysql_fetcher.py Show resolved Hide resolved
tests/connectors/rds/test_base.py Outdated Show resolved Hide resolved
@SaiSharathReddy SaiSharathReddy force-pushed the aws_connectors branch 2 times, most recently from 87260aa to 330a6be Compare April 11, 2024 16:15
ATHENA = "athena"


class DatabaseTypes(BaseEnum):
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
class DatabaseTypes(BaseEnum):
class DatabaseTypes(str, BaseEnum):

if you do this, then you can make a direct comparison

use cases.
"""

database_type = DatabaseTypes.MYSQL.value
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
database_type = DatabaseTypes.MYSQL.value
database_type = DatabaseTypes.MYSQL

- UnRecognizedDatabaseTypeException: If the specified database type is not supported.

"""
if database_type == DatabaseTypes.MYSQL.value:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if database_type == DatabaseTypes.MYSQL.value:
if database_type == DatabaseTypes.MYSQL:

skondakindi added 5 commits April 11, 2024 13:11
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
This reverts commit 20e09f8.

Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
skondakindi and others added 23 commits April 11, 2024 13:11
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>

Signed-off-by: Saisharath Reddy Kondakindi <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
Useful for flattened vectored data

---------

Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Co-authored-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
@ab93 ab93 merged commit be29f02 into numaproj:main Apr 11, 2024
8 of 9 checks passed
SaiSharathReddy added a commit to SaiSharathReddy/numalogic that referenced this pull request Apr 29, 2024
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
SaiSharathReddy added a commit to SaiSharathReddy/numalogic that referenced this pull request Apr 29, 2024
feat: Adding utilities to connect AWS services like RDS

adding AWS Dataservices connectors utilities

----
Signed-off-by: Saisharath <srsharathreddy@gmail.com>
Signed-off-by: skondakindi <saisharathreddy_kondakindi@intuit.com>
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