google-nomulus/java/google/registry/model
nickfelt 6466ad51f6 Fix entry-overwriting bug in PremiumList.saveAndUpdateEntries()
The saveAndUpdateEntries() method was always saving entries under the current entity's revisionKey, and then always deleting them under the old entity's revisionKey - even if the revisionKeys were the same (i.e., we didn't change any entry content in the list, in which case the builder's build() method doesn't create a new revisionKey).

This would have caused the existing entries to be unnecessarily resaved, and (worse) then caused those same existing entries to all be deleted.

This fixes the bug by only resaving entries when the revisionKey has changed.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=124873871
2016-06-27 15:53:34 -04:00
..
annotations Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
billing Rename BillingEvent.OneTime.cancellationTargetId 2016-05-27 12:45:19 -04:00
common Add MR to expand billing events into OneTimes 2016-06-14 16:31:00 -04:00
contact Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
domain Remove getOnlyElement() 2016-06-14 16:31:15 -04:00
eppcommon Add simple registration type command extension for domain creates 2016-05-27 12:50:46 -04:00
eppinput Add domain check and update registration type extensions 2016-05-27 12:57:31 -04:00
eppoutput Rename Response in the epp model to EppResponse 2016-06-14 16:30:26 -04:00
export Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
host Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
index Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
mark Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
ofy Make the new datastore testing proxy actually store the requests 2016-06-06 13:31:16 -04:00
poll Rename Response in the epp model to EppResponse 2016-06-14 16:30:26 -04:00
pricing Rename PricingEngine to PremiumPricingEngine 2016-06-14 16:29:52 -04:00
rde Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
registrar Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
registry Fix entry-overwriting bug in PremiumList.saveAndUpdateEntries() 2016-06-27 15:53:34 -04:00
reporting Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
server Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
smd Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
tmch Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
transfer Rename Response in the epp model to EppResponse 2016-06-14 16:30:26 -04:00
translators Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
AbstractFieldExposer.java Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
BackupGroupRoot.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
BUILD Prefer re2 over java.util.regex 2016-05-13 23:16:07 -04:00
Buildable.java Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
CreateAutoTimestamp.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
EntityClasses.java Add global-scoped (and other type-scoped) cursors 2016-05-13 23:19:34 -04:00
EppResource.java Rename Response in the epp model to EppResponse 2016-06-14 16:30:26 -04:00
EppResourceUtils.java Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
generate_field_exposer.sh Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
generate_field_exposer_registry.sh Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ImmutableObject.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
Jsonifiable.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
JsonMapBuilder.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ModelUtils.java Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
package-info.java Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
RoidSuffixes.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
SchemaVersion.java Bring open source build closer to passing 2016-05-14 01:29:22 -04:00
UpdateAutoTimestamp.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00