-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[BUG] Microsoft Calendar using Get Busy/Free action throwing error #17911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
WalkthroughThe changes introduce a utility for parsing input arrays, update the "Get Schedule" action to use this utility and validate its input, and increment version numbers in both the action and package files. The action now throws a configuration error for invalid or empty input and uses the parsed array in its API request. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant GetScheduleAction
participant Utils
participant MicrosoftGraphAPI
User->>GetScheduleAction: Provide schedules input
GetScheduleAction->>Utils: parseArray(schedules)
Utils-->>GetScheduleAction: Parsed schedules array
GetScheduleAction->>GetScheduleAction: Validate parsed schedules
alt Invalid or empty
GetScheduleAction-->>User: Throw ConfigurationError
else Valid
GetScheduleAction->>MicrosoftGraphAPI: POST /me/calendar/getSchedule (parsed schedules)
MicrosoftGraphAPI-->>GetScheduleAction: Response
GetScheduleAction-->>User: Return result
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes found. Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (3)📚 Learning: when exporting a summary message in the `run` method of an action, ensure the message is correctly f...
Applied to files:
📚 Learning: in overledger actions, `inputparameters` and `outputparameters` are defined as `string[]`, and are p...
Applied to files:
📚 Learning: in overledger actions, the `inputparameters` property is an array of objects and should be passed di...
Applied to files:
🔇 Additional comments (9)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Moving to QA
One comment/question: I wonder if the schedules
prop could be improved to use async options by using this endpoint: https://learn.microsoft.com/en-us/graph/api/user-list
Hi @michelle0927 actually I was testing this endpoint and seems like is not working on Microsoft side. Here it is a test I made from the graphql explorer itself ![]() This is the grapql explorer tool https://developer.microsoft.com/en-us/graph/graph-explorer I've also tested with
The error was:
|
WHY
Resolves #17492
Summary by CodeRabbit
New Features
Enhancements
Chores