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

Proposal: Utilize Gathered Metadata to Sort Plugin Files #37

Open
gounthar opened this issue Oct 15, 2024 · 0 comments · May be fixed by #38
Open

Proposal: Utilize Gathered Metadata to Sort Plugin Files #37

gounthar opened this issue Oct 15, 2024 · 0 comments · May be fixed by #38

Comments

@gounthar
Copy link
Owner

Current Functionality

The tool currently accepts a list of plugins via command line input or through a file containing one plugin per line.

Enhanced Metadata Collection

We have been accumulating increasingly comprehensive metadata about plugins, including:

  • Health scores
  • Number of installations
  • Other relevant metrics

Proposed Feature

To leverage this rich metadata, we suggest implementing either:

  1. A specific recipe, or
  2. A separate command-line tool

This new functionality would:

  1. Accept a list of plugins as input
  2. Fetch the corresponding metadata for each plugin
  3. Sort the plugin file based on the gathered metadata

Primary Sorting Criterion

The initial implementation would sort plugins by the number of installations, with the most installed plugins appearing first.

Benefits

  • Prioritize updates for widely-used plugins
  • Facilitate more informed decision-making in plugin management
  • Streamline the plugin update process

Next Steps

  1. Assess the feasibility of implementation
  2. Determine whether to integrate as a recipe or develop as a standalone tool
  3. Define additional sorting criteria for future iterations

We welcome feedback and suggestions on this proposal to enhance our plugin management capabilities.

gounthar added a commit that referenced this issue Oct 15, 2024
Fixes #37

Add functionality to sort plugins by the number of installations.

* Add a new command-line option `--sort-by-installations` in `plugin-modernizer-cli/src/main/java/io/jenkins/tools/pluginmodernizer/cli/Main.java` to enable sorting of plugins by the number of installations.
* Implement a method `sortPluginsByInstallations` in `Main.java` to sort the plugins by the number of installations.
* Update the `run` method in `Main.java` to call the `sortPluginsByInstallations` method if the `--sort-by-installations` option is provided.
* Add a test method `testSortPluginsByInstallations` in `plugin-modernizer-cli/src/test/java/io/jenkins/tools/pluginmodernizer/cli/MainTest.java` to verify the sorting functionality.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/gounthar/plugin-modernizer-tool/issues/37?shareId=XXXX-XXXX-XXXX-XXXX).
@gounthar gounthar linked a pull request Oct 15, 2024 that will close this issue
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 a pull request may close this issue.

1 participant