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

Plugin Catalog prerequisites #1907

Merged
merged 7 commits into from
Jul 3, 2024
Merged

Plugin Catalog prerequisites #1907

merged 7 commits into from
Jul 3, 2024

Conversation

yolossn
Copy link
Contributor

@yolossn yolossn commented Apr 12, 2024

A new plugin-management.js file has been introduced, responsible for handling plugin installation, listing, upgrades, and deletions. Additionally, the runCommand function has been enhanced to support electron-node command, enabling seamless execution of Node commands within the Electron environment.

For #1654

@yolossn yolossn requested review from illume and joaquimrocha April 12, 2024 13:11
@illume
Copy link
Collaborator

illume commented Apr 12, 2024

@yolossn I guess you saw these app CI failures? https://github.com/headlamp-k8s/headlamp/actions/runs/8662622201/job/23754940075?pr=1907#step:5:237

They look like real failures. About some module missing.

Copy link
Collaborator

@illume illume left a comment

Choose a reason for hiding this comment

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

Nice one, thank you.

There's some error in the app CI job about a missing module.

I left a few notes...

Additionally,

  • please add some tests? (maybe they could go in with the existing tests... but perhaps because they run quickly, and the existing tests are a bit clumbsy because they try to avoid a lot of extra installations, it would be better to have a separate set of tests for some of these commands using jest?)
  • please update the README with the new commands next to the existing ones? Maybe add a section on how that binary is different.

app/.gitignore Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
app/electron/main.ts Outdated Show resolved Hide resolved
@yolossn yolossn force-pushed the plugin_store branch 5 times, most recently from e8eec01 to 9d72132 Compare April 15, 2024 20:09
plugins/headlamp-plugin/webpack.config.js Outdated Show resolved Hide resolved
frontend/src/components/App/runCommand.ts Outdated Show resolved Hide resolved
app/electron/main.ts Outdated Show resolved Hide resolved
frontend/src/components/App/runCommand.ts Outdated Show resolved Hide resolved
@yolossn yolossn force-pushed the plugin_store branch 6 times, most recently from d676012 to 48518cf Compare May 3, 2024 05:42
@illume illume marked this pull request as draft May 13, 2024 09:00
@yolossn yolossn force-pushed the plugin_store branch 3 times, most recently from 584b09d to d536d41 Compare May 13, 2024 20:13
@yolossn yolossn force-pushed the plugin_store branch 2 times, most recently from d32ed7d to c2f8f0b Compare July 1, 2024 19:45
yolossn added 6 commits July 2, 2024 01:18
this patch adds PluginManager class
that has functions to install,
update,uninstall and list plugins

Signed-off-by: yolossn <sannagaraj@microsoft.com>
Signed-off-by: yolossn <sannagaraj@microsoft.com>
this patch adds PluginManagerEventListeners
class that sets up the event handlers
for the plugin manager events.

Signed-off-by: yolossn <sannagaraj@microsoft.com>
this commit adds PluginManager class to handle
plugin installation,update,uninstallation and
listing, the class provides static methods for
each operation and communicates to the electron
app using the desktop API. the class also has
a cancel function to cancel a running installation
or update process.

Signed-off-by: yolossn <sannagaraj@microsoft.com>
This patch adds the plugin management commands
install,uninstall,update and list to the
headlamp-plugin cli.

Signed-off-by: yolossn <sannagaraj@microsoft.com>
this patch adds removeListener to desktopApi
for removing the listener.

Signed-off-by: yolossn <sannagaraj@microsoft.com>
@yolossn yolossn force-pushed the plugin_store branch 9 times, most recently from 71c03be to ae89224 Compare July 1, 2024 21:06
This patch adds integration test for plugin
management commands.

Signed-off-by: yolossn <sannagaraj@microsoft.com>
@illume illume dismissed joaquimrocha’s stale review July 3, 2024 04:49

These changes were done.

Copy link
Collaborator

@illume illume left a comment

Choose a reason for hiding this comment

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

👍

Thanks.

@illume illume merged commit 7529b1b into main Jul 3, 2024
19 checks passed
@illume illume deleted the plugin_store branch July 3, 2024 04:54
@illume illume added enhancement New feature or request plugins app labels Jul 10, 2024
@illume
Copy link
Collaborator

illume commented Jul 10, 2024

(added issue to PR description)

@illume illume changed the title Plugin Store prerequisites Plugin Catalog prerequisites Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app enhancement New feature or request plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants