improvement(attio): validate integration, fix event bug, add missing tool and triggers#3872
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Introduces four new Attio triggers (list created/updated/deleted and workspace member created) with corresponding payload extractors, and updates webhook processing to route those trigger IDs correctly; also fixes the Fixes Written by Cursor Bugbot for commit c4b9311. Configure here. |
Greptile SummaryThis PR addresses several gaps in the Attio integration: fixes a critical event-type mismatch ( Key changes:
Confidence Score: 5/5Safe to merge — all changes are additive or correct targeted bug fixes with no regressions identified. All four stated fixes are correctly implemented: the No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Attio Webhook POST] --> B{foundWebhook.provider === 'attio'}
B --> C{Check triggerId}
C --> D[attio_record_updated → extractAttioRecordUpdatedData]
C --> E[attio_record_merged → extractAttioRecordMergedData]
C --> F[attio_record_created/deleted → extractAttioRecordData]
C --> G[startsWith attio_note_ → extractAttioNoteData]
C --> H[startsWith attio_task_ → extractAttioTaskData]
C --> I[startsWith attio_comment_ → extractAttioCommentData]
C --> J[attio_list_entry_updated → extractAttioListEntryUpdatedData]
C --> K[attio_list_entry_created/deleted → extractAttioListEntryData]
C --> L[attio_list_created/updated/deleted → extractAttioListData NEW]
C --> M[attio_workspace_member_created → extractAttioWorkspaceMemberData NEW]
C --> N[fallthrough → extractAttioGenericData]
subgraph TRIGGER_EVENT_MAP
O[attio_note_updated] --> P["note.updated, note-content.updated FIXED"]
Q[attio_list_created] --> R["list.created NEW"]
S[attio_list_updated] --> T["list.updated NEW"]
U[attio_list_deleted] --> V["list.deleted NEW"]
W[attio_workspace_member_created] --> X["workspace-member.created NEW"]
end
Reviews (2): Last reviewed commit: "fix(attio): wire new trigger extractors ..." | Re-trigger Greptile |
…tool and triggers
Add extractAttioListData and extractAttioWorkspaceMemberData dispatch branches in utils.server.ts so the four new triggers return correct outputs instead of falling through to generic extraction. Also add missing .trim() on targetUrl in update_webhook. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
01e1af6 to
c4b9311
Compare
|
@greptile |
|
@cursor review |
Summary
note-content.updatedevent type was incorrect in trigger map (note.content-updated→note-content.updated)update_webhooktool:targetUrlandsubscriptionswere incorrectly required (API says optional for PATCH)Get Tasktool (attio_get_task) to complete task CRUDlist.created,list.updated,list.deleted,workspace-member.created.trim()to all ID params in URL paths across 25 tool filesType of Change
Testing
Tested manually
Checklist