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

feat: support popular_resources() in mysql_proxy #1488

Merged
merged 3 commits into from
Sep 14, 2021

Conversation

xuan616
Copy link
Member

@xuan616 xuan616 commented Sep 13, 2021

Summary of Changes

Context:
https://github.com/amundsen-io/amundsen/blob/main/metadata/metadata_service/api/popular_resources.py#L38
/popular_tables/ endpoint and get_popular_tables() proxy method have been deprecated since version (3.6.0) and will be removed in version 4. Please use /popular_resources/ endpoint instead.

  • add implementation of get_popular_resources() with the support of get_popular_tables and get_popular_dashboards
  • some trivial refactoring: removed unneeded projection in mysql_proxy and redundant packages in rds_client

Tests

tests for get_popular_resources were added/updated

Documentation

CheckList

Make sure you have checked all steps below to ensure a timely review.

  • PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"
  • PR includes a summary of changes.
  • PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
  • In case of new functionality, my PR adds documentation that describes how to use it.
    • All the public functions and the classes in the PR contain docstrings that explain what it does

…oard

Signed-off-by: xuans <xuan_shen@outlook.com>
Signed-off-by: xuans <xuan_shen@outlook.com>
Signed-off-by: xuans <xuan_shen@outlook.com>
@xuan616 xuan616 requested a review from a team as a code owner September 13, 2021 17:10
@boring-cyborg boring-cyborg bot added area:metadata From the metadata folder category:proxy labels Sep 13, 2021
@feng-tao feng-tao self-assigned this Sep 13, 2021
@feng-tao feng-tao added the keep fresh Disables stalebot from closing an issue label Sep 13, 2021
@feng-tao feng-tao merged commit e491c1f into amundsen-io:main Sep 14, 2021
ozandogrultan pushed a commit to deliveryhero/amundsen that referenced this pull request Apr 28, 2022
* support popular_resources endpoint in mysql_proxy for table and dashboard

Signed-off-by: xuans <xuan_shen@outlook.com>

* refactor code

Signed-off-by: xuans <xuan_shen@outlook.com>

* fix mypy issue and some refactoring

Signed-off-by: xuans <xuan_shen@outlook.com>
Signed-off-by: Ozan Dogrultan <ozan.dogrultan@deliveryhero.com>
zacr pushed a commit to SaltIO/amundsen that referenced this pull request May 13, 2022
* support popular_resources endpoint in mysql_proxy for table and dashboard

Signed-off-by: xuans <xuan_shen@outlook.com>

* refactor code

Signed-off-by: xuans <xuan_shen@outlook.com>

* fix mypy issue and some refactoring

Signed-off-by: xuans <xuan_shen@outlook.com>
hansadriaans pushed a commit to DataChefHQ/amundsen that referenced this pull request Jun 30, 2022
* support popular_resources endpoint in mysql_proxy for table and dashboard

Signed-off-by: xuans <xuan_shen@outlook.com>

* refactor code

Signed-off-by: xuans <xuan_shen@outlook.com>

* fix mypy issue and some refactoring

Signed-off-by: xuans <xuan_shen@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metadata From the metadata folder keep fresh Disables stalebot from closing an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants