Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

User search scopes clobber global and organizational search scopes #3529

@sfllaw

Description

@sfllaw
  • Sourcegraph version: 3.3.0
  • Platform information: n/a

Steps to reproduce:

  1. Create some global search scopes.
  2. Go to the home page and see the search scope buttons.
  3. Add the following to your user’s settings:
    "search.scopes": []
  4. Go to the home page and look at the search scope buttons.

Expected behavior:

You should still see the global search scopes.

Concretely: global, organizational, and user search scopes should be merged.

You might argue that more specific search scopes should be able to suppress more global ones, but that is an unexpected default. No matter what solution is chosen, it should be possible to either include more global search scopes in more specific ones.

Actual behavior:

They’ve all disappeared and been replaced by the user’s empty search scopes.


Reported by https://app.hubspot.com/contacts/2762526/company/726905220

Metadata

Metadata

Assignees

Labels

bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions