Skip to content

API: Respect the 'If-Unmodified-Since' for delete endpoints

username-removed-2900 requested to merge api-delete-respect-headers into master

What does this MR do?

Respect the If-Unmodified-Since header when deleting a resource via the API. When passing the header and the resource was updated meanwhile, a 412 error is raised.

However, this cannot be implemented for all endpoints because not every resource has an updated_at field. This includes:

  • Branches
  • Tags
  • Variables

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Edited by username-removed-2900

Merge request reports