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

Conversation

@sqs
Copy link
Member

@sqs sqs commented Jul 19, 2024

For the last ~5 years, viewerSettings, settingsCascade, and SettingsCascade has been preferred over viewerConfiguration, configurationCascade, and ConfigurationCascade.

There are no usages of the old API in our own code: https://sourcegraph.sourcegraph.com/search?q=context:sourcegraph+configurationcascade&patternType=literal.

Therefore, I'm calling it safe to remove.

Test plan

CI

Changelog

  • The deprecated configurationCascade and viewerConfiguration GraphQL API fields were removed. Use settingsCascade and viewerSettings instead.

For the last ~5 years, `viewerSettings`, `settingsCascade`, and `SettingsCascade` has been preferred over `viewerConfiguration`, `configurationCascade`, and `ConfigurationCascade`.

There are no usages of the old API in our own code: https://sourcegraph.sourcegraph.com/search?q=context:sourcegraph+configurationcascade&patternType=literal.

Therefore, I'm calling it safe to remove.
@sqs sqs requested review from a team July 19, 2024 07:32
@cla-bot cla-bot bot added the cla-signed label Jul 19, 2024
Comment on lines +179 to +180
viewerSettings {
...SettingsCascadeFields
Copy link
Member

Choose a reason for hiding this comment

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

you said in the description

There are no usages of the old API in our own code

But this feels like a usage site?

The browser extension probably needs to be released (manual process I believe, not continuous) for this to go out, otherwise it will probably be broken? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yeah, you are right. Thank you for catching this. Confirmed the browser extension hits the viewerConfiguration API.

I'll release a new bext build first before merging this.

image

Copy link
Member

Choose a reason for hiding this comment

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

Thank you!

@sqs sqs marked this pull request as draft July 19, 2024 09:51
sqs referenced this pull request Jul 19, 2024
…erConfiguration API (#63949)

This API is deprecated (see
https://github.com/sourcegraph/sourcegraph/pull/63935). The browser
extension is still using it, and we need this PR to remove its usage,
and then we need to publish it. Then we can pick up
https://github.com/sourcegraph/sourcegraph/pull/63935 again.

## Test plan

Confirm that the browser extension uses the new GraphQL query (in the
background page network devtools tab).
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