]> source.dussan.org Git - sonarqube.git/commit
SONAR-9217 if two suggestions have the same relevancy, prefer A over Z
authorDaniel Schwarz <bartfastiel@users.noreply.github.com>
Thu, 11 May 2017 16:37:02 +0000 (18:37 +0200)
committerGitHub <noreply@github.com>
Thu, 11 May 2017 16:37:02 +0000 (18:37 +0200)
commit36af9beabb4407a79dc2924be905ea79908ce704
treec23cc3cc25ec93a7eda58e62134753ba2bf4ffee
parent35cace9be8a1dc08046f4c3fa50885bc6d4b3051
SONAR-9217 if two suggestions have the same relevancy, prefer A over Z

api/components/suggestions used to only use "relevance" (score) in sorting results. If two suggestions have exactly the same relevance (this is a rare case), then we will now also take alphabetical order into account.
server/sonar-server/src/main/java/org/sonar/server/component/index/ComponentIndex.java
server/sonar-server/src/test/java/org/sonar/server/component/index/ComponentIndexScoreTest.java