-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
fix: add default schedule while creating org member #16855
fix: add default schedule while creating org member #16855
Conversation
@vijayraghav-io is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (09/27/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (09/27/24)1 label was added to this PR based on Keith Williams's automation. "Add platform team as reviewer" took an action on this PR • (09/27/24)1 reviewer was added to this PR based on Keith Williams's automation. |
@@ -307,6 +310,8 @@ export async function createNewUsersConnectToOrgIfExists({ | |||
|
|||
const isBecomingAnOrgMember = parentId || isOrg; | |||
|
|||
const availability = getAvailabilityFromSchedule(DEFAULT_SCHEDULE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we rename this to defaultScheduleAvailability
or defaultAvailability
?
@@ -340,6 +345,21 @@ export async function createNewUsersConnectToOrgIfExists({ | |||
accepted: autoAccept, // If the user is invited to a child team, they are automatically accepted | |||
}, | |||
}, | |||
// Default schedule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its alright if you remove the comment
This PR is being marked as stale due to inactivity. |
This PR is being marked as stale due to inactivity. |
Gentle reminder! |
…53_addAutoAcceptedInvite
…53_addAutoAcceptedInvite
…53_addAutoAcceptedInvite
added an e2e test |
E2E results are ready! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
@anikdhabal @vijayraghav-io the created schedules are missing timeZone. Anik, hasn't this caused any issues? When Furthermore, if |
Hey @supalarry, I don't think it causes issues. We've done it in other places as well, e.g., in the userRepository. What issue are you anticipating? But yes, adding the timezone would make sense here. @vijayraghav-io, could you check it and do a follow-up? |
@anikdhabal, sure will check this and do a follow-up. |
Hi @supalarry, @anikdhabal, i checked and verified this , even if timezone is not explicitly input, the schedule is created and availability shown as per default timezone - Updated to create schedule as per input timezone, if timezone is input for |
What does this PR do?
BeforeChanges :
https://www.loom.com/share/232fd6ddfdc8407f93d1a967fe6c191f?sid=c9da5ff0-1f45-4d2a-b8fc-e8053a557be1
AfterChanges :
https://www.loom.com/share/26e808cb4d6b4d8abd4288ed096bfd14?sid=514088a9-9244-442f-8265-cca21a23bf38
Mandatory Tasks (DO NOT REMOVE)