Skip to content

chore(site): remove template version machine #10315

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 4 commits into from
Oct 18, 2023

Conversation

BrunoQuaresma
Copy link
Collaborator

Related to: #9941

@BrunoQuaresma BrunoQuaresma requested a review from a team October 17, 2023 13:50
@BrunoQuaresma BrunoQuaresma self-assigned this Oct 17, 2023
@BrunoQuaresma BrunoQuaresma requested review from code-asher and removed request for a team October 17, 2023 13:50
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Looks and works great! The separate move commits made for a very nice review. <3

version: TemplateVersion,
) => {
const previousVersion = await API.getPreviousTemplateVersionByName(
version.organization_id!,
Copy link
Member

Choose a reason for hiding this comment

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

Is this one of those cases where the types are wrong or is it possible for the ID to be undefined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When this happens, it is impossible for the organization id to be undefined. More context: A version can be created without being attached to a template or even an organization.

@BrunoQuaresma BrunoQuaresma merged commit c93fe8d into main Oct 18, 2023
@BrunoQuaresma BrunoQuaresma deleted the bq/refactor-template-version branch October 18, 2023 12:18
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 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.

2 participants