You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spp_api_v2: If-Match is optional on PUT/PATCH although api-design.md requires it #561
docs/principles/api-design.md says PUT and PATCH requireIf-Match for optimistic locking. Every v2 write
endpoint treats it as optional (if if_match: ...), so a client that omits it can silently overwrite a concurrent
change:
Decide between (a) enforcing the principle (428 Precondition Required when If-Match is missing — a breaking change
for existing clients, e.g. the OpenFn adaptor does not send it by default), or (b) amending the principle to "optional,
checked when present". Either way, add a shared "current version of a record" helper so the microsecond versionId
format cannot drift again (the ProgramMembership PUT drifted to float seconds and always 409'd, fixed in PR #555).
Activity