Fix native integration to pass cookies/credentials for "Extensions" info graphql request
Created by: erzhtor
Closes https://github.com/sourcegraph/sourcegraph/issues/32599.
Description
This PR:
- Fixes native integration (aka
@sourcegraph/code-host-integration
) not passing cookies/credentials when fetching Extensions info via GraphQL API.
Test plan
- Check browser extension works correctly/as previsously
- Check native integration works correctly
- Build native integration npm package locally:
yarn --cwd client/browser build
- Setup GitLab locally using gdk
- Link a local npm package to gitlab:
cd client/browser/build/integration && yarn link
- `cd to /gitlab && yarn link @sourcegraph/code-host-integration)
- Restart GitLab
gdk restart
- Run sourcegraph locally and configure native integration w/ local GitLab`
- Open any synced w/ local Sourcegraph repository in local GitLab and check hovers work as expected and no errors in DevTools/Network tab
- Build native integration npm package locally:
Screenshots
Before | After |
---|---|
Before merging
-
Test on different code hosts (if applicable) -
GitHub -
Gitlab -
GitHub Enterprise -
Refined GitHub -
Phabricator -
Phabricator integration -
Bitbucket -
Bitbucket integration
-
-
Test on different browsers (if applicable) -
Chrome -
Firefox -
Safari
-
-
Add change log message to client/browser/CHANGELOG.md, under "Unreleased" section. (if applicable)