Skip to content

feat: adds attendee and host names, and guest emails in forwarded params#17530

Merged
alishaz-polymath merged 5 commits intomainfrom
fix/extensive-details-in-success-redirect
Nov 8, 2024
Merged

feat: adds attendee and host names, and guest emails in forwarded params#17530
alishaz-polymath merged 5 commits intomainfrom
fix/extensive-details-in-success-redirect

Conversation

@alishaz-polymath
Copy link
Copy Markdown
Member

@alishaz-polymath alishaz-polymath commented Nov 7, 2024

What does this PR do?

The forward params in Redirect on booking was missing host name and booker name. We add those in this PR.

Example URL with params:
https://example.com/test/hello?date=2024-11-14&slot=2024-11-14T10%3A15%3A00.000Z&slug=redirect-team&type=chat-up&isSuccessBookingPage=true&email=danish%40example.com&eventTypeSlug=chat-up&title=Chat+up+between+Redirect+Team+and+Danish+Sultan&description=&startTime=2024-11-14T10%3A15%3A00.000Z&endTime=2024-11-14T10%3A30%3A00.000Z&location=integrations%3Adaily&hostName=Ali+Shahbaz%2C+John+Doe&attendeeName=Danish+Sultan&guestEmail=guest1%40gmail.com%2C+guest2%40gmail.com%2C+guest3%40gmail.com%2C+guest4%40gmail.com

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

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • 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?

  • 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

@dosubot dosubot bot added bookings area: bookings, availability, timezones, double booking ✨ feature New feature or request labels Nov 7, 2024
@keithwillcode keithwillcode added core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO labels Nov 7, 2024
@alishaz-polymath alishaz-polymath added the High priority Created by Linear-GitHub Sync label Nov 7, 2024
Comment thread packages/lib/bookingSuccessRedirect.ts Outdated
Comment thread packages/lib/bookingSuccessRedirect.ts Outdated
@vercel
Copy link
Copy Markdown

vercel bot commented Nov 7, 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 Nov 8, 2024 4:12pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Nov 8, 2024 4:12pm

Comment thread packages/lib/bookingSuccessRedirect.ts Outdated
Comment on lines +60 to +64
if (attendee.name) {
acc.hostNames.push(attendee.name);
} else if (attendee.email) {
acc.guestEmails.push(attendee.email);
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

guests don't have names, only emails.

@alishaz-polymath alishaz-polymath changed the title feat: adds attendee and host names in forwarded params feat: adds attendee and host names, and guest emails in forwarded params Nov 8, 2024
Copy link
Copy Markdown
Contributor

@zomars zomars left a comment

Choose a reason for hiding this comment

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

Not a blocker but is it kinda hard to figure out what going on with all the Object methods, reduce, etc. Maybe properly named functions could help?

@graphite-app
Copy link
Copy Markdown

graphite-app bot commented Nov 8, 2024

Graphite Automations

"Add ready-for-e2e label" took an action on this PR • (11/08/24)

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 8, 2024

E2E results are ready!

@alishaz-polymath
Copy link
Copy Markdown
Member Author

Not a blocker but is it kinda hard to figure out what going on with all the Object methods, reduce, etc. Maybe properly named functions could help?

Yeah, plan on making separate reusable functions in a follow up which should take care of that.

@alishaz-polymath alishaz-polymath merged commit a1477dc into main Nov 8, 2024
@alishaz-polymath alishaz-polymath deleted the fix/extensive-details-in-success-redirect branch November 8, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bookings area: bookings, availability, timezones, double booking core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO ✨ feature New feature or request High priority Created by Linear-GitHub Sync ready-for-e2e

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants