Skip to content

chore: migrate api/availability/calendar to App Router#19099

Merged
hbjORbj merged 3 commits intomainfrom
chore/migrate-api-availability-calendar
Feb 6, 2025
Merged

chore: migrate api/availability/calendar to App Router#19099
hbjORbj merged 3 commits intomainfrom
chore/migrate-api-availability-calendar

Conversation

@hbjORbj
Copy link
Copy Markdown
Contributor

@hbjORbj hbjORbj commented Feb 4, 2025

What does this PR do?

  • Migrates /api/availability/calendar.ts to App Router

Tested

POST

Screenshot 2025-02-04 at 2 57 26 PM

DELETE

Screenshot 2025-02-04 at 2 58 29 PM

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A - I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Go to /apps/installed/calendar and toggle on/off the calendars (inspect the Network tab to see /api/availability/calendar request)
Screenshot 2025-02-04 at 3 00 03 PM

@graphite-app graphite-app Bot requested a review from a team February 4, 2025 18:18
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cal-com-ui-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 7:03pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Feb 4, 2025 7:03pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Feb 4, 2025 7:03pm

@keithwillcode keithwillcode added consumer core area: core, team members only labels Feb 4, 2025
@hbjORbj hbjORbj marked this pull request as draft February 4, 2025 18:18
@hbjORbj hbjORbj changed the title chore: migrate api availability calendar chore: migrate api/availability/calendar to App Router Feb 4, 2025
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Feb 4, 2025

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (02/04/25)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add foundation team as reviewer" took an action on this PR • (02/04/25)

1 reviewer was added to this PR based on Keith Williams's automation.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 4, 2025

E2E results are ready!

@hbjORbj hbjORbj marked this pull request as ready for review February 4, 2025 19:43
@graphite-app graphite-app Bot requested a review from a team February 4, 2025 19:44
@hbjORbj hbjORbj merged commit 19921ab into main Feb 6, 2025
@hbjORbj hbjORbj deleted the chore/migrate-api-availability-calendar branch February 6, 2025 20:58
}

export async function POST(req: NextRequest) {
try {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No this isn't great; we need an higher level apiHandler wrapper fn.

MuhammadAimanSulaiman pushed a commit to hit-pay/cal.com that referenced this pull request Feb 25, 2025
* add app/api/availability/calendar/route.ts

* remove pages router api

* refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

consumer core area: core, team members only high-risk Requires approval by Foundation team ready-for-e2e

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants