Skip to content

Fix credential creation flow for msteams app#3029

Merged
kodiakhq[bot] merged 7 commits intomainfrom
fix/msteams-video-credentials
Jun 15, 2022
Merged

Fix credential creation flow for msteams app#3029
kodiakhq[bot] merged 7 commits intomainfrom
fix/msteams-video-credentials

Conversation

@alannnc
Copy link
Contributor

@alannnc alannnc commented Jun 8, 2022

What does this PR do?

After some bug/issues on prod I took a look of what could be the error and found out some scenarios that wasn't handling well the credential update/creation for this app.

  • Avoid duplicated credentials type office365_key
  • Fix scope when renewing token

Fixes # (issue)

Environment: Staging(main branch) / Production

Type of change

Loom: https://www.loom.com/share/cc6b2a5d42b44301bb2a37786e915b5b

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

How should this be tested?

  • Install MSteam app
  • Add Office365video as Location for one of your event types
  • Book with said event type many times with some time difference between them, so your current credential expires and gets renewed.
  • You should not get error when creating an event after some time has passed.

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works

@vercel
Copy link

vercel bot commented Jun 8, 2022

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

Name Status Preview Updated
cal ✅ Ready (Inspect) Visit Preview Jun 15, 2022 at 2:38AM (UTC)
swagger ✅ Ready (Inspect) Visit Preview Jun 15, 2022 at 2:38AM (UTC)
2 Ignored Deployments
Name Status Preview Updated
docs ⬜️ Ignored (Inspect) Jun 15, 2022 at 2:38AM (UTC)
ui ⬜️ Ignored (Inspect) Jun 15, 2022 at 2:38AM (UTC)

@alannnc alannnc requested a review from joeauyeung June 8, 2022 22:31
Copy link
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

@joeauyeung joeauyeung marked this pull request as ready for review June 9, 2022 13:23
@PeerRich
Copy link
Member

@alannnc can you do a self-review and loom video?

Copy link
Contributor

@leog leog left a comment

Choose a reason for hiding this comment

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

LGTM, suggested a change to align to best practices

@zomars zomars added ♻️ autoupdate tells kodiak to keep this branch up-to-date automerge labels Jun 15, 2022
@kodiakhq kodiakhq bot merged commit 041ad9c into main Jun 15, 2022
@kodiakhq kodiakhq bot deleted the fix/msteams-video-credentials branch June 15, 2022 02:42
@zomars zomars mentioned this pull request Jun 15, 2022
zomars added a commit that referenced this pull request Jun 15, 2022
* updates api submodule

* Fix credential creation flow for msteams app (#3029)

* Fix credential creation flow for msteams app

* Code review improve

* Fix preffer early returns

Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Flicker on booking success page (#3063)

* The booker get’s the Ui option to reschedule but can’t reschedule (#3061)

* Update CalendarService.ts (#3060)

* Revert "The booker get’s the Ui option to reschedule but can’t reschedule (#3061)"

This reverts commit 8cfc91d.

* New Crowdin translations by Github Action (#3065)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>

* Missing calendar toggles fix (#3066)

* onboarding flag fix

* Adjusting text + adding into locales file

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* fixed flickering of more event name variables (#3069)

* Feature/booking page refactor (#3035)

* Extracted UI related logic on the DatePicker, stripped out all logic

* wip

* fixed small regression due to merge

* Fix alignment of the chevrons

* Added isToday dot, added onMonthChange so we can fetch this month slots

* Added includedDates to inverse excludedDates

* removed trpcState

* Improvements to the state

* All params are now dynamic

* This builds the flat map so not all paths block on every new build

* Added requiresConfirmation

* Correctly take into account getFilteredTimes to make the calendar function

* Rewritten team availability, seems to work

* Circumvent i18n flicker by showing the loader instead

* 'You can remove this code. Its not being used now' - Hariom

* Nailed a persistent little bug, new Date() caused the current day to flicker on and off

* TS fixes

* Fix some eventType details in AvailableTimes

* '5 / 6 Seats Available' instead of '6 / Seats Available'

* More type fixes

* Removed unrelated merge artifact

* Use WEBAPP_URL instead of hardcoded

* Next round of TS fixes

* I believe this was mistyped

* Temporarily disabled rescheduling 'this is when you originally scheduled', so removed dep

* Sorting some dead code

* This page has a lot of red, not all related to this PR

* A PR to your PR (#3067)

* Cleanup

* Cleanup

* Uses zod to parse params

* Type fixes

* Fixes ISR

* E2E fixes

* Disabled dynamic bookings until post v1.7

* More test fixes

* Fixed border position (transparent border) to prevent dot from jumping - and possibly fix spacing

* Disabled style nitpicks

* Delete useSlots.ts

Removed early design artifact

* Unlock DatePicker locale

* Adds mini spinner to DatePicker

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>

* v1.7.0

Co-authored-by: alannnc <alannnc@gmail.com>
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: GitStart <1501599+gitstart@users.noreply.github.com>
Co-authored-by: m4tze <m4tze@gmx.net>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Leo Giovanetti <hello@leog.me>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
@PeerRich PeerRich added the core area: core, team members only label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge ♻️ autoupdate tells kodiak to keep this branch up-to-date core area: core, team members only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants