Skip to content

fix: uncaught types errors in invite members team handler#16109

Merged
joeauyeung merged 12 commits intomainfrom
fix_uncaught_types_errors_in_invite_members_team_handler
Aug 19, 2024
Merged

fix: uncaught types errors in invite members team handler#16109
joeauyeung merged 12 commits intomainfrom
fix_uncaught_types_errors_in_invite_members_team_handler

Conversation

@zomars
Copy link
Copy Markdown
Contributor

@zomars zomars commented Aug 6, 2024

What does this PR do?

Follow up to #15929

Enhanced the inviteMemberUtils and related tests to handle additional organization properties.

What changed?

  • Updated inviteMemberUtils mock to include and process newRole property in invitations.
  • Refined return logic to consistently use Promise.resolve
  • Augmented mocked data to encompass new organization properties such as isOrganization, organizationId, lockEventTypeCreationForUsers, adminGetsNoSlotsNotification, isAdminReviewed, and isAdminAPIEnabled

How to test?

  • Run the existing unit tests for inviteMemberUtils ensuring all new properties are properly handled.
  • Any new tests added for the additional functionalities should also pass.

Why make this change?

This change is essential to keep the invite member utility and its tests up-to-date with the evolving schema and business logic regarding organizational properties.


Mandatory Tasks (DO NOT REMOVE)

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

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 Aug 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai ❌ Failed (Inspect) Aug 19, 2024 8:09pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Aug 19, 2024 8:09pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Aug 19, 2024 8:09pm

@zomars zomars marked this pull request as ready for review August 6, 2024 23:28
@graphite-app graphite-app Bot requested a review from a team August 6, 2024 23:28
@dosubot dosubot Bot added automated-tests area: unit tests, e2e tests, playwright platform Anything related to our platform plan labels Aug 6, 2024
@graphite-app graphite-app Bot requested a review from a team August 6, 2024 23:29
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Aug 6, 2024

Graphite Automations

"Add foundation team as reviewer" took an action on this PR • (08/06/24)

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

"Add platform team as reviewer" took an action on this PR • (08/06/24)

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

joeauyeung
joeauyeung previously approved these changes Aug 15, 2024
Copy link
Copy Markdown
Contributor

@joeauyeung joeauyeung left a comment

Choose a reason for hiding this comment

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

LGTM

@zomars zomars changed the base branch from refactor_use_webhookservice_in_payments_router to graphite-base/16109 August 15, 2024 20:03
@zomars zomars force-pushed the fix_uncaught_types_errors_in_invite_members_team_handler branch from c8ef909 to d2651fb Compare August 15, 2024 20:03
joeauyeung
joeauyeung previously approved these changes Aug 15, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 15, 2024

Ryukemeister and others added 9 commits August 16, 2024 12:09
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
Co-authored-by: Morgan Vernay <morgan@cal.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Joe Au-Yeung <j.auyeung419@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Omar López <zomars@me.com>
Copy link
Copy Markdown
Member

@CarinaWolli CarinaWolli left a comment

Choose a reason for hiding this comment

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

LGTM

@joeauyeung joeauyeung merged commit a091c60 into main Aug 19, 2024
@joeauyeung joeauyeung deleted the fix_uncaught_types_errors_in_invite_members_team_handler branch August 19, 2024 20:27
emrysal added a commit that referenced this pull request Aug 22, 2024
emrysal added a commit that referenced this pull request Aug 23, 2024
zomars pushed a commit that referenced this pull request Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-tests area: unit tests, e2e tests, playwright core area: core, team members only foundation ❗️ migrations contains migration files platform Anything related to our platform plan ready-for-e2e

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants