Skip to content

show snapshots for deleted resources #1234

@keithmanville

Description

@keithmanville

#846 and #847 made it possible to access deleted resources from the Dioptra REST API. Resources accessed by directly by id are now returned instead of returning an error. It should also be possible to view the snapshot history of the deleted resource.

Update the following endpoints to return snapshots. Ensure the deleted bool is being set properly in the responses.
/<resource>/{id}/snapshots
/<resource>/{id}/snapshots/{snapshotId}

The showDeleted flag should NOT be used for the "get all" endpoint since it is nested under /resource/{id}.

This should only be implemented for Resources that have a repository implemented (queue/plugin-param/experiment.

New tests should be written to ensure snapshots of a deleted resource can be retrieved.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions