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

BitBucketServer Onboarding search results only display repos in loaded projects, or repos not in loaded projects, but not both

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.6
    • Component/s: Web
    • Labels:
      None
    • Edition:
      Developer
    • Production Notes:
      None

      Description

      When the BBS Onboarding UI is first loaded, we fetch the initial 25 projects, which we use to visually group repositories. Because we do not have pagination (yet), we only load the 25 first projects.

      When a user starts searching for a repository, we try to group search results visually by project. And if a repository is not part of any project, we display it in a "virtual" project, called "Search results".

      Problem:

      There's an issue with the condition in src/main/js/apps/create/project/BitbucketSearchResults.tsx:62. It implies repositories in "Search results" can only appear if none of the repositories are part of any loaded projects. This is incorrect. We can very well have results that are both linked to projects we know of, and results that are not.

      Solution:

      We have 2 solutions:

      • Simplest: display all search results in "Search results", and do not display project groupings
      • Keep the grouping per project, and make sure that any search results that remain are put in "Search results"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wouter.admiraal Wouter Admiraal
              Reporter:
              wouter.admiraal Wouter Admiraal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: