Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3175

RankingComparator results in wrong results

    XMLWordPrintableJSON

Details

    Description

      The RankingComparator class is used for two cases: ordering ConfigurationPlugin services as per the service.cmRanking property and ordering services as per the service.ranking property. These orderings are slightly different for which the class does not provide properly:

      • service.cmRanking sorts ascending and does not define an order amongst services with the same cmRanking value
      • service.ranking sorts in descending property value order and defines to fall back to service.id ordering (ascending) in case of equal service.ranking values.

      The RankingComparator should be fixed (and simplified) to cope with these two mechanisms.

      This should also be tested using unit tests.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: