google-nomulus/javatests/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
..
billing Rename BillingEvent.OneTime.cancellationTargetId 2016-05-27 12:45:19 -04:00
common Follow-up changes to TimeOfYear from [] 2016-05-27 12:56:09 -04:00
contact Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
domain Rename Response in the epp model to EppResponse 2016-06-14 16:30:26 -04:00
eppoutput Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
export Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
host Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
index Typo in comment 2016-05-16 18:40:40 -04:00
mark Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ofy Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
poll Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
rde Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
registrar Typo in comment 2016-05-16 18:40:40 -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 Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
smd Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
testdata mv com/google/domain/registry google/registry 2016-05-13 18:55:08 -04:00
tmch Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
transfer Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
translators Rename Response in the epp model to EppResponse 2016-06-14 16:30:26 -04:00
BUILD Add schema.txt back to open source drop 2016-05-16 20:16:28 -04:00
CreateAutoTimestampTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
EntityClassesTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
EntityTestCase.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
EppResourceUtilsTest.java Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
ImmutableObjectTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ModelUtilsTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ResourceCommandTestCase.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
RoidSuffixesTest.java Extract premium pricing to a PricingEngine interface 2016-05-13 23:19:40 -04:00
schema.txt Make open source build pass 2016-06-14 16:33:56 -04:00
SchemaVersionTest.java Make open source build pass 2016-06-14 16:33:56 -04:00
UpdateAutoTimestampTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00