agent-substrate / agent-substrate/substrate

API preconditions should be enforced at the API layer

Offen
#1,225 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area/api area/api-machinery kind/feature
Vorherrschende Sprache
Go
Sterne
1.8k
Forks
316
Ø Merge
2 T. 43 Min.
Gemergte PRs (30 T.)
287

Beschreibung

## Expected Behavior

Preconditions for custom APIs should not be required. For example `Delete` should not fail if there is a write conflict.

## Actual Behavior

Right now preconditions are enforced at the storage layer, so any API that needs to update a resource have preconditions automatically enforced.

## Specifications

We should make preconditions optional at the storage layer, so that custom APIs have the flexibility to skip preconditions if desired.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.