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

Convert submission insertion and grading selection sprocs to lib #9434

Merged
merged 12 commits into from
Feb 20, 2024

Conversation

jonatanschroeder
Copy link
Member

No description provided.

Copy link
Contributor

github-actions bot commented Feb 16, 2024

All images

Image Platform Old Size New Size Change
prairielearn/executor:79ff2ab9e1e4c0b6b3f0bb2e15c3beb9fa466f47 null 1619.60 MB 1619.59 MB -0.00%
prairielearn/prairielearn:79ff2ab9e1e4c0b6b3f0bb2e15c3beb9fa466f47 linux/amd64 1619.60 MB 1619.59 MB -0.00%

@jonatanschroeder jonatanschroeder marked this pull request as ready for review February 19, 2024 21:02
Copy link
Contributor

@nwalters512 nwalters512 left a comment

Choose a reason for hiding this comment

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

All these changes to core code make me nervous, but I went through this pretty carefully and this all looks good. Let's hope our tests catch all the scenarios we care about!

VariantWithFormattedDateSchema,
);

const variant = await sqldb.runInTransactionAsync(async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't comment on the line, but: the group_work parameter to makeAndInsertVariant is now unused (and was in fact unused before - we passed it to the sproc, but the sproc did nothing with it). Consider removing to clean that up.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in 79ff2ab. This actually cascaded into multiple functions that also only had that parameter to pass it along. I'll do another passthrough to ensure everything is fine before merging.

Copy link
Contributor

Choose a reason for hiding this comment

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

It'd also be fine to save this for another, smaller PR if it cascades into too many changes.

Copy link
Member Author

Choose a reason for hiding this comment

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

It was 5 functions, most of them local, so not too much.

@jonatanschroeder jonatanschroeder added this pull request to the merge queue Feb 20, 2024
Merged via the queue into master with commit d6ee667 Feb 20, 2024
7 checks passed
@jonatanschroeder jonatanschroeder deleted the submissions-insert-sproc-convert branch February 20, 2024 22:23
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