-
Notifications
You must be signed in to change notification settings - Fork 256
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
(#634) restore custom domain when recreating project #637
(#634) restore custom domain when recreating project #637
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased and pushed more commits, also waiting to see if the CI is happy this time so still keeping this a draft
pub fn create(project_name: ProjectName) -> Self { | ||
Self::Creating(ProjectCreating::new_with_random_initial_key(project_name)) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(3rd commit proposal, can be removed if not liked)
Removing this public method as there is already a builder pattern for the inner ProjectCreating
.
Alternatively one could change this method to accept a fqdn: Option<String>
as well, to reflect the current usage of the method - I prefer the former though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Angelo! I appreciate the test and the review comments explaining your reasoning!
…#634) * test: ProjectCreating fqdn dev-only getter and completed unit test * refactor: remove Project::create in favour of internal builder pattern
@oddgrd thanks for the review. I have just rebased from latest master and squashed the commits into one, so it should be good to go as per your guidelines 👍 |
Thanks for this @angelorendina! |
feat: restore previous custom domain (if any) when recreating a project (closes #634)