Skip to content
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

OpenAPI: Add description for AssignUUID #8753

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Oct 9, 2023

Added a description based on feedback from dd26f36#r129277242

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Nice one, thanks!

@@ -230,6 +230,10 @@ class BaseUpdate(BaseModel):


class AssignUUIDUpdate(BaseUpdate):
"""
Assigning a UUID to a table/view should only be done when creating the table/view. It is not safe to re-assign the UUID if a table/view already has a UUID assigned
Copy link
Contributor

Choose a reason for hiding this comment

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

wondering if we expect the services to throw some validation exp or BadRequest in case there already exists a table and if yes should we document this here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@singhpk234 this is being handled by the TableRequirement section, more specifically, there is assert-create:

- `assert-create` - the table must not already exist; used for create transactions

Copy link
Member

@jbonofre jbonofre left a comment

Choose a reason for hiding this comment

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

LGTM, thanks !

@nastra
Copy link
Contributor Author

nastra commented Oct 11, 2023

thanks everyone for reviewing

@nastra nastra merged commit aa43e1f into apache:master Oct 11, 2023
3 checks passed
@nastra nastra deleted the assign-uuid-description branch October 11, 2023 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants