Skip to content

chore: remove New----Builder from dbfake function names #10882

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 1 commit into from
Nov 29, 2023

Conversation

spikecurtis
Copy link
Contributor

Drop "New" and "Builder" from the function names, in favor of the top-level resource created. This shortens tests and gives a nice syntax. Since everything is a builder, the prefix and suffix don't add much value and just make things harder to read.

I've also chosen to leave Do() as the function to insert into the database. Even though it's a builder pattern, I fear .Build() might be confusing with Workspace Builds. One other idea is Insert() but if we later add dbfake functions that update, this might be inconsistent.

@spikecurtis spikecurtis force-pushed the spike/dbfake-provisionerjobresources-builder branch from 3a2b2d4 to 45b3ea3 Compare November 27, 2023 10:17
@spikecurtis spikecurtis force-pushed the spike/dbfake-shorten-names branch from c7f1597 to d270a5e Compare November 27, 2023 10:17
@spikecurtis spikecurtis force-pushed the spike/dbfake-provisionerjobresources-builder branch from 45b3ea3 to e2ede48 Compare November 27, 2023 10:39
Base automatically changed from spike/dbfake-provisionerjobresources-builder to main November 27, 2023 10:46
@spikecurtis spikecurtis force-pushed the spike/dbfake-shorten-names branch from d270a5e to 1623c32 Compare November 28, 2023 18:38
@spikecurtis spikecurtis merged commit 2dc565d into main Nov 29, 2023
@spikecurtis spikecurtis deleted the spike/dbfake-shorten-names branch November 29, 2023 07:06
@github-actions github-actions bot locked and limited conversation to collaborators Nov 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants