Skip to content

Commit

Permalink
feat: add returning not started dependencies in panel get plugins end…
Browse files Browse the repository at this point in the history
…point
  • Loading branch information
duruer committed Jun 2, 2024
1 parent ff463aa commit 302abc9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class PanelGetPluginsAPI(
"version" to panoPluginDescriptor.version,
"status" to plugin.pluginState,
"dependencies" to panoPluginDescriptor.dependencies,
"notStartedDependencies" to panoPluginDescriptor.dependencies.filter { dependency -> !dependency.isOptional && plugins.any { it.pluginId == dependency.pluginId && it.pluginState != PluginState.STARTED } }
.map { it.pluginId },
"dependents" to plugins.filter { it.pluginState == PluginState.STARTED && it.descriptor.dependencies.any { it.pluginId == plugin.pluginId && !it.isOptional } }
.map { it.pluginId },
"license" to panoPluginDescriptor.license,
Expand Down

0 comments on commit 302abc9

Please sign in to comment.