WIPACrepo / file_catalog

Store file metadata information in a file catalog
MIT License
1 stars 4 forks source link

Add "Remove Location" Route #116

Closed ric-evans closed 2 years ago

ric-evans commented 3 years ago

Adds /api/files/{uuid}/actions/remove_location:POST with a single location argument, and required keys, site and path, which does the following:

  1. Removes the locations entry
  2. If the record now has no locations entries, silently delete the record

closes https://github.com/WIPACrepo/file_catalog/issues/109

ric-evans commented 3 years ago

All these commits are from branching from https://github.com/WIPACrepo/file_catalog/pull/110.

Actual commits start here:

lgtm-com[bot] commented 3 years ago

This pull request introduces 1 alert and fixes 1 when merging 212ad82f8f8aecc9fa53c1627ec69bb5437b295f into fe141d68c784fad75e1f8aae6a9187ba717e6c62 - view on LGTM.com

new alerts:

fixed alerts:

lgtm-com[bot] commented 3 years ago

This pull request introduces 1 alert and fixes 1 when merging b01274a74a582e0240985619dc2e76e65317a52b into b58cd8bd479fb3ce7777d8a883f13100b1401e4c - view on LGTM.com

new alerts:

fixed alerts:

lgtm-com[bot] commented 2 years ago

This pull request fixes 1 alert when merging 8ac67147aa4f46400efd0912f86325af162f1864 into b58cd8bd479fb3ce7777d8a883f13100b1401e4c - view on LGTM.com

fixed alerts: