Skip to content

chore: Routing form - Add submitted_at and Sort entries with latest on top#17491

Merged
anikdhabal merged 6 commits intocalcom:mainfrom
anikdhabal:CAL-4642
Nov 11, 2024
Merged

chore: Routing form - Add submitted_at and Sort entries with latest on top#17491
anikdhabal merged 6 commits intocalcom:mainfrom
anikdhabal:CAL-4642

Conversation

@anikdhabal
Copy link
Copy Markdown
Contributor

@anikdhabal anikdhabal commented Nov 5, 2024

What does this PR do?

  • Fixes #XXXX (GitHub issue number)
  • Fixes CAL-XXXX (Linear issue number - should be visible at the bottom of the GitHub issue description)
    Screenshot 2024-11-05 190515

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.
  • N/A- I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 5, 2024

@anikdhabal is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot Bot added routing-forms area: routing forms, routing, forms 🧹 Improvements Improvements to existing features. Mostly UX/UI labels Nov 5, 2024
@keithwillcode keithwillcode added the core area: core, team members only label Nov 5, 2024
@graphite-app graphite-app Bot requested a review from a team November 5, 2024 13:38
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Nov 5, 2024

Graphite Automations

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

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 5, 2024

E2E results are ready!

Copy link
Copy Markdown
Contributor

@hbjORbj hbjORbj left a comment

Choose a reason for hiding this comment

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

Check out the failing test

Comment on lines +330 to +335
/* TODO: Find a way to incorporate Routed To, Booked At, Submitted At into the report
expect(responses).toEqual([
["event-routing", "Option-2", "Option-2", "Option-2", "Option-2", "", ""],
["external-redirect", "Option-2", "Option-2", "Option-2", "Option-2", "", ""],
["custom-page", "Option-2", "Option-2", "Option-2", "Option-2", "", ""],
]);
]); */
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We need to handle those three responses in a other way; will make a follow-up PR

Copy link
Copy Markdown
Contributor

@hbjORbj hbjORbj Nov 6, 2024

Choose a reason for hiding this comment

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

Why don't we add extra string to the arrays above to get the test passed? In most cases, we shouldn't comment out test cases.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adding an empty string won't fix it since it's a dynamic value, but I handled it another way

hbjORbj
hbjORbj previously requested changes Nov 6, 2024
Comment on lines +330 to +335
/* TODO: Find a way to incorporate Routed To, Booked At, Submitted At into the report
expect(responses).toEqual([
["event-routing", "Option-2", "Option-2", "Option-2", "Option-2", "", ""],
["external-redirect", "Option-2", "Option-2", "Option-2", "Option-2", "", ""],
["custom-page", "Option-2", "Option-2", "Option-2", "Option-2", "", ""],
]);
]); */
Copy link
Copy Markdown
Contributor

@hbjORbj hbjORbj Nov 6, 2024

Choose a reason for hiding this comment

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

Why don't we add extra string to the arrays above to get the test passed? In most cases, we shouldn't comment out test cases.

@hbjORbj
Copy link
Copy Markdown
Contributor

hbjORbj commented Nov 6, 2024

Left 1 comment.

p.s. Can you please create a branch in the repo, not your fork from next time? e.g., It takes extra effort to fetch, review, push, etc if you open a PR from fork.

@anikdhabal anikdhabal merged commit aaa7510 into calcom:main Nov 11, 2024
@anikdhabal anikdhabal deleted the CAL-4642 branch November 11, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core area: core, team members only 🧹 Improvements Improvements to existing features. Mostly UX/UI ready-for-e2e routing-forms area: routing forms, routing, forms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants