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

[fix] Fix being unable to add batch changes credentials when rate limited#63984

Merged
pjlast merged 5 commits into
mainfrom
petrilast-src-417-users-cannot-add-batch-change-tokens-for-code-hosts-when
Jul 26, 2024
Merged

[fix] Fix being unable to add batch changes credentials when rate limited#63984
pjlast merged 5 commits into
mainfrom
petrilast-src-417-users-cannot-add-batch-change-tokens-for-code-hosts-when

Conversation

@pjlast

@pjlast pjlast commented Jul 22, 2024

Copy link
Copy Markdown
Contributor

When Sourcegraph is applying rate limits for external requests, it becomes impossible to add batch changes credentials because the verification step of the add requires an external request to be made.

Now, instead of waiting indefinitely, a maximum timeout of 10 seconds is applied, and if the credentials could not be verified within that time, the credentials are saved regardless and a warning is displayed to the user:

image

Test plan

Manual tests.

Changelog

  • Fixed an issue where, when Sourcegraph is applying rate limits, batch change credentials could not be added. Sourcegraph now waits a maximum of 10 seconds to update credentials, and if it times out, it saves the credentials regardless and displays a warning to the user.

@cla-bot cla-bot Bot added the cla-signed label Jul 22, 2024
@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels Jul 22, 2024
@pjlast pjlast requested a review from a team July 22, 2024 14:32
Comment thread client/web/src/enterprise/batches/settings/AddCredentialModal.tsx Outdated
Comment thread client/web/src/enterprise/batches/settings/AddCredentialModal.tsx Outdated
Comment thread internal/batches/service/service.go
Comment thread client/web/src/enterprise/batches/settings/AddCredentialModal.tsx Outdated
@pjlast pjlast merged commit 64ac259 into main Jul 26, 2024
@pjlast pjlast deleted the petrilast-src-417-users-cannot-add-batch-change-tokens-for-code-hosts-when branch July 26, 2024 09:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants