Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 16, 2024

There is no need for an "upsert" operation here since we know that the database is in a clean state in our tests. Additionally, this drops the need for the Emails implementation, since all we want is a user in the database, but without any email address confirmation emails being sent out.

The motivation for this change is that it makes it easier to convert the NewUser::create_or_update() fn to async later, without having to adjust that many callers that don't need the extra behavior of that function.

There is no need for an "upsert" operation here since we know that the database is in a clean state in our tests. Additionally, this drops the need for the `Emails` implementation, since all we want is a user in the database, but without any email address confirmation emails being sent out.
There is no need for an "upsert" operation here since we know that the database is in a clean state in our tests. Additionally, this drops the need for the `Emails` implementation, since all we want is a user in the database, but without any email address confirmation emails being sent out.
There is no need for an "upsert" operation here since we know that the database is in a clean state in our tests. Additionally, this drops the need for the `Emails` implementation, since all we want is a user in the database, but without any email address confirmation emails being sent out.
There is no need for an "upsert" operation here since we know that the database is in a clean state in our tests. Additionally, this drops the need for the `Emails` implementation, since all we want is a user in the database, but without any email address confirmation emails being sent out.
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Nov 16, 2024
There is no need for an "upsert" operation here since we know that the database is in a clean state in our tests. Additionally, this drops the need for the `Emails` implementation, since all we want is a user in the database, but without any email address confirmation emails being sent out.
…r calls

There is no need for an "upsert" operation here since we know that the database is in a clean state in our tests. Additionally, this drops the need for the `Emails` implementation, since all we want is a user in the database, but without any email address confirmation emails being sent out.
@Turbo87 Turbo87 enabled auto-merge November 16, 2024 21:21
@Turbo87 Turbo87 merged commit b47ff50 into rust-lang:main Nov 16, 2024
8 checks passed
@Turbo87 Turbo87 deleted the user-creation branch November 16, 2024 21:26
@codecov
Copy link

codecov bot commented Nov 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.21%. Comparing base (fd9d5b5) to head (0bbb63b).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9971   +/-   ##
=======================================
  Coverage   89.20%   89.21%           
=======================================
  Files         293      293           
  Lines       30374    30390   +16     
=======================================
+ Hits        27096    27112   +16     
  Misses       3278     3278           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant