mirror of
https://github.com/google/nomulus.git
synced 2025-08-02 16:02:10 +02:00
Delete end-date sunrise, landrush, and sunrush phases
This also deletes the associated commands and domain application specific entities. We haven't used any of these TLD phases since early 2015 and have no intent to do so in the future, so it makes sense to delete them now so we don't have to carry them through the Registry 3.0 migration. Note that, while there are data model changes, there should be no required data migrations. The fields and entities being removed will simply remain as orphans. I confirmed that the removed types (such as the SUNRUSH_ADD GracePeriodType) are no longer used in production data, and left types that are still used, e.g. BillingEvent.Flag.LANDRUSH or HistoryEntry.Type.ALLOCATE. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228752843
This commit is contained in:
parent
c74ffd7559
commit
580302898d
282 changed files with 344 additions and 17634 deletions
|
@ -43,24 +43,15 @@ goog.inherits(registry.registrar.Domain,
|
|||
registry.registrar.XmlResourceComponent);
|
||||
|
||||
|
||||
/**
|
||||
* @define {boolean} Launch phase flag. If not SUNRUSH then GA.
|
||||
*/
|
||||
goog.define('registry.registrar.Domain.SUNRUSH', false);
|
||||
|
||||
|
||||
/** @override */
|
||||
registry.registrar.Domain.prototype.newModel = function() {
|
||||
var newModel = {item: {'domain:period': ''}};
|
||||
if (registry.registrar.Domain.SUNRUSH) {
|
||||
newModel.allowSmd = true;
|
||||
}
|
||||
return newModel;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Prepare a fetch query for the domain by its domain application id.
|
||||
* Prepare a fetch query for the domain by its id.
|
||||
* @param {!Object} params should have a name field with a
|
||||
* possibly extended domain name id of the form "example.tld:1234"
|
||||
* where the 1234 is the domain application id assigned by the
|
||||
|
@ -68,24 +59,8 @@ registry.registrar.Domain.prototype.newModel = function() {
|
|||
* @override
|
||||
*/
|
||||
registry.registrar.Domain.prototype.prepareFetch = function(params) {
|
||||
var xml;
|
||||
if (registry.registrar.Domain.SUNRUSH) {
|
||||
var idParts = params.id.split(':');
|
||||
if (idParts.length != 2) {
|
||||
registry.util.butter(
|
||||
'Domain queries during sunrush have the form: ' +
|
||||
'"example.tld:1234", where 1234 is the application ID.');
|
||||
throw Error('Invalid domain name for SUNRUSH, lacking application ID');
|
||||
}
|
||||
params.name = idParts[0];
|
||||
params.applicationID = idParts[1];
|
||||
xml = registry.soy.registrar.domainepp.infoSunrush(
|
||||
/** @type {{applicationID: ?, clTrid: ?, name: ?}} */(params));
|
||||
} else {
|
||||
xml = registry.soy.registrar.domainepp.info(
|
||||
/** @type {{clTrid: ?, id: ?}} */ (params));
|
||||
}
|
||||
return xml.toString();
|
||||
return registry.soy.registrar.domainepp.info(
|
||||
/** @type {{clTrid: ?, id: ?}} */ (params)).toString();
|
||||
};
|
||||
|
||||
|
||||
|
@ -97,11 +72,6 @@ registry.registrar.Domain.prototype.processItem = function() {
|
|||
if (extension && extension['launch:infData']) {
|
||||
var extendedInfData = extension['launch:infData'];
|
||||
|
||||
var applicationID = extendedInfData['launch:applicationID'];
|
||||
if (applicationID) {
|
||||
this.model.item['launch:applicationID'] = applicationID;
|
||||
}
|
||||
|
||||
var mark = extendedInfData['mark:mark'];
|
||||
if (mark) {
|
||||
this.model.item['mark:mark'] = {'keyValue': goog.json.serialize(mark)};
|
||||
|
@ -165,14 +135,8 @@ registry.registrar.Domain.prototype.prepareCreate = function(params) {
|
|||
if (form['smd:encodedSignedMark'] == '') {
|
||||
delete form['smd:encodedSignedMark'];
|
||||
}
|
||||
var xml;
|
||||
if (registry.registrar.Domain.SUNRUSH) {
|
||||
xml = registry.soy.registrar.domainepp.createSunrush(
|
||||
/** @type {{clTrid:?, item: ?}} */(params));
|
||||
} else {
|
||||
xml = registry.soy.registrar.domainepp.create(
|
||||
/** @type {{clTrid: ?, item: ?}} */(params));
|
||||
}
|
||||
var xml = registry.soy.registrar.domainepp.create(
|
||||
/** @type {{clTrid: ?, item: ?}} */(params));
|
||||
return xml.toString();
|
||||
};
|
||||
|
||||
|
@ -192,19 +156,12 @@ registry.registrar.Domain.prototype.prepareUpdate =
|
|||
this.addRem(form['domain:ns']['domain:hostObj'], 'Hosts', params);
|
||||
}
|
||||
|
||||
var xml;
|
||||
if (registry.registrar.Domain.SUNRUSH) {
|
||||
xml = registry.soy.registrar.domainepp.updateSunrush(
|
||||
/** @type {{clTrid: ?, item: ?}} */(params));
|
||||
nextId += ':' + form['launch:applicationID'];
|
||||
} else {
|
||||
if (form['domain:ns'] && form['domain:ns']['domain:hostObj']) {
|
||||
this.addRem(form['domain:ns']['domain:hostObj'], 'Hosts', params);
|
||||
}
|
||||
this.addRem(form['domain:contact'], 'Contacts', params);
|
||||
xml = registry.soy.registrar.domainepp.update(
|
||||
/** @type {{clTrid: ?, item: ?}} */(params));
|
||||
if (form['domain:ns'] && form['domain:ns']['domain:hostObj']) {
|
||||
this.addRem(form['domain:ns']['domain:hostObj'], 'Hosts', params);
|
||||
}
|
||||
this.addRem(form['domain:contact'], 'Contacts', params);
|
||||
var xml = registry.soy.registrar.domainepp.update(
|
||||
/** @type {{clTrid: ?, item: ?}} */(params));
|
||||
|
||||
return xml.toString();
|
||||
};
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
{template .item}
|
||||
{@param item: ?}
|
||||
{@param? readonly: ?} /** passed through to field rendering. */
|
||||
{@param? allowSmd: ?} /** optional flag to allow sunrush smd applications. */
|
||||
{let $isEdit: isNonnull($item['domain:name']) /}
|
||||
<form name="item" class="{css('item')} {css('domain')}">
|
||||
<h1>
|
||||
|
@ -125,16 +124,6 @@
|
|||
{/if}
|
||||
<tr id="domain-hosts-footer"></tr>
|
||||
|
||||
{if isNonnull($item['launch:applicationID'])}
|
||||
<tr class="{css('section-lead')}">
|
||||
<th colspan="2"><h2>Sunrise domain application</h2></th>
|
||||
</tr>
|
||||
{call registry.soy.forms.inputFieldRowWithValue data="all"}
|
||||
{param label: 'Application ID' /}
|
||||
{param name: 'launch:applicationID' /}
|
||||
{param value: $item['launch:applicationID'] /}
|
||||
{/call}
|
||||
{/if}
|
||||
{if isNonnull($item['mark:mark'])}
|
||||
<tr>
|
||||
<td>Mark Data
|
||||
|
@ -143,13 +132,6 @@
|
|||
{$item['mark:mark']['keyValue']}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
{if $allowSmd}
|
||||
{call registry.soy.forms.textareaFieldRow data="all"}
|
||||
{param label: 'Encoded Signed Mark (base64 encoded, no header or footer)' /}
|
||||
{param name: 'smd:encodedSignedMark' /}
|
||||
{/call}
|
||||
{/if}
|
||||
{/if}
|
||||
</table>
|
||||
{if $isEdit}
|
||||
|
@ -183,7 +165,7 @@
|
|||
|
||||
/* XXX: Should change support for admin/tech. */
|
||||
/**
|
||||
* Update domain. Includes sunrush applicationId if present.
|
||||
* Update domain.
|
||||
*/
|
||||
{template .update}
|
||||
{@param? item: ?}
|
||||
|
@ -210,11 +192,6 @@
|
|||
<input type="hidden"
|
||||
name="domain:name"
|
||||
value="{$item['domain:name']['keyValue']}">
|
||||
{if isNonnull($item['launch:applicationID'])}
|
||||
<input type="hidden"
|
||||
name="launch:applicationID"
|
||||
value="{$item['launch:applicationID']['keyValue']}">
|
||||
{/if}
|
||||
</table>
|
||||
</form>
|
||||
{/template}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
{namespace registry.soy.registrar.domainepp}
|
||||
|
||||
|
||||
/* General Availability. Sunrush down below. */
|
||||
/* General Availability. */
|
||||
/**
|
||||
* Domain create request.
|
||||
*/
|
||||
|
@ -138,106 +138,3 @@
|
|||
{/if}
|
||||
</{$tagName}>
|
||||
{/template}
|
||||
|
||||
|
||||
/* Sunrush. */
|
||||
/**
|
||||
* Domain create request for sunrush.
|
||||
*/
|
||||
{template .createSunrush stricthtml="false"}
|
||||
{@param item: ?}
|
||||
{@param clTrid: ?}
|
||||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<create>
|
||||
<domain:create xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>{$item['domain:name']}</domain:name>
|
||||
<domain:period unit="y">{$item['domain:period']}</domain:period>
|
||||
{if isNonnull($item['domain:ns']['domain:hostObj'][0])}
|
||||
<domain:ns>
|
||||
<domain:hostObj>{$item['domain:ns']['domain:hostObj'][0]}</domain:hostObj>
|
||||
{if isNonnull($item['domain:ns']['domain:hostObj'][1])}
|
||||
<domain:hostObj>{$item['domain:ns']['domain:hostObj'][1]}</domain:hostObj>
|
||||
{/if}
|
||||
</domain:ns>
|
||||
{/if}
|
||||
<domain:registrant>{$item['domain:registrant']}</domain:registrant>
|
||||
<domain:contact type="admin">{$item['domain:contact'][0]}</domain:contact>
|
||||
<domain:contact type="tech">{$item['domain:contact'][1]}</domain:contact>
|
||||
<domain:authInfo>
|
||||
<domain:pw>{$item['domain:pw']}</domain:pw>
|
||||
</domain:authInfo>
|
||||
</domain:create>
|
||||
</create>
|
||||
<extension>
|
||||
<launch:create xmlns:launch="urn:ietf:params:xml:ns:launch-1.0">
|
||||
<launch:phase name="landrush">sunrise</launch:phase>
|
||||
{if isNonnull($item['smd:encodedSignedMark'])}
|
||||
<smd:encodedSignedMark xmlns:smd="urn:ietf:params:xml:ns:signedMark-1.0"
|
||||
encoding="base64">{$item['smd:encodedSignedMark']}</smd:encodedSignedMark>
|
||||
{/if}
|
||||
</launch:create>
|
||||
</extension>
|
||||
<clTRID>{$clTrid}</clTRID>
|
||||
</command>
|
||||
</epp>
|
||||
{/template}
|
||||
|
||||
|
||||
/**
|
||||
* Domain info request during sunrush.
|
||||
*/
|
||||
{template .infoSunrush stricthtml="false"}
|
||||
{@param name: ?}
|
||||
{@param applicationID: ?}
|
||||
{@param clTrid: ?}
|
||||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<info>
|
||||
<domain:info xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name hosts="all">{$name}</domain:name>
|
||||
</domain:info>
|
||||
</info>
|
||||
<extension>
|
||||
<launch:info
|
||||
xmlns:launch="urn:ietf:params:xml:ns:launch-1.0"
|
||||
includeMark="true">
|
||||
<launch:phase name="landrush">sunrise</launch:phase>
|
||||
<launch:applicationID>{$applicationID}</launch:applicationID>
|
||||
</launch:info>
|
||||
</extension>
|
||||
<clTRID>{$clTrid}</clTRID>
|
||||
</command>
|
||||
</epp>
|
||||
{/template}
|
||||
|
||||
|
||||
/**
|
||||
* Domain update request.
|
||||
*/
|
||||
{template .updateSunrush stricthtml="false"}
|
||||
{@param item: ?}
|
||||
{@param clTrid: ?}
|
||||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<update>
|
||||
<domain:update xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>{$item['domain:name']}</domain:name>
|
||||
<domain:chg>
|
||||
<domain:registrant>{$item['domain:registrant']}</domain:registrant>
|
||||
<domain:authInfo>
|
||||
<domain:pw>{$item['domain:authInfo']['domain:pw']}</domain:pw>
|
||||
</domain:authInfo>
|
||||
</domain:chg>
|
||||
</domain:update>
|
||||
</update>
|
||||
<extension>
|
||||
<launch:update xmlns:launch="urn:ietf:params:xml:ns:launch-1.0">
|
||||
<launch:phase>sunrise</launch:phase>
|
||||
<launch:applicationID>{$item['launch:applicationID']}</launch:applicationID>
|
||||
</launch:update>
|
||||
</extension>
|
||||
<clTRID>{$clTrid}</clTRID>
|
||||
</command>
|
||||
</epp>
|
||||
{/template}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue