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

chore: refactor init and extract Query API #93

Merged
merged 5 commits into from
Jun 19, 2024
Merged

Conversation

alespour
Copy link
Contributor

@alespour alespour commented Jun 14, 2024

Proposed Changes

Extracts Query API from the client core in a way similar to Write API. Does not change client public API. The motivation is easier/better maintenance and extending in the future.

Checklist

  • Rebased/mergeable
  • A test has been added if appropriate
  • Tests pass
  • Commit messages are conventional

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 92.50000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 49.75%. Comparing base (a030485) to head (56089aa).

Files Patch % Lines
influxdb_client_3/query/query_api.py 93.93% 2 Missing ⚠️
influxdb_client_3/__init__.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #93      +/-   ##
==========================================
+ Coverage   49.38%   49.75%   +0.37%     
==========================================
  Files          31       32       +1     
  Lines        2019     2034      +15     
==========================================
+ Hits          997     1012      +15     
  Misses       1022     1022              

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

@alespour alespour marked this pull request as ready for review June 14, 2024 13:37
@alespour alespour requested a review from bednar June 14, 2024 13:39
@bednar bednar requested review from karel-rehor and removed request for bednar June 17, 2024 11:36
Copy link
Contributor

@karel-rehor karel-rehor left a comment

Choose a reason for hiding this comment

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

Tests pass locally. Before approving I would like clarification on the __init__ signature of the new QueryAPI class. influxdb3_client_3/query/query_api.py:29. There is a **kwargs parameter, that is not documented and not used. If it is not intended for future use, could it be removed, otherwise could it be added to the code documentation?

Copy link
Contributor

@karel-rehor karel-rehor left a comment

Choose a reason for hiding this comment

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

Looks Good.

@alespour alespour merged commit ede1956 into main Jun 19, 2024
13 checks passed
@alespour alespour deleted the chore/init-refactor branch June 19, 2024 08:03
@bednar bednar added this to the 0.6.0 milestone Jun 19, 2024
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.

3 participants