-
Notifications
You must be signed in to change notification settings - Fork 88
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
feat: Implement configurable minimum number of readers for popular tables #146
feat: Implement configurable minimum number of readers for popular tables #146
Conversation
Codecov Report
@@ Coverage Diff @@
## master #146 +/- ##
==========================================
+ Coverage 72.01% 72.06% +0.04%
==========================================
Files 26 26
Lines 1197 1199 +2
Branches 121 121
==========================================
+ Hits 862 864 +2
Misses 308 308
Partials 27 27
Continue to review full report at Codecov.
|
…ADER_COUNT as config variable
Thanks for picking it up @jacobhjkim LGTM 👍 Need Tao or someone else from Lyft to merge it. |
I am adding FrequentUsers functionality for AtlasProxy (PR 147) now and was thinking on something similar, will wait with my merge until this one is in 🤞 |
sorry for the delay in review, will take a look! |
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.
lgtm except one 1 nit
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.
lgtm, thanks @jacobhjkim !
@@ -64,6 +64,9 @@ class Config: | |||
# On User detail method, these keys will be added into amundsen_common.models.user.User.other_key_values | |||
USER_OTHER_KEYS = {'mode_user_id'} # type: Set[str] | |||
|
|||
# Number of minimum reader count to qualify for popular table | |||
POPULAR_TABLE_MINIMUM_READER_COUNT = 10 # type: int |
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.
POPULAR_TABLE_MINIMUM_READER_COUNT = os.environ.get('POPULAR_TABLE_MINIMUM_READER_COUNT', 10) # type: int
It should have been this. 🙃
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.
not sure, but we could override it through different config right during the actual deployment? For example, at Lyft we override the config with production configuration with our internal deployment code.
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.
Right, production deployment should have some other config class. False alarm
* commit '369685cc715e95af82dfa4dc14d0c58af8bb1ac9': chore: replace references to Lyft -> Amundsen (amundsen-io#174) feat: Data Owner Implementation of Atlas Proxy (amundsen-io#156) chore: fix docker push action (amundsen-io#172) chore: add docker publish action and remove travis (amundsen-io#171) chore: add pypi publish action (amundsen-io#170) fix: removing OidcConfig file and making statsd configurable through envrionment variable (amundsen-io#157) ci: add dependabot config (amundsen-io#169) Update repo name in travis file (amundsen-io#163) feat: Populate is_view property in AtlasProxy (amundsen-io#155) fix: Overlapping table name issue in Readers [AtlasProxy] feat: Add resource_reports field in Table API ( Atlas proxy) (amundsen-io#149) chore: apply license headers to all the source files (amundsen-io#153) feat: Add programmatic descriptions parser for [AtlasProxy] (amundsen-io#152) feat: Add Frequent Users feature in [AtlasProxy] (amundsen-io#147) feat: Implement configurable minimum number of readers for popular tables (amundsen-io#146) chore: update the email for the project (amundsen-io#148) # Conflicts: # README.md # docs/configurations.md # docs/structure.md # metadata_service/config.py # metadata_service/oidc_config.py # metadata_service/proxy/neo4j_proxy.py # requirements.txt # setup.py
Summary of Changes
Related issue: #534
This PR adds
POPULAR_TABLE_MINIMUM_READER_COUNT
to the config file andnum_readers
variable for the neo4j popular table query. This allows the minimum number of readers for popular tables to be configurable.Tests
N/A
Documentation
No documentation changes at this time
CheckList
Make sure you have checked all steps below to ensure a timely review.
make test