This repository has been archived by the owner on Dec 20, 2022. It is now read-only.
Extension for sorting projects/environments #18
Labels
Prio: Medium
Medium Priority
Status: Accepted
Issue or PR is accepted
Type: Feature
Issue or PR is a new feature
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
andIProject
from theICongiguration
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 aStream
, thesorted()
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.The text was updated successfully, but these errors were encountered: