google-nomulus/java/google/registry
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
..
backup Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
bigquery Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
billing Make open source build pass 2016-06-14 16:33:56 -04:00
braintree Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
config Add configurable escrow file import GCS bucket 2016-06-06 13:31:10 -04:00
cron Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
dns Cleanup DnsUpdateWriter 2016-06-14 16:33:26 -04:00
eclipse Integrate: Eclipse file generation script 2016-05-16 18:39:45 -04:00
env Add MR to expand billing events into OneTimes 2016-06-14 16:31:00 -04:00
export Delete the useless MapreduceAction interface 2016-05-18 13:09:40 -04:00
flows Rename Response in the epp model to EppResponse 2016-06-14 16:30:26 -04:00
gcs Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
groups Migrate @Provides(type=SET_VALUES) to @ElementsIntoSet 2016-05-13 23:19:48 -04:00
idn Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
keyring/api Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
loadtest Make open source build pass 2016-06-14 16:33:56 -04:00
mapreduce Add scaffolding of deeplinking verification [] 2016-06-06 12:11:59 -04:00
model Fix entry-overwriting bug in PremiumList.saveAndUpdateEntries() 2016-06-27 15:53:34 -04:00
module Add MR to expand billing events into OneTimes 2016-06-14 16:31:00 -04:00
monitoring/whitebox Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
pricing Rename PricingEngine to PremiumPricingEngine 2016-06-14 16:29:52 -04:00
rdap Registrant of a domain can never be null 2016-05-18 13:10:18 -04:00
rde Add RdeParser 2016-06-06 13:31:49 -04:00
request Add MR to expand billing events into OneTimes 2016-06-14 16:31:00 -04:00
security Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
storage/drive Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
tldconfig/idn Prefer re2 over java.util.regex 2016-05-13 23:16:07 -04:00
tmch Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
tools Make open source build pass 2016-06-14 16:33:56 -04:00
ui Rename Response in the epp model to EppResponse 2016-06-14 16:30:26 -04:00
util Remove "catch (FooException e); throwIfInstanceOf(e, FooException.class)" and just let the FooException propagate naturally. 2016-06-14 16:31:47 -04:00
whois Remove unused and misused methods from EppResourceUtils and DomainBase. 2016-05-16 18:39:23 -04:00
xjc Fix paths in a few places 2016-05-17 13:52:27 -04:00
xml Add regtype EPP extension XSD 2016-05-27 12:46:40 -04:00
BUILD Make new source tree visible from internal release files 2016-05-13 23:16:01 -04:00
repositories.bzl Add RdeParser 2016-06-06 13:31:49 -04:00