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

REPP: domain details are missing admin and tech contact codes for old objects #2282

Closed
vohmar opened this issue Feb 7, 2022 · 2 comments
Closed
Assignees
Labels

Comments

@vohmar
Copy link
Contributor

vohmar commented Feb 7, 2022

repp response:
"contacts": [
{
"code": null,
"type": "AdminDomainContact"
},
{
"code": null,
"type": "TechDomainContact"
}
],

code is null when the contact object's code has the old prefix 'CID' in front. CID was used as contact object prefix in previous registry system.
Registrant object does not have this issue.

@vohmar vohmar added the bug label Feb 7, 2022
@DinSmol DinSmol self-assigned this Feb 10, 2022
@maricavor maricavor assigned maricavor and unassigned DinSmol Mar 7, 2022
@vohmar
Copy link
Contributor Author

vohmar commented May 3, 2022

the problem is caused by empty value of contact_code_cache in domain_contacts table. The value is missing from older records about 70k records in production.

we have two options here

  • stop using contact_code_cache and take the code from respective records in contacts table - this will impact performance
  • fill the missing values with a script

latter one being the preferred approach

task: write db script that takes the contact codes from the contacts table and adds the value to the domain_contacts table where contact_code_cache is missing

@vohmar vohmar assigned ratM1n and unassigned maricavor May 3, 2022
@vohmar
Copy link
Contributor Author

vohmar commented May 3, 2022

contact_code_cache is updated for all the records that did not have it set already, but there are about 3k records where the value of code_cache differs from the contact objects' one. Needs some research to see if it's a problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants