8000 chore: Remove Pages Router / Use App Router - `/workflows` by hbjORbj · Pull Request #16519 · calcom/cal.com · GitHub
[go: up one dir, main page]

Skip to content
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

chore: Remove Pages Router / Use App Router - /workflows #16519

Merged
merged 10 commits into from
Dec 11, 2024

Conversation

hbjORbj
Copy link
Contributor
@hbjORbj hbjORbj commented Sep 6, 2024

What does this PR do?

  • Fixes CAL-4276
  • Remove /workflows routes from Pages Router and render them from App router.

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 added a Docs issue here 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?

  • Navigate to /workflows/ and /workflows/[workflow]

Copy link
linear bot commented Sep 6, 2024

@graphite-app graphite-app bot requested a review from a team September 6, 2024 08:59
@github-actions github-actions bot added the ❗️ .env changes contains changes to env variables label Sep 6, 2024
@keithwillcode keithwillcode added consumer core area: core, team members only labels Sep 6, 2024
@dosubot dosubot bot added workflows area: workflows, automations 💻 refactor labels Sep 6, 2024
Copy link
graphite-app bot commented Sep 6, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (09/06/24)

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

"Add foundation team as reviewer" took an action on this PR • (09/06/24)

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

Copy link
vercel bot commented Sep 6, 2024

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Dec 11, 2024 1:20am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Dec 11, 2024 1:20am

Copy link
Contributor
github-actions bot commented Sep 6, 2024

E2E results are ready!

@hbjORbj hbjORbj marked this pull request as draft September 8, 2024 23:02
@keithwillcode keithwillcode added this to the v4.6 milestone Sep 15, 2024
@hbjORbj
Copy link
Contributor Author
hbjORbj commented Sep 25, 2024

DO NOT MERGE UNTIL EITHER (1) REVALIDATION LOGIC FOR SSR IS ADDED or (2) SSR IS REVERTED

Copy link
Contributor

This PR is being marked as stale due to inactivity.

@github-actions github-actions bot added the Stale label Oct 10, 2024
@keithwillcode keithwillcode removed this from the v4.6 milestone Oct 16, 2024
@github-actions github-actions bot removed the Stale label Nov 21, 2024
< 8000 batch-deferred-content class="d-inline-block" data-url="/commits/badges">
…deploy
@hbjORbj hbjORbj changed the title chore: [final phase of app router migration] Remove Pages Router / Render App Router - /workflows chore: Remove Pages Router / Use App Router - /workflows Dec 10, 2024
Comment on lines +21 to +31
// const filters = getTeamsFiltersFromQuery({ ...searchParams, ...params });

// let filteredList;
// try {
// filteredList = await WorkflowRepository.getFilteredList({
// userId: user?.id,
// input: {
// filters,
// },
// });
// } catch (err) {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

commenting out sever-side fetching for now for defensive migration

Comment on lines +40 to +54
// const workflow = await WorkflowRepository.getById({ id: +parsed.data.workflow });
// let verifiedEmails, verifiedNumbers;
// try {
// verifiedEmails = await WorkflowRepository.getVerifiedEmails({
// userEmail: user?.email ?? null,
// userId: user?.id ?? null,
// teamId: workflow?.team?.id,
// });
// } catch (err) {}
// try {
// verifiedNumbers = await WorkflowRepository.getVerifiedNumbers({
// userId: user?.id ?? null,
// teamId: workflow?.team?.id,
// });
// } catch (err) {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

commenting out sever-side fetching for now for defensive migration

Copy link
Contributor
@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

working well!

@hbjORbj hbjORbj merged commit ce9df65 into main Dec 11, 2024
38 checks passed
@hbjORbj hbjORbj deleted the app-router/workflows-deploy branch December 11, 2024 08:51
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 ❗️ .env changes contains changes to env variables foundation high-risk Requires approval by Foundation team ready-for-e2e 💻 refactor workflows area: workflows, automations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0