1
0
mirror of https://github.com/google/nomulus synced 2026-01-05 13:07:04 +00:00

Remove datastore related code (#1906)

This commit is contained in:
Lai Jiang
2023-01-19 14:44:11 -05:00
committed by GitHub
parent ac14688a4f
commit 925c9ba9e8
152 changed files with 886 additions and 4460 deletions

View File

@@ -55,7 +55,7 @@ public final class DiffUtils {
}
}
/** Pretty-prints a deep diff between two maps that represent Datastore entities. */
/** Pretty-prints a deep diff between two maps that represent entities. */
public static String prettyPrintEntityDeepDiff(Map<?, ?> a, Map<?, ?> b) {
return prettyPrintDiffedMap(deepDiff(a, b, true), null);
}

View File

@@ -17,9 +17,7 @@ package google.registry.util;
import com.google.common.io.Files;
import java.nio.file.Path;
/**
* A utility class for conversion of input file paths into names for entities in Datastore.
*/
/** A utility class for conversion of input file paths into names for entities in the database. */
public final class ListNamingUtils {
/** Turns a file path into a name suitable for use as the name of a premium or reserved list. */

View File

@@ -31,8 +31,8 @@ public class RegistrarUtils {
/**
* 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.
* characters that aren't alphanumeric or hyphens. The normalized id should be unique in the
* database, and is suitable for use in email addresses.
*/
public static String normalizeRegistrarId(String registrarId) {
return Ascii.toLowerCase(registrarId).replaceAll("[^a-z0-9\\-]", "");