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

Rename .md5 .query_id #1289

Merged
merged 6 commits into from
Sep 19, 2019
Merged

Rename .md5 .query_id #1289

merged 6 commits into from
Sep 19, 2019

Conversation

greenape
Copy link
Member

Closes #1288

I have:

  • Formatted any Python files with black
  • Brought the branch up to date with master
  • Added any relevant Github labels
  • Added tests for any new additions
  • Added or updated any relevant documentation
  • Added an Architectural Decision Record (ADR), if appropriate
  • Added an MPLv2 License Header if appropriate
  • Updated the Changelog

Description

Renames query's .md5 attribute to .query_id.

@greenape greenape added FlowMachine Issues related to FlowMachine refactoring labels Sep 19, 2019
@@ -216,7 +218,7 @@ def touch_cache(connection: "Connection", query_id: str) -> float:
----------
connection : Connection
query_id : str
md5 id of the query to touch
query_id id of the query to touch
Copy link
Contributor

Choose a reason for hiding this comment

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

The duplicate id should be removed in this docstring (and the others below).

@@ -602,7 +604,7 @@ def get_compute_time(connection: "Connection", query_id: str) -> float:
----------
connection : "Connection"
query_id : str
md5 identifier of the query
query_id identifier of the query
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe similar here? "query_id identifier" sounds less of a duplication than "query_id id", but maybe just use "identifier"?

@@ -90,7 +90,7 @@ class QueryStateMachine:
redis_client : StrictRedis
Client for redis
query_id : str
md5 query identifier
query_id query identifier
Copy link
Contributor

Choose a reason for hiding this comment

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

See above

@codecov
Copy link

codecov bot commented Sep 19, 2019

Codecov Report

Merging #1289 into master will decrease coverage by 0.04%.
The diff coverage is 88.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1289      +/-   ##
==========================================
- Coverage   94.12%   94.07%   -0.05%     
==========================================
  Files         155      155              
  Lines        7484     7483       -1     
  Branches      697      697              
==========================================
- Hits         7044     7040       -4     
- Misses        333      334       +1     
- Partials      107      109       +2
Flag Coverage Δ
#flowapi_unit_tests 82.55% <ø> (ø) ⬆️
#flowauth_unit_tests 93.65% <ø> (ø) ⬆️
#flowclient_unit_tests 78.78% <ø> (ø) ⬆️
#flowetl_unit_tests 96.63% <ø> (ø) ⬆️
#flowkit_jwt_generator_unit_tests 100% <ø> (ø) ⬆️
#flowmachine_unit_tests 90.69% <87.09%> (-0.01%) ⬇️
#integration_tests 66.95% <52.94%> (-0.09%) ⬇️
Impacted Files Coverage Δ
flowmachine/flowmachine/core/query_state.py 100% <ø> (ø) ⬆️
flowmachine/flowmachine/utils.py 46.4% <0%> (ø) ⬆️
flowmachine/flowmachine/core/table.py 90.8% <100%> (ø) ⬆️
flowmachine/flowmachine/core/spatial_unit.py 96.98% <100%> (ø) ⬆️
flowmachine/flowmachine/core/cache.py 94.73% <100%> (-1.58%) ⬇️
...owmachine/flowmachine/core/subscriber_subsetter.py 88.73% <100%> (ø) ⬆️
flowmachine/flowmachine/core/model_result.py 81.08% <100%> (ø) ⬆️
...ne/core/server/query_schemas/base_exposed_query.py 93.75% <100%> (ø) ⬆️
flowmachine/flowmachine/core/dummy_query.py 90% <100%> (ø) ⬆️
...owmachine/features/utilities/feature_collection.py 100% <100%> (ø) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdb7689...14b9161. Read the comment docs.

@cypress
Copy link

cypress bot commented Sep 19, 2019



Test summary

54 0 0 0


Run details

Project FlowAuth
Status Passed
Commit 14b9161
Started Sep 19, 2019 11:23 AM
Ended Sep 19, 2019 11:26 AM
Duration 02:32 💡
OS Linux Debian - 8.11
Browser Electron 61

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@greenape greenape added the ready-to-merge Label indicating a PR is OK to automerge label Sep 19, 2019
@mergify mergify bot merged commit b573fd0 into master Sep 19, 2019
@mergify mergify bot deleted the md5-to-query_id branch September 19, 2019 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FlowMachine Issues related to FlowMachine ready-to-merge Label indicating a PR is OK to automerge refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename md5 attribute query_id
2 participants