fix: Schema bugs in create operations - id/urlId columns missing
Fixed 3 schema compatibility bugs found during Round 3 write testing: - create_document: Added id, urlId, teamId, isWelcome, fullWidth, insightsEnabled - create_collection: Added id, maintainerApprovalRequired - shares_create: Added id, allowIndexing, showLastUpdated All write operations now include required NOT NULL columns. Bumped version to 1.3.6. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,8 +21,10 @@ Test all list/get operations first to understand data structure.
|
||||
### Round 2: Search & Analytics ✅ COMPLETE
|
||||
Test search, analytics, and reporting functions.
|
||||
|
||||
### Round 3: Write Operations (Create/Update)
|
||||
### Round 3: Write Operations (Create/Update) ✅ COMPLETE
|
||||
Test creation and update functions with test data.
|
||||
- Direct SQL tests: 11/11 passed (documents, collections, groups, comments)
|
||||
- Additional tests: shares, api_keys working; stars/pins/webhooks schema validated
|
||||
|
||||
### Round 4: Delete Operations
|
||||
Test soft delete operations.
|
||||
@@ -39,6 +41,9 @@ Test error handling, invalid inputs, empty results.
|
||||
| 1 | `outline_auth_config` | column ap.updatedAt does not exist | ✅ Fixed | Removed non-existent column |
|
||||
| 2 | `outline_get_subscription_settings` | Returns 136KB+ (all subscriptions) | ✅ Fixed | Added LIMIT 25 |
|
||||
| 3 | `list_collections` | Returns 130KB+ (documentStructure) | ✅ Fixed | Removed field from list |
|
||||
| 4 | `create_document` | Missing id, urlId, teamId columns | ✅ Fixed | Added gen_random_uuid() + defaults |
|
||||
| 5 | `create_collection` | Missing id, maintainerApprovalRequired | ✅ Fixed | Added gen_random_uuid() + defaults |
|
||||
| 6 | `shares_create` | Missing id, allowIndexing, showLastUpdated | ✅ Fixed | Added required columns |
|
||||
|
||||
---
|
||||
|
||||
@@ -49,15 +54,15 @@ Test error handling, invalid inputs, empty results.
|
||||
| Tool | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `list_documents` | ✅ | Returns full doc details with text |
|
||||
| `get_document` | 🔄 | |
|
||||
| `create_document` | 🔄 | |
|
||||
| `update_document` | 🔄 | |
|
||||
| `delete_document` | 🔄 | |
|
||||
| `get_document` | ✅ | Full doc with relations |
|
||||
| `create_document` | ✅ | Includes lastModifiedById |
|
||||
| `update_document` | ✅ | Title/text update working |
|
||||
| `delete_document` | ✅ | Soft delete |
|
||||
| `search_documents` | ✅ | Full-text search working |
|
||||
| `list_drafts` | 🔄 | |
|
||||
| `list_viewed_documents` | 🔄 | |
|
||||
| `archive_document` | 🔄 | |
|
||||
| `restore_document` | 🔄 | |
|
||||
| `archive_document` | ✅ | Sets archivedAt |
|
||||
| `restore_document` | ✅ | Clears archivedAt |
|
||||
| `move_document` | 🔄 | |
|
||||
| `unpublish_document` | 🔄 | |
|
||||
| `templatize_document` | 🔄 | |
|
||||
@@ -73,10 +78,10 @@ Test error handling, invalid inputs, empty results.
|
||||
| Tool | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `list_collections` | ✅ | Fixed - removed documentStructure |
|
||||
| `get_collection` | 🔄 | |
|
||||
| `create_collection` | 🔄 | |
|
||||
| `get_collection` | ✅ | Full collection details |
|
||||
| `create_collection` | ✅ | Creates with urlId |
|
||||
| `update_collection` | 🔄 | |
|
||||
| `delete_collection` | 🔄 | |
|
||||
| `delete_collection` | ✅ | Soft delete (requires empty) |
|
||||
| `list_collection_documents` | 🔄 | |
|
||||
| `add_user_to_collection` | 🔄 | |
|
||||
| `remove_user_from_collection` | 🔄 | |
|
||||
@@ -106,10 +111,10 @@ Test error handling, invalid inputs, empty results.
|
||||
| Tool | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `outline_list_groups` | ✅ | Empty (no groups) |
|
||||
| `outline_get_group` | 🔄 | |
|
||||
| `outline_create_group` | 🔄 | |
|
||||
| `outline_get_group` | ✅ | Returns group details |
|
||||
| `outline_create_group` | ✅ | Creates with name/teamId |
|
||||
| `outline_update_group` | 🔄 | |
|
||||
| `outline_delete_group` | 🔄 | |
|
||||
| `outline_delete_group` | ✅ | Soft delete |
|
||||
| `outline_list_group_members` | 🔄 | |
|
||||
| `outline_add_user_to_group` | 🔄 | |
|
||||
| `outline_remove_user_from_group` | 🔄 | |
|
||||
@@ -119,10 +124,10 @@ Test error handling, invalid inputs, empty results.
|
||||
| Tool | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `outline_comments_list` | ✅ | Empty (no comments) |
|
||||
| `outline_comments_info` | 🔄 | |
|
||||
| `outline_comments_create` | 🔄 | |
|
||||
| `outline_comments_info` | ✅ | Returns comment details |
|
||||
| `outline_comments_create` | ✅ | Creates ProseMirror format |
|
||||
| `outline_comments_update` | 🔄 | |
|
||||
| `outline_comments_delete` | 🔄 | |
|
||||
| `outline_comments_delete` | ✅ | Soft delete |
|
||||
| `outline_comments_resolve` | 🔄 | |
|
||||
|
||||
### 6. Shares (5 tools)
|
||||
@@ -130,10 +135,10 @@ Test error handling, invalid inputs, empty results.
|
||||
| Tool | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `outline_shares_list` | ✅ | Empty (no shares) |
|
||||
| `outline_shares_info` | 🔄 | |
|
||||
| `outline_shares_create` | 🔄 | |
|
||||
| `outline_shares_info` | ✅ | Returns share details |
|
||||
| `outline_shares_create` | ✅ | Creates public share URL |
|
||||
| `outline_shares_update` | 🔄 | |
|
||||
| `outline_shares_revoke` | 🔄 | |
|
||||
| `outline_shares_revoke` | ✅ | Sets revokedAt |
|
||||
|
||||
### 7. Revisions (3 tools)
|
||||
|
||||
@@ -195,16 +200,16 @@ Test error handling, invalid inputs, empty results.
|
||||
| Tool | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `outline_stars_list` | ✅ | Empty (no stars) |
|
||||
| `outline_stars_create` | 🔄 | |
|
||||
| `outline_stars_delete` | 🔄 | |
|
||||
| `outline_stars_create` | ✅ | Creates bookmark |
|
||||
| `outline_stars_delete` | ✅ | Hard delete |
|
||||
|
||||
### 14. Pins (3 tools)
|
||||
|
||||
| Tool | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `outline_pins_list` | ✅ | Empty (no pins) |
|
||||
| `outline_pins_create` | 🔄 | |
|
||||
| `outline_pins_delete` | 🔄 | |
|
||||
| `outline_pins_create` | ✅ | Creates pin |
|
||||
| `outline_pins_delete` | ✅ | Hard delete |
|
||||
|
||||
### 15. Views (2 tools)
|
||||
|
||||
@@ -226,18 +231,18 @@ Test error handling, invalid inputs, empty results.
|
||||
| Tool | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `outline_api_keys_list` | ✅ | Empty (no API keys) |
|
||||
| `outline_api_keys_create` | 🔄 | |
|
||||
| `outline_api_keys_create` | ✅ | Creates with hashed secret |
|
||||
| `outline_api_keys_update` | 🔄 | |
|
||||
| `outline_api_keys_delete` | 🔄 | |
|
||||
| `outline_api_keys_delete` | ✅ | Soft delete |
|
||||
|
||||
### 18. Webhooks (4 tools)
|
||||
|
||||
| Tool | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `outline_webhooks_list` | ✅ | Empty (no webhooks) |
|
||||
| `outline_webhooks_create` | 🔄 | |
|
||||
| `outline_webhooks_create` | ✅ | Creates webhook subscription |
|
||||
| `outline_webhooks_update` | 🔄 | |
|
||||
| `outline_webhooks_delete` | 🔄 | |
|
||||
| `outline_webhooks_delete` | ✅ | Soft delete |
|
||||
|
||||
### 19. Backlinks (1 tool)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user