You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discovered in #224, Delete, ProfileDelete, and DataDelete API results isSuccessful is true even though delete failed.
Evaluation of delete success is currently,
applyBatch(deleteOperation) !=null
This works just fine for update operations where the result is always ContentProviderResult(count=0) even if the update operation succeeded on one or more entities. However, for successful delete operations, the output is ContentProviderResult(count=1). If the entity being deleted is not found or delete failed, then count=0.
Solution
Change evaluation of delete success to,
applyBatch(deleteOperation)?.firstOrNull()?.count?.let { it >0 } ==true
This has the following side effect;
Previously, deleting already deleted entities will result in success=true
After this issue is fixed, deleting already deleted entities will result in success=false
The text was updated successfully, but these errors were encountered:
Problem
As discovered in #224,
Delete
,ProfileDelete
, andDataDelete
API results isSuccessful is true even though delete failed.Evaluation of delete success is currently,
This works just fine for update operations where the result is always
ContentProviderResult(count=0)
even if the update operation succeeded on one or more entities. However, for successful delete operations, the output isContentProviderResult(count=1)
. If the entity being deleted is not found or delete failed, thencount=0
.Solution
Change evaluation of delete success to,
This has the following side effect;
The text was updated successfully, but these errors were encountered: