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

The Tags facet in the issue search only shows tags of the default organization

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4
    • Fix Version/s: 7.0
    • Component/s: Issues, Organizations, Web API
    • Labels:
      None

      Description

      To reproduce:

      • analyze a project P inside a custom org O
      • add a new issue tag T for one of the issues of the project {{P}
      • go to the issues page of the org O, open tags facet, search for the tag T, it will work
      • go to the global issues page (or my issues after MMF-909), open tags facet, search for the tag T, it will not work

      The root cause is that the WS request to search tags is sent with organization parameter, when the page is display at org level. The request is sent without the organization parameter when sent from the global page. And when no organization parameter is provided, the WS searches only inside the default organization, and not in all orgs.

      Solution

      Change behavior of api/issues/tags: if no organization parameter is provided, then search is done across all organizations. This behavior is consistent with api/issues/search

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              teryk.bellahsene Teryk Bellahsene
              Reporter:
              daniel.schwarz Daniel Schwarz (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: