Skip to content

Conversation

@tsbkw
Copy link
Contributor

@tsbkw tsbkw commented Oct 14, 2022

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

importlib_metadata removed compatibility shims for deprecated entry point interfaces.
see: https://github.com/python/importlib_metadata/blob/main/CHANGES.rst#v500

Filter result of entry_points function by group parameter.
see: https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.entry_points

It seems #5831 fix problem by using old version, but supporting new version should be encouraged.

redash support Nodejs v14.17 and test frontend in circleci with circleci/node:14.17.
This include old python v3.5 and require some dirty hack. 034fcc2
If changing image used in circleci is better, I prefer to handle it in another pull request.

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

percy in CI is failed but it is caused by #5691 and it seems OK.

importlib_metadata removed compatibility shims for deprecated entry
point interfaces.
see: https://github.com/python/importlib_metadata/blob/main/CHANGES.rst#v500

Filter result of entry_points function by group parameter.
see: https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.entry_points
@tsbkw tsbkw force-pushed the support-importlib_meta-v5.0.0 branch 2 times, most recently from e7cdc49 to ed4b893 Compare October 14, 2022 03:58
In circleci frontend-unit-tests, old node image is used and
python 3.5 is used.
Support both old version and latest version by checking
ijmportlib_metadata version
@tsbkw tsbkw force-pushed the support-importlib_meta-v5.0.0 branch from ed4b893 to 1a525b9 Compare October 14, 2022 04:23
@tsbkw tsbkw marked this pull request as ready for review October 14, 2022 05:22
@lucasfcnunes
Copy link
Member

@susodapop ping

@apollonin
Copy link
Contributor

@susodapop could you please merge this one?

@justinclift
Copy link
Member

This one seems like the better approach, rather than #5831.

@susodapop I'm inclined to merge this, if you have no objections?

@gabriel-suela
Copy link

i want this!!

@lucasfcnunes
Copy link
Member

@justinclift one month has passed :(

@susodapop
Copy link
Contributor

I've written elsewhere in the repo issues and PR's that I'm not actively contributing to Redash at the moment. Best to ping @arikfr

@justinclift
Copy link
Member

@susodapop Ahhh, sorry. Was on leave, and missed that.

I'll merge this pro-actively for now, and if it causes issues we can investigate/fix them over time.

Hmm, on that note I saw some Cypress problems recently, but haven't looked into them at all. Something to add to the ToDo list. 😉

@justinclift justinclift merged commit 82361e7 into getredash:master Feb 16, 2023
AkaashK pushed a commit to tharzeez/redash that referenced this pull request Jul 18, 2023
* fix: Support importlib_metadata v5.0.0

importlib_metadata removed compatibility shims for deprecated entry point interfaces.
see: https://github.com/python/importlib_metadata/blob/main/CHANGES.rst#v500

Filter result of entry_points function by group parameter.
see: https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.entry_points

* fix: Enable to run in older python version

In circleci frontend-unit-tests, old node image is used and python 3.5 is used.
Support both old version and latest version by checking ijmportlib_metadata version
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Jan 8, 2025
* fix: Support importlib_metadata v5.0.0

importlib_metadata removed compatibility shims for deprecated entry point interfaces.
see: https://github.com/python/importlib_metadata/blob/main/CHANGES.rst#v500

Filter result of entry_points function by group parameter.
see: https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.entry_points

* fix: Enable to run in older python version

In circleci frontend-unit-tests, old node image is used and python 3.5 is used.
Support both old version and latest version by checking ijmportlib_metadata version
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.

6 participants