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

Refactoring for reducing number of queries #188

Merged
merged 9 commits into from
Mar 29, 2023

Conversation

renato2099
Copy link
Collaborator

@renato2099 renato2099 commented Feb 12, 2023

@lewismc this is a small refactoring such that in a second stage we can reduce the number of queries when checking global variables, i..e, instead for 1 SQL query per global attribute we can try to have just a few queries instead.
Another advantage is that we can batch the slack messages related to the metadata processing.

@renato2099 renato2099 force-pushed the renato2099/small_refactoring branch from fd3ef1b to a5d1f11 Compare February 12, 2023 22:48
@renato2099 renato2099 force-pushed the renato2099/small_refactoring branch from 195c2ee to 4fa503c Compare February 12, 2023 22:52
@renato2099 renato2099 requested a review from lewismc February 12, 2023 22:57
@renato2099
Copy link
Collaborator Author

I will add unit tests for the new two methods once we agree on the current refactoring.
I am not sure though if the indentation change shows up as new code being added ? do you know @lewismc ?

@lewismc
Copy link
Member

lewismc commented Feb 12, 2023

Excellent @renato2099 lets go through this tomorrow. I think this can be merged in after the PR for #181

@renato2099 renato2099 self-assigned this Feb 13, 2023
@lewismc
Copy link
Member

lewismc commented Feb 14, 2023

I refactored the slack calls. Let's test out on Thursday.

@renato2099 renato2099 force-pushed the renato2099/small_refactoring branch 3 times, most recently from cf22b7d to 60ce181 Compare February 19, 2023 20:36
@renato2099 renato2099 force-pushed the renato2099/small_refactoring branch from 60ce181 to 9bace4e Compare February 19, 2023 20:37
@renato2099 renato2099 force-pushed the renato2099/small_refactoring branch 3 times, most recently from 2f06368 to 5479eaf Compare March 5, 2023 00:01
@renato2099 renato2099 force-pushed the renato2099/small_refactoring branch from 5479eaf to 82dd848 Compare March 5, 2023 00:05
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

76.5% 76.5% Coverage
0.0% 0.0% Duplication

@renato2099
Copy link
Collaborator Author

Hey @lewismc I added a few unit tests I think we should merge this

@lewismc lewismc added this to the 0.9.0 milestone Mar 18, 2023
Copy link
Member

@lewismc lewismc left a comment

Choose a reason for hiding this comment

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

+1 I have tested locally and all checks out. Tox tests pass for Python 3.9 and 3.10 locally and also the CI testing passes successfully. I will open a follow on ticket with something i noticed.

@lewismc lewismc merged commit 1727cb1 into main Mar 29, 2023
@lewismc lewismc added the enhancement New feature or request label Mar 29, 2023
@lewismc lewismc added tests Unit, Systems Intgration or User Acceptance Testing dependencies Dependency Management issues labels Mar 29, 2023
@lewismc lewismc deleted the renato2099/small_refactoring branch March 29, 2023 02:48
@lewismc lewismc restored the renato2099/small_refactoring branch April 11, 2023 23:20
lewismc pushed a commit that referenced this pull request Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Dependency Management issues enhancement New feature or request tests Unit, Systems Intgration or User Acceptance Testing
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants