Skip to content

Conversation

@adeola-ak
Copy link
Contributor

@adeola-ak adeola-ak commented Jan 26, 2023

Closes #913

Change the 10 changeset limit for batch changes for unlicensed/free tier Sourcegraph instances from being hardcoded, to querying maxUnlicensedChangeset in the mutation where we create the batch spec so that error codesErrBatchChangesUnlicensed and ErrBatchChangesOverLimit returns value

CleanShot 2023-01-26 at 19 46 52@2x

Test plan

Test creating a batch change with more changesets than the current maxUnlicensedChangesets values as an unlicensed user

@adeola-ak adeola-ak requested review from a team and removed request for a team January 26, 2023 05:59
@courier-new courier-new requested a review from a team January 26, 2023 08:20
Copy link
Contributor

@courier-new courier-new left a comment

Choose a reason for hiding this comment

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

Approach looks really solid to me! Sorry my review is basically a million nits to improve code quality a bit, but hopefully they make it easier for you to update things. 🙂

Would you mind... (I bet you can guess what I'm about to ask! 😜) ...sharing a screenshot of the new error, too?

@adeola-ak
Copy link
Contributor Author

adeola-ak commented Jan 26, 2023

Approach looks really solid to me! Sorry my review is basically a million nits to improve code quality a bit, but hopefully they make it easier for you to update things. 🙂

Would you mind... (I bet you can guess what I'm about to ask! 😜) ...sharing a screenshot of the new error, too?

@courier-new i asked for a review and then i removed it when i realized i had some mistakes but thank you for your prompt and helpful review! it was like 1am and i was so tired that i couldnt find where to switch it to draft so i removed review instead lol and by the way i love the 'nitpicky' for code quality. Thank you!

adeola-ak and others added 4 commits January 26, 2023 09:38
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
@adeola-ak adeola-ak requested a review from a team January 27, 2023 00:48
adeola-ak and others added 2 commits January 27, 2023 09:08
Co-authored-by: Bolaji Olajide <25608335+BolajiOlajide@users.noreply.github.com>
Co-authored-by: Bolaji Olajide <25608335+BolajiOlajide@users.noreply.github.com>
@adeola-ak adeola-ak changed the title batches: query max ulicensed changesets count batches: query max unlicensed changesets count Jan 27, 2023
Copy link
Contributor

@courier-new courier-new left a comment

Choose a reason for hiding this comment

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

Just made a couple suggestions to preserve inline function documentation, otherwise 👍

adeola-ak and others added 5 commits January 29, 2023 02:29
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
@adeola-ak adeola-ak enabled auto-merge (squash) January 29, 2023 07:43
@adeola-ak adeola-ak merged commit 715ed43 into main Jan 29, 2023
@adeola-ak adeola-ak deleted the aa/unlicensed branch January 29, 2023 07:44
scjohns pushed a commit that referenced this pull request Apr 24, 2023
replace hardcoded permitted unlicensed changesets count by querying maxUnlicensedChangesets
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.

batches: remove hardcoded max unlicensed changesets from src-cli TUI output

4 participants