[WIP] Update duplicate handling

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.


[WIP] Update duplicate handling

  • prevent duplicate list names
  • when duplicate lists or entries are created, pretend to succeed and return the id of the existing row instead of throwing an error
  • in the case of lists, also update it if the description is different

Also remove some old schema updates to avoid autodetection conflicts.

This obsoletes the message 'readinglists-db-error-duplicate-page' but
it isn't removed as a later patch will be able to reuse the translations.

Bug: T184680
Change-Id: I61c8176cf5913c53c5291872432fafa7415414d3


TgrAuthored on Feb 20 2018, 1:13 AM

Commit No Longer Exists

This commit no longer exists in the repository.