Rename client ID to registrar ID in most places (#1317)

* Rename client ID to registrar ID in most places

This is a code-only change, that shouldn't require any sort of data
migration. Correspondingly, there are some existing uses of clientId that are
not migrated (e.g. Datastore fields, task queue payloads, URL parameters for
actions that might be hit from task queues, etc.). And it of course doesn't
modify any fields in EPP XML. Note that the Cloud SQL schema fields are
already named using the registar_id pattern.

This also doesn't yet touch on the -c parameters in nomulus tools; that will be
coming later (since that is an external manual touch-point, it will require a
lot more in the way of changes to various meta scripts and documentation).

* Change more client IDs

* Merge branch 'master' into clientid-to-registrarid
This commit is contained in:
Ben McIlwain 2021-09-16 12:57:43 -04:00 committed by GitHub
parent 0b6f18f6d4
commit d5a91e7218
268 changed files with 1897 additions and 1786 deletions

View file

@ -30,11 +30,11 @@ public class RegistrarUtils {
}
/**
* Returns a normalized registrar clientId by taking the input and making it lowercase and
* removing all characters that aren't alphanumeric or hyphens. The normalized id should be unique
* in Datastore, and is suitable for use in email addresses.
* Returns a normalized registrar ID by taking the input and making it lowercase and removing all
* characters that aren't alphanumeric or hyphens. The normalized id should be unique in
* Datastore, and is suitable for use in email addresses.
*/
public static String normalizeClientId(String clientId) {
return Ascii.toLowerCase(clientId).replaceAll("[^a-z0-9\\-]", "");
public static String normalizeRegistrarId(String registrarId) {
return Ascii.toLowerCase(registrarId).replaceAll("[^a-z0-9\\-]", "");
}
}