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

search: disable structural search by default#57584

Merged
stefanhengl merged 9 commits intomainfrom
sh/disable-structural-search
Jan 9, 2024
Merged

search: disable structural search by default#57584
stefanhengl merged 9 commits intomainfrom
sh/disable-structural-search

Conversation

@stefanhengl
Copy link
Member

@stefanhengl stefanhengl commented Oct 13, 2023

This disables structural search by default. As a consequence the toggle for structural search [ ] will be hidden in the UI and API calls with a structural search query will fail.

Users can re-enable structural search by setting experimentalFeatures.structuralSearch: "enabled" in site configuration.

Note: The feature is not deprecated. We are merely switching the default from "enabled" to "disabled".

Test plan:
updated unit tests: a couple of tests expected structural search to be on by default. I updated the tests to enable structural search explicitly.

@cla-bot cla-bot bot added the cla-signed label Oct 13, 2023
This disables structural search by default. Users who haven't
explicitly enabled it can turn it back on by setting
`experimentalFeatures.structuralSearch: "enabled"` in site-admin
settings.

This does not mean the feature is deprecated. We are simply switching
the default.

Test plan:
CI
@stefanhengl stefanhengl force-pushed the sh/disable-structural-search branch from 6ad86c6 to 57f2a83 Compare October 13, 2023 09:51
@stefanhengl stefanhengl requested a review from a team October 13, 2023 11:15
@stefanhengl stefanhengl marked this pull request as ready for review October 13, 2023 11:15
@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented Oct 13, 2023

Codenotify: Notifying subscribers in CODENOTIFY files for diff 79486a0...9705b7e.

Notify File(s)
@fkling client/web/src/search/input/SearchNavbarItem.tsx
@unknwon dev/gqltest/search_test.go
dev/gqltest/sub_repo_permissions_test.go

@keegancsmith
Copy link
Member

We should get approval from others before this ends up in a release. Additionally we need a plan for environments we do continuous deployments. Even though this is just disabling by default, given there is product buy in for this feature (as low maintained as it is), this can be seen as a big change.

@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented Jan 5, 2024

📖 Storybook live preview

Copy link
Contributor

@jtibshirani jtibshirani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🎉

Copy link
Member

@keegancsmith keegancsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny that the feature toggle is still under experimental features...

Ship it!

@stefanhengl stefanhengl merged commit a5984c7 into main Jan 9, 2024
@stefanhengl stefanhengl deleted the sh/disable-structural-search branch January 9, 2024 09:11
stefanhengl referenced this pull request in sourcegraph/docs Jan 17, 2024
Relates to https://github.com/sourcegraph/sourcegraph/pull/57584

Structural search will be disabled by default from 5.3 on.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants