Page MenuHomePhabricator

Add parameters to wbcreateclaim and wbsetclaim API modules to prevent creating duplicate claims
Closed, DeclinedPublic

Description

Right now there is no way to prevent creating a duplicate claim with the wbcreateclaim or wbsetclaim APIs other than to manually check if the claim already exists beforehand. There should be a parameter like 'unique=true" that only creates the claim if it doesn't already exist for the given item.


Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=0

Details

Reference
bz73600

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:53 AM
bzimport set Reference to bz73600.
bzimport added a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).Dec 1 2014, 2:34 PM

We've discussed this. The result is that it really depends on the use case of the client how and what to merge or not merge or accept or reject. Depending on the particular case unique can mean different expected behaviors. So we'd like to let the particular client handle this and implement their logic for their use case.