Skip to content

fix(routing-forms): use direct eventTypeId lookup instead of brittle slug extraction#27722

Closed
deepshekhardas wants to merge 1 commit intocalcom:mainfrom
deepshekhardas:fix/routing-form-event-type-id-lookup
Closed

fix(routing-forms): use direct eventTypeId lookup instead of brittle slug extraction#27722
deepshekhardas wants to merge 1 commit intocalcom:mainfrom
deepshekhardas:fix/routing-form-event-type-id-lookup

Conversation

@deepshekhardas
Copy link

What does this PR do?

Addresses the TODO in SharedRoutingFormResponseService to use direct eventTypeId lookup instead of extracting event type from the URL slug.

Changes

  • Added cal.eventTypeId to URL search params in getUrlSearchParamsToForward.ts
  • Passed decidedAction.eventTypeId in getRoutedUrl.ts
  • Updated API V2 SharedRoutingFormResponseService to:
    • First try direct ID lookup using cal.eventTypeId param
    • Fall back to slug-based lookup for backward compatibility
  • Extracted extractCrmParamsFromUrl helper method to avoid duplication

Why?

The slug-based lookup was fragile and could break if slugs change. Using direct eventTypeId is more reliable.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@deepshekhardas deepshekhardas requested a review from a team as a code owner February 7, 2026 04:06
@paragon-review
Copy link

paragon-review bot commented Feb 7, 2026

Paragon Review Unavailable

Hi @deepshekhardas! To enable Paragon reviews on this repository, please register at https://home.polarity.cc

Once registered, connect your GitHub account and Paragon will automatically review your pull requests.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Feb 7, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

@github-actions
Copy link
Contributor

This PR has been marked as stale due to inactivity. If you're still working on it or need any help, please let us know or update the PR to keep it active.

@github-actions github-actions bot added the Stale label Feb 15, 2026
Copy link
Member

@sahitya-chandra sahitya-chandra left a comment

Choose a reason for hiding this comment

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

@deepshekhardas pr is directly related to routing-form, no before and after video of the changes have been provided.
Also description does not follow the pr template. Closing this now

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

Labels

community Created by Linear-GitHub Sync size/M Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants