Skip to content
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: typo in Gcal atom prop and outlook service #15319

Merged
merged 2 commits into from
Jun 4, 2024
Merged

Conversation

Ryukemeister
Copy link
Contributor

What does this PR do?

  • This PR fixed two things in particular 1. There was a typo in one of types in the useGal hook, so renamed that from OnCheckErroType to OnCheckErrorType 2. And inside of the calendars service while trying to get the default calendar of a user we were passing the access token of our v2 api instead of passing the access token that we get from a users outlook credentials. This was resulting in an invalid and as a result user credentials were not being saved in the db.

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
  • I have added or modified automated tests that prove my fix is effective or that my feature works (PRs might be rejected if logical changes are not properly tested)

How should this be tested?

This can be tested under the examples app in packages/platform/examples/base

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Rajiv Sahal seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

github-actions bot commented Jun 4, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

@keithwillcode keithwillcode added core area: core, team members only platform Anything related to our platform plan labels Jun 4, 2024
@graphite-app graphite-app bot requested a review from a team June 4, 2024 11:08
@dosubot dosubot bot added api area: API, enterprise API, access token, OAuth calendar-apps area: calendar, google calendar, outlook, lark, microsoft 365, apple calendar 🐛 bug Something isn't working labels Jun 4, 2024
@@ -156,7 +156,7 @@ export class OutlookService implements OAuthCalendarApp {

const office365OAuthCredentials = await this.getOAuthCredentials(parsedCode);

const defaultCalendar = await this.getDefaultCalendar(accessToken);
const defaultCalendar = await this.getDefaultCalendar(office365OAuthCredentials.access_token);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here we need to pass in the access token for the users office365 oauth credentials.

Copy link

graphite-app bot commented Jun 4, 2024

Graphite Automations

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

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

@Ryukemeister Ryukemeister added this pull request to the merge queue Jun 4, 2024
Merged via the queue into main with commit 93580ac Jun 4, 2024
23 of 24 checks passed
@Ryukemeister Ryukemeister deleted the fix-typo-for-gcal branch June 4, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api area: API, enterprise API, access token, OAuth 🐛 bug Something isn't working calendar-apps area: calendar, google calendar, outlook, lark, microsoft 365, apple calendar core area: core, team members only platform Anything related to our platform plan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants