Skip to content

Implement setting review assignment limit #1919

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

Merged
merged 6 commits into from
Apr 17, 2025

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Mar 11, 2025

This PR takes the logic from #1854 and updates it to the updated DB schema. It also handles upsert of users into the DB, as we don't know in advance if they will be present there or not.

I renamed the command from work set to work set-pr-limit, but I don't care much about the naming here. I also added an option to reset the limit to unlimited (NULL) using work set-pr-limit none.

I don't think that we need a set of testing users here, as the limit is not taken into account when doing reviews yet. But it would be nice to have some data in the DB before we implement that (I plan to refactor PR assignment as a next step).

Best reviewed commit by commit.

@Kobzol Kobzol requested a review from apiraino March 11, 2025 16:58
@apiraino apiraino removed their request for review March 13, 2025 12:42
@Kobzol Kobzol force-pushed the setting-review-assignment-limit branch from 1ecaf84 to 2e3aa37 Compare April 17, 2025 13:33
@Kobzol Kobzol requested a review from Urgau April 17, 2025 13:33
@Kobzol Kobzol force-pushed the setting-review-assignment-limit branch from 2e3aa37 to e8e7e33 Compare April 17, 2025 21:24
@Urgau Urgau added this pull request to the merge queue Apr 17, 2025
Merged via the queue into rust-lang:master with commit da64ec5 Apr 17, 2025
3 checks passed
@Kobzol Kobzol deleted the setting-review-assignment-limit branch April 18, 2025 05:08
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.

3 participants