google-nomulus/javatests/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 Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
billing Make open source build pass 2016-06-14 16:33:56 -04:00
config Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
cron Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
dns Make dnsupdate go back to using dnsjava 2.x 2016-05-16 18:40:31 -04:00
export Typo in comment 2016-05-16 18:40:40 -04:00
flows Make open source build pass 2016-06-14 16:33:56 -04:00
groups Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
mapreduce/inputs Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
model Fix entry-overwriting bug in PremiumList.saveAndUpdateEntries() 2016-06-27 15:53:34 -04:00
module Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
monitoring/whitebox Don't throw entity integrity errors for renamed hosts 2016-05-16 18:40:19 -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 Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
server Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
storage/drive Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
testing Rename Response in the epp model to EppResponse 2016-06-14 16:30:26 -04:00
tldconfig/idn Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
tmch Registrant of a domain can never be null 2016-05-18 13:10:18 -04:00
tools Make open source build pass 2016-06-14 16:33:56 -04:00
ui Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
util Remove python scripts from third_party/.../util 2016-05-13 23:18:35 -04:00
whois Typo in comment 2016-05-16 18:40:40 -04:00
xjc Prefer re2 over java.util.regex 2016-05-13 23:16:07 -04:00
xml Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00