Skip to content

Integration cal.com 5 basic apis#219

Merged
jiwei-aipolabs merged 3 commits intomainfrom
app/cal_com
May 1, 2025
Merged

Integration cal.com 5 basic apis#219
jiwei-aipolabs merged 3 commits intomainfrom
app/cal_com

Conversation

@Justwannasleep
Copy link
Contributor

@Justwannasleep Justwannasleep commented Apr 17, 2025

Summary

General introduction about this PR and this APP

APP_URL: https://cal.com/
APP_API_DOCS_URL: https://cal.com/docs/api-reference/v1/schedules/

Integrated API

CAL_COM__GET_SCHEDULES
CAL_COM__CREATE_SCHEDULE
CAL_COM__GET_SCHEDULE
CAL_COM__UPDATE_SCHEDULE
CAL_COM__DELETE_SCHEDULE

Fuzzy Tests

CAL_COM__GET_SCHEDULES

docker compose exec runner python -m aipolabs.cli.aipolabs fuzzy-test-function-execution --aipolabs-api-key 5380c46b933a55a3f00f4738f96c898c5fc123ad844d959d48e38fb63f65237a --linked-account-owner-id linhao3370@foxmail.com --function-name CAL_COM__GET_SCHEDULES --prompt "get my schedules"

CAL_COM__CREATE_SCHEDULE

docker compose exec runner python -m aipolabs.cli.aipolabs fuzzy-test-function-execution --aipolabs-api-key 5380c46b933a55a3f00f4738f96c898c5fc123ad844d959d48e38fb63f65237a --linked-account-owner-id linhao3370@foxmail.com --function-name CAL_COM__CREATE_SCHEDULE --prompt "create new schedule name is data2025 , timezone is Asia/Shanghai"

CAL_COM__GET_SCHEDULE

docker compose exec runner python -m aipolabs.cli.aipolabs fuzzy-test-function-execution --aipolabs-api-key 5380c46b933a55a3f00f4738f96c898c5fc123ad844d959d48e38fb63f65237a --linked-account-owner-id linhao3370@foxmail.com --function-name CAL_COM__GET_SCHEDULE --prompt "get 613174 schedules"

CAL_COM__UPDATE_SCHEDULE

docker compose exec runner python -m aipolabs.cli.aipolabs fuzzy-test-function-execution --aipolabs-api-key 5380c46b933a55a3f00f4738f96c898c5fc123ad844d959d48e38fb63f65237a --linked-account-owner-id linhao3370@foxmail.com --function-name CAL_COM__UPDATE_SCHEDULE --prompt "update 613174 schedules, name is new_schedules"

CAL_COM__DELETE_SCHEDULE

docker compose exec runner python -m aipolabs.cli.aipolabs fuzzy-test-function-execution --aipolabs-api-key 5380c46b933a55a3f00f4738f96c898c5fc123ad844d959d48e38fb63f65237a --linked-account-owner-id linhao3370@foxmail.com --function-name CAL_COM__DELETE_SCHEDULE --prompt "del 613174 schedule"

Images

CAL_COM__GET_SCHEDULES

image

CAL_COM__CREATE_SCHEDULE

image

CAL_COM__GET_SCHEDULE

image

CAL_COM__UPDATE_SCHEDULE

image

CAL_COM__DELETE_SCHEDULE

image

Summary by CodeRabbit

  • New Features
    • Introduced CAL_COM app configuration with metadata, security settings, and public visibility.
    • Added scheduling management features, including viewing, creating, updating, and deleting schedules through Cal.com’s API.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Apr 17, 2025

Walkthrough

A new integration for the CAL_COM application has been introduced, consisting of two JSON configuration files. The app.json file defines the app's metadata, security scheme, categories, and visibility. The functions.json file specifies six REST API endpoints for managing schedules, including operations to create, retrieve, update, and delete schedules using Cal.com's API. Each function is documented with its HTTP method, endpoint, required parameters, and expected request/response formats.

Changes

File(s) Change Summary
apps/cal_com/app.json Added new app configuration file specifying CAL_COM metadata, provider, version, security scheme, categories, and status.
apps/cal_com/functions.json Added new functions configuration file defining six REST API endpoints for schedule management (CRUD operations) on Cal.com.

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant CAL_COM_App
    participant CalComAPI

    Client->>CAL_COM_App: Request to manage schedules (CRUD)
    CAL_COM_App->>CalComAPI: Send HTTP request (GET/POST/PATCH/DELETE) to /v1/schedules
    CalComAPI-->>CAL_COM_App: Respond with schedule data or status
    CAL_COM_App-->>Client: Return API response
Loading

Suggested reviewers

  • thisisfixer

Poem

In the warren of code, a new path appears,
CAL_COM hops in, dispelling old fears.
Schedules to fetch, to make, and to mend,
With endpoints aplenty, the meetings extend.
JSON in paw, the rabbit delights—
“Let’s manage your time, from mornings to nights!”
🐇✨


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 03ba5c1 and dbdd7a4.

📒 Files selected for processing (1)
  • apps/cal_com/app.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/cal_com/app.json
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Format & Lint
  • GitHub Check: test

Note

🎁 Summarized by CodeRabbit Free

Your organization has reached its limit of developer seats under the Pro Plan. For new users, CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please add seats to your subscription by visiting https://app.coderabbit.ai/login.If you believe this is a mistake and have available seats, please assign one to the pull request author through the subscription management page using the link above.

🪧 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.
    • Generate unit testing code for this file.
    • 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. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • 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 src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

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

Documentation and Community

  • 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

@thisisfixer thisisfixer left a comment

Choose a reason for hiding this comment

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

see comments

@@ -0,0 +1,233 @@
[
{
"name": "CAL_COM__GET_SCHEDULES",
Copy link
Contributor

Choose a reason for hiding this comment

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

where is parameters field?
even if the function takes no input arguments you should still have the proper format

@jiwei-aipolabs jiwei-aipolabs enabled auto-merge (squash) May 1, 2025 16:11
@jiwei-aipolabs jiwei-aipolabs dismissed thisisfixer’s stale review May 1, 2025 16:11

merge first then fix it

@jiwei-aipolabs jiwei-aipolabs merged commit 2cd6ced into main May 1, 2025
3 of 4 checks passed
@jiwei-aipolabs jiwei-aipolabs deleted the app/cal_com branch May 1, 2025 16:11
@coderabbitai coderabbitai bot mentioned this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants