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

search: remove experimental glob setting and logic in GQL layer#27886

Merged
rvantonder merged 1 commit into
mainfrom
backend-integration/no-glob
Nov 19, 2021
Merged

search: remove experimental glob setting and logic in GQL layer#27886
rvantonder merged 1 commit into
mainfrom
backend-integration/no-glob

Conversation

@rvantonder

@rvantonder rvantonder commented Nov 18, 2021

Copy link
Copy Markdown
Contributor

As in title. Frontend to be done separately later.

@cla-bot cla-bot Bot added the cla-signed label Nov 18, 2021
@sourcegraph-bot

sourcegraph-bot commented Nov 18, 2021

Copy link
Copy Markdown
Contributor

Notifying subscribers in CODENOTIFY files for diff 69fd9c1...55876f5.

Notify File(s)
@beyang internal/search/query/query.go
internal/search/query/transformer.go
internal/search/streaming/search_filters.go
@camdencheek cmd/frontend/internal/search/search.go
internal/search/query/query.go
internal/search/query/transformer.go
internal/search/streaming/search_filters.go
@keegancsmith cmd/frontend/graphqlbackend/parse_search_query.go
cmd/frontend/graphqlbackend/search.go
cmd/frontend/graphqlbackend/search_results.go
cmd/frontend/graphqlbackend/search_results_test.go
cmd/frontend/graphqlbackend/search_suggestions.go
cmd/frontend/internal/search/search.go
internal/search/query/query.go
internal/search/query/transformer.go
internal/search/streaming/search_filters.go

@keegancsmith keegancsmith left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/me pours one out

changelog entry?

@rvantonder rvantonder left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nah, no changelog entry, we never made it known that this setting/option exists (there's no corresponding addition in changelog).

@rvantonder rvantonder force-pushed the backend-integration/no-glob branch from c88652a to 55876f5 Compare November 18, 2021 23:05
@rvantonder rvantonder merged commit 8957be2 into main Nov 19, 2021
@rvantonder rvantonder deleted the backend-integration/no-glob branch November 19, 2021 02:56
fkling added a commit that referenced this pull request Mar 20, 2023
Originally I wanted to do properly pass in the `globbing` parameter but
then I noticed that this feature had been removed for quite a while
(#27886, #46045).
But while working on this I noticed that the cursor is not properly
scrolled into view when completing a long value. Adding `scrollIntoView`
fixes that.
philipp-spiess referenced this pull request Mar 20, 2023
As @fkling noticed in #49684, these option is no longer supported:

- https://github.com/sourcegraph/sourcegraph/pull/27886
- https://github.com/sourcegraph/sourcegraph/pull/46045

Time to do some cleanup in the front end code!
fkling added a commit that referenced this pull request Mar 20, 2023
#49684)

Originally I wanted to do properly pass in the `globbing` parameter but
then I noticed that this feature had been removed for quite a while
(#27886, #46045).
But while working on this I noticed that the cursor is not properly
scrolled into view when completing a long value. Adding `scrollIntoView`
fixes that.


## Test plan

Enter a long query into the input, type `file:` and select a long file
suggestion. The input should scroll the cursor into view.

## App preview:

- [Web](https://sg-web-fkling-search-input-globbing.onrender.com/search)

Check out the [client app preview
documentation](https://docs.sourcegraph.com/dev/how-to/client_pr_previews)
to learn more.
github-actions Bot pushed a commit that referenced this pull request Mar 20, 2023
#49684)

Originally I wanted to do properly pass in the `globbing` parameter but
then I noticed that this feature had been removed for quite a while
(#27886, #46045).
But while working on this I noticed that the cursor is not properly
scrolled into view when completing a long value. Adding `scrollIntoView`
fixes that.

## Test plan

Enter a long query into the input, type `file:` and select a long file
suggestion. The input should scroll the cursor into view.

## App preview:

- [Web](https://sg-web-fkling-search-input-globbing.onrender.com/search)

Check out the [client app preview
documentation](https://docs.sourcegraph.com/dev/how-to/client_pr_previews)
to learn more.

(cherry picked from commit 87b738d)
fkling added a commit that referenced this pull request Mar 20, 2023
…after completion (#49689)

Originally I wanted to do properly pass in the `globbing` parameter but
then I noticed that this feature had been removed for quite a while
(#27886, #46045).
But while working on this I noticed that the cursor is not properly
scrolled into view when completing a long value. Adding `scrollIntoView`
fixes that.


## Test plan

Enter a long query into the input, type `file:` and select a long file
suggestion. The input should scroll the cursor into view.

Co-authored-by: Felix Kling <felix@felix-kling.de>
philipp-spiess referenced this pull request Mar 21, 2023
As @fkling noticed in #49684, these option is no longer supported:

- https://github.com/sourcegraph/sourcegraph/pull/27886
- https://github.com/sourcegraph/sourcegraph/pull/46045

Time to do some cleanup in the front end code!

Process:

- Grep for `globbing`
- Delete everything that is related to front end code

## Test plan

- CI

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

## App preview:

- [Web](https://sg-web-ps-rm-globbing-from-frontend.onrender.com/search)

Check out the [client app preview
documentation](https://docs.sourcegraph.com/dev/how-to/client_pr_previews)
to learn more.
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.

3 participants