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 bundled extensions not being loaded #7359

Merged
merged 3 commits into from
Mar 15, 2023
Merged

Conversation

Nokel81
Copy link
Collaborator

@Nokel81 Nokel81 commented Mar 15, 2023

  • Also show that this fixes it by added an example bundled extension to 'open-lens'

resolves #7156

PROBLEM: bundled extensions are not registered either on main or on renderer

SOLUTION: As proposed by @jansav, refactor the injection token into its own package and make it a peerDependency

- Also show that this fixes it by added an example bundled
  extension to 'open-lens'

Signed-off-by: Sebastian Malton <sebastian@malton.name>
@Nokel81 Nokel81 added bug Something isn't working area/extension Something to related to the extension api blocker labels Mar 15, 2023
@Nokel81 Nokel81 added this to the 6.5.0 milestone Mar 15, 2023
@Nokel81 Nokel81 requested a review from a team as a code owner March 15, 2023 14:13
@Nokel81 Nokel81 requested review from ixrock and jim-docker and removed request for a team March 15, 2023 14:13
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would appreciate own commit for a "legacy-extension-example", maybe even a PR :)

*/
import path from "path";

const webpack = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not ok to show duplicated webpack configuration in an example package :/

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be fixed in the future

Signed-off-by: Sebastian Malton <sebastian@malton.name>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not completely sure, but this new package doesn't house any Features, and therefore shouldn't reside under technical-features.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be said that a lot of what you just said hasn't been publicly discussed anywhere. 😞

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also haven't had any discussions about why we are nesting the packages.

@Iku-turso Iku-turso merged commit 2c3c88b into master Mar 15, 2023
@Iku-turso Iku-turso deleted the fix-bundled-extensions branch March 15, 2023 16:16
@Nokel81 Nokel81 mentioned this pull request Mar 15, 2023
gabriel-mirantis pushed a commit that referenced this pull request Mar 21, 2023
* Fix bundled extensions not being loaded

- Also show that this fixes it by added an example bundled
  extension to 'open-lens'

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix build

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add explanatory comment for inline require

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Gabriel <gaccettola@mirantis.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/extension Something to related to the extension api blocker bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants