Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Extension for sorting projects/environments #18

Closed
d-gs opened this issue Sep 13, 2021 · 0 comments · Fixed by #19
Closed

Extension for sorting projects/environments #18

d-gs opened this issue Sep 13, 2021 · 0 comments · Fixed by #19
Labels
Prio: Medium Medium Priority Status: Accepted Issue or PR is accepted Type: Feature Issue or PR is a new feature

Comments

@d-gs
Copy link
Member

d-gs commented Sep 13, 2021

Feature request

Expected Behavior - What were you expecting to happen?

A plug-in should be able to provide a extension to sort the returned lists of IEnvironment and IProject from the ICongiguration getters.

Current Behavior - What happens?

Currently the list of environments is sorted with Comparator.reverseOrder(), which is taking the comparison of the environment ID to sort them. For the projects, when loaded with a Stream, the sorted() method it is used (also using the project ID).

Possible Solution

Introduce a IGemService to perform the sorting of those objects (and maybe other in the future if required for the display of them), that should be provided only once to the gem product (e.g., on its own plug-in). By default, if not provided a default sorter should be there with the current behavior.

@d-gs d-gs added Prio: Medium Medium Priority Status: Accepted Issue or PR is accepted Type: Feature Issue or PR is a new feature labels Sep 13, 2021
@d-gs d-gs closed this as completed in #19 Sep 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Prio: Medium Medium Priority Status: Accepted Issue or PR is accepted Type: Feature Issue or PR is a new feature
Development

Successfully merging a pull request may close this issue.

1 participant