b2share
b2share copied to clipboard
UI/API: bad handling of deleted record versions
Problems: When a record version is deleted the UI does not update correctly:
- [ ] If the last version is deleted the previous version still warn that it is not the last version.
- [ ] If the last version is deleted, it is not possible to create a new version via the UI. Via the API it is possible to use the last non-deleted version.
- [ ] When an intermediate version is selected in the dropdown it shows a 410 error message (which is normal) but doesn't show the dropdown to access the other versions.
Solution:
Modify the /versions endpoint in order to return the PIDs statuses. Use the information appropriately in the UI.