-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Percent-encode GraphQL repository.url #15745
Conversation
Codecov Report
@@ Coverage Diff @@
## main #15745 +/- ##
==========================================
- Coverage 52.43% 52.43% -0.01%
==========================================
Files 1635 1635
Lines 81727 81728 +1
Branches 7299 7155 -144
==========================================
Hits 42850 42850
Misses 35049 35049
- Partials 3828 3829 +1
|
…t-encode-graphql-urls
Thanks, merging! |
@unknwon what do you think about an integration test for this to prevent regressions? The unit test tests that the utility function, but nothing tests that it's actually used, so I'm a bit worried about this issue popping up again in the future |
@felixfbecker SGTM. Would any of GitHub, Bitbucket Server or AWS Code Commit supports spaces in repository name? 🤔 If not, might be a bit troublesome to add. |
GitHub definitely not. The others I don't know, but I imagine not. But since Azure DevOps is supported by Sourcegraph through "Other", it would be good if the integration tests could test that, no? |
@felixfbecker Agree with the point of having it tested. Do you have a working example of the "Other" external service for Azure DevOps, doesn't seem we have docs for it. |
No, I had to figure it out myself too 🙈 |
The one on the k8s.sgdev.org does look like we would need exactly. Filed #15905. |
I had narrowed down the problem to specific resolvers so here's my best shot to fix #15618.
What I am unsure about: