mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Delete unused description field from premium/reserved list entities
It isn't used now, and as far as I can tell it was never used for anything, so get rid of it. We won't be using it in our new Cloud SQL schema anyway. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=242501877
This commit is contained in:
parent
1897b9d442
commit
1c33f38555
4 changed files with 3 additions and 13 deletions
|
@ -64,8 +64,6 @@ public abstract class BaseDomainLabelList<T extends Comparable<?>, R extends Dom
|
|||
|
||||
DateTime lastUpdateTime;
|
||||
|
||||
String description;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -182,11 +180,6 @@ public abstract class BaseDomainLabelList<T extends Comparable<?>, R extends Dom
|
|||
return thisCastToDerived();
|
||||
}
|
||||
|
||||
public B setDescription(String description) {
|
||||
getInstance().description = description;
|
||||
return thisCastToDerived();
|
||||
}
|
||||
|
||||
@Override
|
||||
public T build() {
|
||||
checkArgument(!isNullOrEmpty(getInstance().name), "List must have a name");
|
||||
|
|
|
@ -332,7 +332,6 @@ public class ReservedListTest {
|
|||
ReservedList clone = original.asBuilder().build();
|
||||
assertThat(clone.getName()).isEqualTo("tld-reserved-cloning");
|
||||
assertThat(clone.creationTime).isEqualTo(original.creationTime);
|
||||
assertThat(clone.description).isEqualTo(original.description);
|
||||
assertThat(clone.lastUpdateTime).isEqualTo(original.lastUpdateTime);
|
||||
assertThat(clone.parent).isEqualTo(original.parent);
|
||||
assertThat(original.getReservedListEntries()).isEqualTo(clone.getReservedListEntries());
|
||||
|
|
|
@ -525,7 +525,6 @@ class google.registry.model.registry.label.PremiumList {
|
|||
@Id java.lang.String name;
|
||||
@Parent com.googlecode.objectify.Key<google.registry.model.common.EntityGroupRoot> parent;
|
||||
com.googlecode.objectify.Key<google.registry.model.registry.label.PremiumList$PremiumListRevision> revisionKey;
|
||||
java.lang.String description;
|
||||
org.joda.time.DateTime creationTime;
|
||||
org.joda.time.DateTime lastUpdateTime;
|
||||
}
|
||||
|
@ -552,7 +551,6 @@ class google.registry.model.registry.label.ReservedList {
|
|||
@Id java.lang.String name;
|
||||
@Parent com.googlecode.objectify.Key<google.registry.model.common.EntityGroupRoot> parent;
|
||||
boolean shouldPublish;
|
||||
java.lang.String description;
|
||||
java.util.Map<java.lang.String, google.registry.model.registry.label.ReservedList$ReservedListEntry> reservedListMap;
|
||||
org.joda.time.DateTime creationTime;
|
||||
org.joda.time.DateTime lastUpdateTime;
|
||||
|
|
|
@ -52,11 +52,11 @@ public class ListPremiumListsActionTest extends ListActionTestCase {
|
|||
public void testRun_withParameters() {
|
||||
testRunSuccess(
|
||||
action,
|
||||
Optional.of("revisionKey,description"),
|
||||
Optional.of("revisionKey"),
|
||||
Optional.empty(),
|
||||
Optional.empty(),
|
||||
"^name\\s+revisionKey\\s+description\\s*$",
|
||||
"^-+\\s+-+\\s+-+\\s*$",
|
||||
"^name\\s+revisionKey\\s*$",
|
||||
"^-+\\s+-+\\s*$",
|
||||
"^how\\s+.*PremiumList.*$",
|
||||
"^xn--q9jyb4c\\s+.*PremiumList.*$");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue