feat(preset): add PATCH method to Outlook preset for Graph API updates#1478
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdded an explicit HTTP PATCH allow rule to the Outlook preset for the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
✨ Thanks for submitting this fix, which proposes a way to add PATCH method support to the Outlook network policy preset for Microsoft Graph API operations. Possibly related open issues: |
|
I attempted to port this branch across the JS→TS migration and merge the latest Please start with: git fetch origin
git merge origin/main
npx tsx scripts/ts-migration-assist.ts --base origin/main --write
npm run build:cli
npm run typecheck:cli
npm run lint
npm test |
|
I retried the automated JS→TS migration port, but this branch still needs manual follow-up after merging Please start with: git fetch origin
git merge origin/main
npx tsx scripts/ts-migration-assist.ts --base origin/main --write
npm run build:cli
npm run typecheck:cli
npm run lint
npm test |
77aaf9c to
66cfc54
Compare
|
Friendly ping — approval came through on the 15th but CI hasn't run. Could a maintainer kick off the workflows when you get a chance? Thanks! |
|
Sorry for the delay on this one — thanks for the ping and for your patience. Could you resolve the current merge conflicts and complete the TS migration (the |
Microsoft Graph API uses PATCH for standard email and calendar operations: marking messages as read, flagging for follow-up, and updating drafts. The Outlook preset currently only allows GET and POST on graph.microsoft.com, blocking these workflows inside sandboxes. Add PATCH rule to graph.microsoft.com and a regression test. Fixes NVIDIA#1477 Signed-off-by: Steven Obiajulu <[email protected]>
aaf6141 to
2ad58e7
Compare
Summary
Add PATCH method support to the
graph.microsoft.comendpoint in the Outlook network policy preset.Microsoft Graph API uses PATCH for standard email and calendar operations — marking messages as read, flagging for follow-up, and updating drafts. The current preset only allows GET and POST, which blocks these workflows inside sandboxes.
Fixes #1477
Changes
nemoclaw-blueprint/policies/presets/outlook.yaml: Addallow: { method: PATCH, path: "/**" }tograph.microsoft.com(1 line)test/policies.test.js: Add regression test asserting PATCH is allowed on graph.microsoft.com in the Outlook preset (8 lines)Scope
graph.microsoft.com— the other endpoints in the preset do not need PATCHTesting
npx vitest run)Summary by CodeRabbit
Signed-off-by: Steven Obiajulu [email protected]