baselines-list: duplicated rows (problems with grouping in query)

There are multiple lines with the same url, branch and tree name.

image

There's something wrong with the distinct/group-by in the query

AC:

  • write unit tests reproducing the problem
  • fix query

Jira: CKI-6885

Edited by Tales da Aparecida