feat: revision-check the upsert, MCP and admin writes
- POST /materials locks the matched row and answers 409 to a stale revision when it updates; a create ignores revision - bm_manage_save_material and bm_manage_update_material take revision - /bmadmin saves bump the revision on content changes (not checked) - document revisions and the 409 in the README
This commit is contained in:
@@ -254,7 +254,7 @@ var manageTables = map[string]struct {
|
||||
}
|
||||
|
||||
// materialBodyKeys are the keys POST and PUT /materials read (materialInput).
|
||||
var materialBodyKeys = []string{"course_id", "meeting_id", "title", "type", "body", "source", "url", "published_at", "tags", "is_private", "author_user_id", "share_user_ids"}
|
||||
var materialBodyKeys = []string{"course_id", "meeting_id", "title", "type", "body", "source", "url", "published_at", "tags", "is_private", "author_user_id", "share_user_ids", "revision"}
|
||||
|
||||
// accessBodyKeys are the body keys of each material access tool, exactly,
|
||||
// and whether each is optional.
|
||||
|
||||
Reference in New Issue
Block a user