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

Fix translator usage, remove @jupyterlab/rendermime-interfaces dependency #483

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

andrii-i
Copy link
Collaborator

@andrii-i andrii-i commented Feb 12, 2024

PR #480 introduced incorrect usage of translator: IRenderMime.TranslationBundle is passed directly to verifyServerExtension function. Correct pattern is passing ITranslator to any component and then instantiating IRenderMime.TranslationBundle via translator.load('jupyterlab'); as it's done everywhere in the codebase, for example here.

As a result of this change, translator inside verifyServerExtension function works correctly and explicit dependency on @jupyterlab/rendermime-interfaces is not needed (this will also simplify PR #481 that backports #480).

@andrii-i andrii-i merged commit 01fc2dc into jupyter-server:main Feb 13, 2024
7 checks passed
@andrii-i andrii-i deleted the fix_translate branch February 13, 2024 01:27
andrii-i added a commit to andrii-i/jupyter-scheduler that referenced this pull request Feb 13, 2024
andrii-i added a commit to andrii-i/jupyter-scheduler that referenced this pull request Feb 13, 2024
andrii-i added a commit that referenced this pull request Feb 14, 2024
…p non-blocking (#480) (#481)

* Make server extension verification call during extension startup non-blocking (#480)

* remove async call, make call sync, refactor into a separate function

* don't use abbreviations in the verifyServerExtension function or type naming

* Update src/index.tsx

Co-authored-by: david qiu <[email protected]>

* remove unused type

* add @jupyterlab/rendermime-interfaces as a dependency

* Remove async from activatePlugin function declaration (makes it not async)

* set @jupyterlab/rendermime-interfaces version to ^3.8.0 to support all JLab >= 4

---------

Co-authored-by: david qiu <[email protected]>

* Fix translator usage, remove @jupyterlab/rendermime-interfaces dependency (#483)

* update snapshots

* use lowercase "es" is "es2017" as is convention in Project Jupyter

* fix 1.x dependencies

* fix package manifest to be compatible with JL3

* Make ErrorBoundary return JSX.Element to avoid type conflicts

---------

Co-authored-by: david qiu <[email protected]>
andrii-i added a commit to andrii-i/jupyter-scheduler that referenced this pull request Feb 15, 2024
…p non-blocking (jupyter-server#480) (jupyter-server#481)

* Make server extension verification call during extension startup non-blocking (jupyter-server#480)

* remove async call, make call sync, refactor into a separate function

* don't use abbreviations in the verifyServerExtension function or type naming

* Update src/index.tsx

Co-authored-by: david qiu <[email protected]>

* remove unused type

* add @jupyterlab/rendermime-interfaces as a dependency

* Remove async from activatePlugin function declaration (makes it not async)

* set @jupyterlab/rendermime-interfaces version to ^3.8.0 to support all JLab >= 4

---------

Co-authored-by: david qiu <[email protected]>

* Fix translator usage, remove @jupyterlab/rendermime-interfaces dependency (jupyter-server#483)

* update snapshots

* use lowercase "es" is "es2017" as is convention in Project Jupyter

* fix 1.x dependencies

* fix package manifest to be compatible with JL3

* Make ErrorBoundary return JSX.Element to avoid type conflicts

---------

Co-authored-by: david qiu <[email protected]>
andrii-i added a commit to andrii-i/jupyter-scheduler that referenced this pull request Feb 16, 2024
…p non-blocking (jupyter-server#480) (jupyter-server#481)

* Make server extension verification call during extension startup non-blocking (jupyter-server#480)

* remove async call, make call sync, refactor into a separate function

* don't use abbreviations in the verifyServerExtension function or type naming

* Update src/index.tsx

Co-authored-by: david qiu <[email protected]>

* remove unused type

* add @jupyterlab/rendermime-interfaces as a dependency

* Remove async from activatePlugin function declaration (makes it not async)

* set @jupyterlab/rendermime-interfaces version to ^3.8.0 to support all JLab >= 4

---------

Co-authored-by: david qiu <[email protected]>

* Fix translator usage, remove @jupyterlab/rendermime-interfaces dependency (jupyter-server#483)

* update snapshots

* use lowercase "es" is "es2017" as is convention in Project Jupyter

* fix 1.x dependencies

* fix package manifest to be compatible with JL3

* Make ErrorBoundary return JSX.Element to avoid type conflicts

---------

Co-authored-by: david qiu <[email protected]>
andrii-i added a commit that referenced this pull request Feb 16, 2024
…tup non-blocking (#480) (#486)

* [1.x] Make server extension verification call during extension startup non-blocking (#480) (#481)

* Make server extension verification call during extension startup non-blocking (#480)

* remove async call, make call sync, refactor into a separate function

* don't use abbreviations in the verifyServerExtension function or type naming

* Update src/index.tsx

Co-authored-by: david qiu <[email protected]>

* remove unused type

* add @jupyterlab/rendermime-interfaces as a dependency

* Remove async from activatePlugin function declaration (makes it not async)

* set @jupyterlab/rendermime-interfaces version to ^3.8.0 to support all JLab >= 4

---------

Co-authored-by: david qiu <[email protected]>

* Fix translator usage, remove @jupyterlab/rendermime-interfaces dependency (#483)

* update snapshots

* use lowercase "es" is "es2017" as is convention in Project Jupyter

* fix 1.x dependencies

* fix package manifest to be compatible with JL3

* Make ErrorBoundary return JSX.Element to avoid type conflicts

---------

Co-authored-by: david qiu <[email protected]>

* add pytest-cov dependency to pyproject.toml

* update pre-commit

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: david qiu <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants