test(09-05): add failing tests for deterministic bulk delete
- Empty selections are 422 and duplicates run once in primary-key order - A completed retry and an all-absent selection delete nothing and skip hooks - Mixed, hook, cancel, and concurrent requests keep the batch atomic
This commit is contained in:
@@ -168,6 +168,12 @@ func (s CRUDService) Delete(ctx context.Context, cc *CompiledController, id any)
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// BulkDelete removes a normalized id set in one transaction.
|
||||
// The deterministic lifecycle is added with the bulk route.
|
||||
func (s CRUDService) BulkDelete(ctx context.Context, cc *CompiledController, in BulkDeleteInput) (BulkResult, error) {
|
||||
return BulkResult{}, errors.New("cabana: bulk delete is not implemented")
|
||||
}
|
||||
|
||||
// Show loads one scoped record. Missing and out-of-scope ids are identical.
|
||||
func (s CRUDService) Show(ctx context.Context, cc *CompiledController, id any) (map[string]any, error) {
|
||||
if s.DB == nil {
|
||||
|
||||
Reference in New Issue
Block a user