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

feat(marketplace): Add Plugin installation status in marketplace plugin #250

Conversation

karthikjeeyar
Copy link
Contributor

@karthikjeeyar karthikjeeyar commented Jan 7, 2025

Fixes:

https://issues.redhat.com/browse/RHIDP-5327
https://issues.redhat.com/browse/RHIDP-5328

Description:

Add new processors to determine the install status of a plugin.

  • StaticPluginInstallStatusProcessor : This reads the package.json from packages/app and packages/backend workspaces and node_modules to identify if a plugin is installed or not.

  • DynamicPluginInstallStatusProcessor: This relies on the dynamic-plugin feature and /api/scalprum call to identify the installed plugin in the RHDH.

  • Released all the maketplace frontend, backend, common, and catalog-backend-module-marketplace plugins 0.0.1

Screenshots:

Not Installed Installed
InstalledPlugin NotInstalledPlugin

Unit tests:

image

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Jan 7, 2025

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-catalog-backend-module-marketplace workspaces/marketplace/plugins/catalog-backend-module-marketplace patch v0.0.0
@red-hat-developer-hub/backstage-plugin-marketplace-backend workspaces/marketplace/plugins/marketplace-backend patch v0.0.0
@red-hat-developer-hub/backstage-plugin-marketplace-common workspaces/marketplace/plugins/marketplace-common patch v0.0.0
@red-hat-developer-hub/backstage-plugin-marketplace workspaces/marketplace/plugins/marketplace patch v0.0.0

@karthikjeeyar karthikjeeyar force-pushed the plugin-installation-status branch from 14bb02e to ed894c6 Compare January 7, 2025 10:32
@karthikjeeyar karthikjeeyar force-pushed the plugin-installation-status branch from ed894c6 to ab7d3dc Compare January 7, 2025 10:49
Copy link
Member

@christoph-jerolimov christoph-jerolimov left a comment

Choose a reason for hiding this comment

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

Awesome progress! Thanks a lot @karthikjeeyar.

I found anyway some small code recommendations: 😏

@karthikjeeyar karthikjeeyar force-pushed the plugin-installation-status branch from 74cf4c1 to 154c69b Compare January 7, 2025 13:26
Copy link
Member

@christoph-jerolimov christoph-jerolimov left a comment

Choose a reason for hiding this comment

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

Great work! Thanks!

@christoph-jerolimov christoph-jerolimov merged commit 56f9484 into redhat-developer:main Jan 8, 2025
8 checks passed
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.

2 participants