agent-substrate / agent-substrate/substrate

API preconditions should be enforced at the API layer

Aperta
#1,225 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area/api area/api-machinery kind/feature
Lingua principale
Go
Stelle
1.8k
Fork
316
Merge medio
2g 43m
PR unite (30g)
287

Descrizione

## 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.