-
Notifications
You must be signed in to change notification settings - Fork 10.2k
feat: enable attribute-based assignment for managed event types #22989
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
base: main
Are you sure you want to change the base?
feat: enable attribute-based assignment for managed event types #22989
Conversation
- Remove explicit disabling of segment functionality in handleChildrenEventTypes.ts - Add segment assignment fields to unlocked managed event type properties - Export MembersSegmentWithToggle component for reuse - Include segment fields in managed event metadata initialization - Add segment assignment UI to managed event types when 'Assign all team members' is enabled - Update teams/index.ts to handle segment assignment for managed events This allows managed event types to use the same attribute-based user assignment functionality that was previously only available for round robin events. Co-Authored-By: joe@cal.com <j.auyeung419@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
- Remove fields that are no longer included in Prisma data objects (parentId, profileId, restrictionScheduleId, scheduleId, userId) - Add explicit title, slug, length fields that are now required - Update test expectations to match new data structure with assignRRMembersUsingSegment and rrSegmentQueryValue fields - Fix destructuring patterns to avoid duplicate variable declarations Co-Authored-By: joe@cal.com <j.auyeung419@gmail.com>
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
- Add missing required properties (profileId, scheduleId, restrictionScheduleId) to mockUpdatedEventType - Remove profileId from destructuring where it doesn't exist in evType object - Ensure test file passes type checking Co-Authored-By: joe@cal.com <j.auyeung419@gmail.com>
feat: enable attribute-based assignment for managed event types
Summary
This PR enables attribute-based user assignment for managed event types, bringing the same functionality that was previously only available for round robin events. Previously, managed events could only use "Assign all team members" or manual host selection, but now they can filter team members based on attributes like skills, location, or other custom properties.
Key Changes:
assignRRMembersUsingSegment
andrrSegmentQueryValue
to unlocked managed event type propertiesReview & Testing Checklist for Human
🔴 High Priority - Must Test:
Diagram
Notes
userId
,parentId
,teamId
, etc.) fromallManagedEventTypeProps
to resolve Prisma type conflicts. This required explicitly adding required fields liketitle
,slug
,length
in the creation logic.