Skip to content

Conversation

@michelle0927
Copy link
Collaborator

@michelle0927 michelle0927 commented Aug 14, 2025

This PR addresses the specific components identified in issue #17693.

I'm leaving the original issue under Prioritized so that it can continue to be tracked internally.

Summary by CodeRabbit

  • New Features
    • Calendly: Create Scheduling Link now lets you specify an Owner (Event Type) and provides a clear error if it’s missing.
    • Google Calendar: Quick Add Event validates that a calendar is selected, with an improved error message when not set.
  • Chores
    • Version bumps for Calendly and Google Calendar actions/packages.

@michelle0927 michelle0927 self-assigned this Aug 14, 2025
@vercel
Copy link

vercel bot commented Aug 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored Aug 14, 2025 5:02pm
pipedream-docs ⬜️ Ignored Aug 14, 2025 5:02pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored Aug 14, 2025 5:02pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 14, 2025

Walkthrough

Adds required input validation to two actions (Calendly Create Scheduling Link and Google Calendar Quick Add Event), updates request parameters for Calendly, and bumps versions for both actions and their packages. No other logic changes.

Changes

Cohort / File(s) Summary of changes
Calendly v2 Action: Create Scheduling Link
components/calendly_v2/actions/create-scheduling-link/create-scheduling-link.mjs
Added required Owner prop; enforced runtime check throwing ConfigurationError when missing; included owner_type = "EventType" in request params; bumped action version to 0.0.7.
Calendly v2 Package
components/calendly_v2/package.json
Version bump from 1.3.1 to 1.3.2.
Google Calendar Action: Quick Add Event
components/google_calendar/actions/quick-add-event/quick-add-event.mjs
Imported ConfigurationError; added runtime validation for calendarId; bumped action version to 0.1.8; no other flow changes.
Google Calendar Package
components/google_calendar/package.json
Version bump from 0.5.10 to 0.5.11.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant Action as Calendly Create Scheduling Link
  participant API as Calendly API

  User->>Action: Run with Owner, other inputs
  Action->>Action: Validate Owner (required)
  Action->>API: POST /scheduling_links { owner, owner_type=EventType, ... }
  API-->>Action: Response
  Action-->>User: Summary + API response
Loading
sequenceDiagram
  participant User
  participant Action as Google Calendar Quick Add
  participant GC as Google Calendar API

  User->>Action: Run with calendarId, text, attendees?
  Action->>Action: Validate calendarId (required)
  Action->>GC: quickAddEvent(calendarId, text)
  GC-->>Action: Event
  Action->>GC: (optional) update attendees
  GC-->>Action: Updated Event
  Action-->>User: Result
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

I thump my paws—new checks in place,
No missing fields escape the chase.
Calendars align, links spring to life,
Errors caught before they bite.
With version bumps we onward hop—
A tidy warren, top to top. 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch google-calendar-calendly-updates

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
components/google_calendar/actions/quick-add-event/quick-add-event.mjs (1)

32-34: Strengthen calendarId validation to catch blank strings and non-strings

Current check misses cases like an empty string. Recommend a stricter guard.

Apply this diff:

-    if (!this.calendarId) {
-      throw new ConfigurationError("Calendar ID prop is missing or empty. Please provide a valid string representing the calendar's identifier. For example, 'primary' or an email address such as 'user@example.com'");
-    }
+    if (typeof this.calendarId !== "string" || !this.calendarId.trim()) {
+      throw new ConfigurationError("Missing required prop: calendarId. Provide a valid calendar ID like 'primary' or 'user@example.com'.");
+    }

Optional: If you want to be more permissive, default to "primary" when unset, instead of throwing. If you want that, I can draft the change.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these settings in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 5d27ebe and 67b35ff.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (4)
  • components/calendly_v2/actions/create-scheduling-link/create-scheduling-link.mjs (2 hunks)
  • components/calendly_v2/package.json (1 hunks)
  • components/google_calendar/actions/quick-add-event/quick-add-event.mjs (2 hunks)
  • components/google_calendar/package.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Lint Code Base
  • GitHub Check: pnpm publish
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
🔇 Additional comments (6)
components/calendly_v2/package.json (1)

3-3: Version bump looks good

Patch version increment aligns with non-breaking validation changes elsewhere in the package.

components/google_calendar/package.json (1)

3-3: Version bump approved

Patch release is appropriate for adding validation without behavior changes to existing actions.

components/google_calendar/actions/quick-add-event/quick-add-event.mjs (2)

3-3: Importing ConfigurationError is appropriate

Correct dependency and import path for throwing user-facing configuration errors.


9-9: Action version bump approved

Increment to 0.1.8 accurately reflects the added validation without API changes.

components/calendly_v2/actions/create-scheduling-link/create-scheduling-link.mjs (2)

2-2: Importing ConfigurationError is correct

Prepares the action to surface misconfiguration clearly to users.


8-8: Action version bump approved

0.0.7 is appropriate for the added validation and params tweak.

Copy link
Collaborator

@GTFalcao GTFalcao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@GTFalcao GTFalcao moved this from Ready for PR Review to Ready for QA in Component (Source and Action) Backlog Aug 14, 2025
@vunguyenhung vunguyenhung moved this from Ready for QA to Ready for Release in Component (Source and Action) Backlog Aug 15, 2025
@vunguyenhung
Copy link
Collaborator

Hi everyone, all test cases are passed! Ready for release!

Test report
https://vunguyenhung.notion.site/Google-Calendar-Calendly-add-configuration-errors-24fbf548bb5e81ac968cd20e80d9113a

@vunguyenhung vunguyenhung merged commit a758b23 into master Aug 15, 2025
11 checks passed
@vunguyenhung vunguyenhung deleted the google-calendar-calendly-updates branch August 15, 2025 00:37
@github-project-automation github-project-automation bot moved this from Ready for Release to Done in Component (Source and Action) Backlog Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants