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

execution_set.check_auth(...) on initial subscription #1274

Merged
merged 1 commit into from
May 28, 2024

Conversation

Centril
Copy link
Contributor

@Centril Centril commented May 21, 2024

Description of Changes

We simply didn't check auth for initial subscriptions, and this PR fixes that.

API and ABI breaking changes

Technically this breaks the API in the sense that we check auth now, but that is a bug fix...

Expected complexity level and risk

1

Testing

A test is added that ensures that we check auth.

@Centril Centril requested a review from joshua-spacetime May 21, 2024 22:57
@Centril Centril force-pushed the centril/subs-check-auth branch 2 times, most recently from ef1729a to 64f2d23 Compare May 22, 2024 08:37
@Centril Centril requested a review from gefjon May 22, 2024 15:27
@joshua-spacetime
Copy link
Collaborator

Also simplifies fn sources(), using internal iteration rather than external, avoiding some allocation when checking auth.

Bug fixes and refactors really should be separate.

bfops pushed a commit that referenced this pull request May 23, 2024
@Centril
Copy link
Contributor Author

Centril commented May 28, 2024

Also simplifies fn sources(), using internal iteration rather than external, avoiding some allocation when checking auth.

Bug fixes and refactors really should be separate.

I don't agree with this in the general case as sometimes you need to refactor to fix a bug in a good way, and sometimes a bug fix falls out of a refactor. For the purposes of a hotfix, I think it's also sufficient to have the fix and the refactor in a separate commit as that allows cherry-picking the former into the hotfix branch. This would be fine e.g., for a rustc beta-backport PR, which is more high risk than anything we are currently dealing with. But in the interest of moving this along quicker, I'll move the second commit to a different PR.

@Centril Centril force-pushed the centril/subs-check-auth branch 3 times, most recently from 9aa708a to aad58a2 Compare May 28, 2024 08:39
@Centril Centril requested a review from mamcx May 28, 2024 08:40
@bfops bfops added release-any To be landed in any release window bugfix Fixes something that was expected to work differently labels May 28, 2024
Copy link
Contributor

@mamcx mamcx left a comment

Choose a reason for hiding this comment

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

LGTM

@Centril Centril added this pull request to the merge queue May 28, 2024
Merged via the queue into master with commit 4ac49e5 May 28, 2024
9 checks passed
@Centril Centril deleted the centril/subs-check-auth branch May 29, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes something that was expected to work differently release-any To be landed in any release window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants