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

Support resolvePackagePath for dynamic backend plugins. #1071

Merged

Conversation

davidfestal
Copy link
Member

Description

A big number of upstream backstage backend plugins usie the resolvePackagePath function provided by the backstage-common package.
This function doesn't work with the plugins are converted to dynamic and loaded dynamically.

This PR customizes the defaultCommonJSLoader used by the upstream DynamicPluginManager when loading dynamic plugins, so that calls to the resolvePackagePath() function in order to retrieve the plugin package folder can now succeed.

Which issue(s) does this PR fix

No issue for now.

PR acceptance criteria

Please make sure that the following steps are complete:

  • GitHub Actions are completed and successful
  • Unit Tests are updated and passing
  • E2E Tests are updated and passing
  • Documentation is updated if necessary (requirement for new features)
  • Add a screenshot if the change is UX/UI related

How to test changes / Special notes to the reviewer

@davidfestal davidfestal requested a review from a team as a code owner March 11, 2024 17:29
@davidfestal davidfestal force-pushed the fix-resolve-package-path-support branch from db682af to 5e40d8e Compare March 11, 2024 17:31
Copy link
Contributor

The image is available at: quay.io/janus-idp/backstage-showcase:pr-1071!

Copy link

janus-idp bot commented Mar 11, 2024

backstage-showcase Tests on commit bbe8ba0 finished with errors.
View test log
View Playwright report
Download Playwright report

@davidfestal davidfestal force-pushed the fix-resolve-package-path-support branch from 5e40d8e to 082eb01 Compare March 11, 2024 20:14
Copy link
Contributor

The image is available at: quay.io/janus-idp/backstage-showcase:pr-1071!

@gashcrumb
Copy link
Member

Anything to do about the sonarcloud issues? The code complexity one might be worth a 2nd look.

@davidfestal davidfestal force-pushed the fix-resolve-package-path-support branch from 082eb01 to 00e2225 Compare March 12, 2024 14:28
Copy link
Contributor

The image is available at: quay.io/janus-idp/backstage-showcase:pr-1071!

@davidfestal davidfestal force-pushed the fix-resolve-package-path-support branch from 00e2225 to e99fb85 Compare March 12, 2024 16:25
Copy link
Contributor

The image is available at: quay.io/janus-idp/backstage-showcase:pr-1071!

Signed-off-by: David Festal <dfestal@redhat.com>
@davidfestal davidfestal force-pushed the fix-resolve-package-path-support branch from e99fb85 to 83cbd56 Compare March 12, 2024 16:58
Copy link

sonarcloud bot commented Mar 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
1 Accepted issue

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

The image is available at: quay.io/janus-idp/backstage-showcase:pr-1071!

@schultzp2020
Copy link
Member

/cherry-pick 1.1.x

@openshift-cherrypick-robot

@schultzp2020: once the present PR merges, I will cherry-pick it on top of 1.1.x in a new PR and assign it to you.

In response to this:

/cherry-pick 1.1.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Member

@schultzp2020 schultzp2020 left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

Copy link

openshift-ci bot commented Mar 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gashcrumb, schultzp2020

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@josephca josephca merged commit 3522f3d into janus-idp:main Mar 12, 2024
5 of 7 checks passed
@openshift-cherrypick-robot

@schultzp2020: new pull request created: #1076

In response to this:

/cherry-pick 1.1.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

ciiay added a commit to ciiay/backstage-showcase that referenced this pull request Mar 22, 2024
Signed-off-by: Yi Cai <yicai@redhat.com>

added card styles to match pf5

Signed-off-by: Yi Cai <yicai@redhat.com>

E2E: upload Playwright report and add view report link to PR (janus-idp#1068)

* chore(ci): upload Playwright report and add view report link to PR

* Update functions.sh

chore(ci): fix link to Playwright report in GitHub comment

chore(deps): bump jose (janus-idp#1058)

Bumps [jose](https://github.com/panva/jose) from 4.15.4 to 4.15.5.
- [Release notes](https://github.com/panva/jose/releases)
- [Changelog](https://github.com/panva/jose/blob/v4.15.5/CHANGELOG.md)
- [Commits](panva/jose@v4.15.4...v4.15.5)

---
updated-dependencies:
- dependency-name: jose
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): bump jose from 4.15.4 to 4.15.5 (janus-idp#1059)

Bumps [jose](https://github.com/panva/jose) from 4.15.4 to 4.15.5.
- [Release notes](https://github.com/panva/jose/releases)
- [Changelog](https://github.com/panva/jose/blob/v4.15.5/CHANGELOG.md)
- [Commits](panva/jose@v4.15.4...v4.15.5)

---
updated-dependencies:
- dependency-name: jose
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Support `resolvePackagePath` for dynamic backend plugins. (janus-idp#1071)

Signed-off-by: David Festal <dfestal@redhat.com>

Fix topology height

Signed-off-by: Yi Cai <yicai@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Impossible to dynamically load a number of upstream backend plugins
5 participants