forked from elyra-ai/elyra
-
Notifications
You must be signed in to change notification settings - Fork 7
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
[WIP] JupyterLab 4.x upgrade #25
Merged
paulovmr
merged 77 commits into
opendatahub-io:jupyterlab4
from
paulovmr:jupyterlab4-upgrade
Sep 10, 2024
Merged
[WIP] JupyterLab 4.x upgrade #25
paulovmr
merged 77 commits into
opendatahub-io:jupyterlab4
from
paulovmr:jupyterlab4-upgrade
Sep 10, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paulovmr
force-pushed
the
jupyterlab4-upgrade
branch
from
August 21, 2024 20:35
59054d5
to
6ff5496
Compare
Signed-off-by: Luciano Resende <[email protected]>
Signed-off-by: Luciano Resende <[email protected]>
Signed-off-by: Luciano Resende <[email protected]>
Signed-off-by: Luciano Resende <[email protected]>
Signed-off-by: Luciano Resende <[email protected]>
Updated LauncherModel to accommodate changes in @lumino/algorithm. Resolved build errors related to missing properties and import issues.
Resolved type errors related to missing children property in Dropzone.tsx, ExpandableComponent.tsx, and ExpandableErrorDialog.tsx. Fixed import issues in FormEditor.tsx by addressing missing members and correcting import statements. Improved TypeScript type inference and resolved implicit 'any' types in parameters and binding elements in JSONComponent.tsx.
TypeScript Error: Incompatibility Component Structure: Clarification Prop Types: Consistency and Definition
Unable to find the documentation regarding changes that made the types unavailable, and defined new types base on available specifications in 3.6x. `Property 'IConfig' does not exist on type 'typeof CodeEditor'.ts(2339)` `Namespace '.../node_modules/@jupyterlab/codeeditor/lib/editor".CodeEditor' has no exported member 'IConfig'.ts(2694)`
Note: to compile python editor, build script editor first
Updated CodeBlock to uses updated version of CodeEditor. Changed the implementation base on the source code for IOptions: https://github.com/jupyterlab/jupyterlab/blob/d274f84/packages/codeeditor/src/editor.ts#L553
fixed type errors for TagsField
Changed IFormComponentRegistry in metadata and meta-data common to use IFormRendererRegistry for 4.x.
Updated Scala editor to be compatible with 4.x. The code used to use IConfig which is no longer in use. But config options is now currently under IOptions. But we need to see if It displays properly on frontend. But the code currently builds.
The fields prop was removed from FieldTemplateProps in a recent update. Resolved the integration by passing a templates object to the fields prop. Also added validator, which is now a required prop for 5.x Form. But still need to work on resolving precise type configurations. src: https://rjsf-team.github.io/react-jsonschema-form/docs/migration-guides/v5.x%20upgrade%20guide#rjsfcore-breaking-changes
Because involved react component and does not directly conform to the IFormRenderer interface use assertion to satisfy the type requirements of the addRenderer method. Also improve types definition for imported component in ui-components. Now able to build metadata.
I have resolved most of the errors currently in the pipeline editor however I got stuck attempting to fix the error: error TS2322: Type '{ children: Element[]; theme: any; }' is not assignable to type 'IntrinsicAttributes & { theme: DeepPartial<Theme>; }'. Property 'children' does not exist on type 'IntrinsicAttributes & { theme: DeepPartial<Theme>; }'.
Updated CodeSnippetDisplay class to extend MetadataDisplay with the correct props type Replace usage of deprecated ContentFactory, but still exist issue when missing documentation.
tried to fix the first code cell creation error, but still have issue when inserting cell to notebook widget
Just figured out how to properly add codecell.
Fixed some method calling base on documentation.
- .value.text does not work for updating the content of Cell, Replaced with .setSource. - Refresh no longer exists, replaced with redo. Can't find any documentation about this change. - fixed creation of preview editor
Resolved final error in pipeline editor. Now it's able to build.
This reverts commit ac10f57.
Merging this to the opendatahub-io/jupyterlab4 branch to continue the work there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR is based on the Elyra community effort (elyra-ai#3201 and lresende#1) to migrate Elyra extensions to support JupyterLab 4.x, with the addition of more changes, such as:
How was this pull request tested?
This is a work in progress.
Developer's Certificate of Origin 1.1