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:
@@ -43,6 +43,9 @@ func (c *hookController) NewRecord() any {
|
||||
}
|
||||
return &crudRow{}
|
||||
}
|
||||
func (c *hookController) ListExtendQuery(ctx context.Context, db *gorm.DB) *gorm.DB {
|
||||
return c.FormExtendQuery(ctx, db)
|
||||
}
|
||||
func (c *hookController) FormExtendQuery(ctx context.Context, db *gorm.DB) *gorm.DB {
|
||||
if c != nil {
|
||||
c.queries.Add(1)
|
||||
|
||||
Reference in New Issue
Block a user