Skip to content
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

Remove the need to pass an account to envForRemoteOperation #18627

Merged
merged 5 commits into from
May 22, 2024

Conversation

niik
Copy link
Member

@niik niik commented May 16, 2024

xref: #18586

Description

Follow-up to #18626.

This is mostly a refactor PR that removes the previously unused account parameter from envForRemoteOperation. This in turn lets us remove the usage of getGenericHostname from AppStore by means of changing the withAuthenticatingUser to just ensure an up-to-date GitHubRepository association.

Functionally we don't expect any changes due to this PR but noteworthy is that we've ensured that all uses of withRefreshedGitHubRepository (previously withAuthenticatingUser) intentionally shadow the previous repository variable so that we don't accidentally use it. We found a few cases where this was happening but believe it should only have affected proxy resolution and if anything it would be more accurate now so we're not worried about it.

Screenshots

Release notes

Notes:

niik and others added 5 commits May 16, 2024 13:50
Co-Authored-By: Sergio Padrino <1083228+sergiou87@users.noreply.github.com>
We don't want to accidentally reference it

Co-Authored-By: Sergio Padrino <1083228+sergiou87@users.noreply.github.com>
Co-Authored-By: Sergio Padrino <1083228+sergiou87@users.noreply.github.com>
Co-Authored-By: Sergio Padrino <1083228+sergiou87@users.noreply.github.com>
tidy-dev
tidy-dev previously approved these changes May 22, 2024
Base automatically changed from proxy-url-without-account to development May 22, 2024 14:46
@niik niik dismissed tidy-dev’s stale review May 22, 2024 14:46

The base branch was changed.

@niik niik requested a review from tidy-dev May 22, 2024 14:46
@niik niik enabled auto-merge May 22, 2024 14:47
@niik niik merged commit 9918c16 into development May 22, 2024
5 checks passed
@niik niik deleted the no-generic-hostname branch May 22, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants