-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add UUID db columns #873
Add UUID db columns #873
Conversation
artur-intech
commented
Jun 12, 2018
•
edited
Loading
edited
- Needed for REST API v2 (GDPR - Registrant: Enable user to update contact data of their domain contacts #849)
- Test domain/contact adding/editing, contact/domain transfer
- REST API v1 will probably start returning UUIDs as well, since there is no filter on API side (it just returns all values straight from a DB). Don't think it might be a problem
It will be generated on DB level
@@ -16,6 +16,7 @@ def transfer(new_registrar) | |||
new_contact.regenerate_code | |||
new_contact.regenerate_auth_info | |||
new_contact.remove_address unless self.class.address_processing? | |||
new_contact.uuid = nil |
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.
Why is this required? Is there a reason why UUIDs cannot stay the same after a transfer, like primary keys?
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.
Because transfer operation effectively creates a new copy of a contact, based on the original one. What primary key remains the same?
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.
Why then pkey stays the same, instead of also being regenerated?
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.
Primary key is unique by definition. Where do you see that it remains the same?
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.