Skip to content

models/krate: Split create_or_update() fn into create() and update() #7191

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 7 commits into from
Sep 27, 2023

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Sep 27, 2023

This PR attempts to simplify the NewCrate::create_or_update() fn, by splitting up into two more straight-forward create() and update() fns. This allows us to explicitly use only create() in our test suite code, and a combination of both in the publish endpoint.

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Sep 27, 2023
@Turbo87 Turbo87 requested a review from a team September 27, 2023 08:28
Copy link
Member

@0xPoe 0xPoe left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks! I think it is safe to split it.

@Turbo87 Turbo87 merged commit 0be5672 into rust-lang:main Sep 27, 2023
@Turbo87 Turbo87 deleted the create-update branch September 27, 2023 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants