Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-13202

Homepage icon not correctly "checked" for the Main Branch of a Project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.4
    • Component/s: Web, Web API
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      When setting the Main Branch of a Project as the homepage, when re-loading the page, the icon is not correctly checked:

      The reason is the branch support. The payload of /api/users/current returns the current homepage of the user, but if it's the main branch, no branch info is returned. However, the frontend part (in HomePageSelect.tsx) checks the branch info. Because it doesn't match, the icon isn't checked.

      We should either:

      • Fix this on the backend, by always returning the same information the frontend provides (i.e., when setting the homepage, the frontend provides the branch, even if it's the Main Branch)
      • Fix this check on the frontend, by not checking the branch info if on the Main Branch

        Attachments

          Activity

            People

            Assignee:
            mathieu.suen Mathieu Suen
            Reporter:
            wouter.admiraal Wouter Admiraal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: