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

MPDX-8491 - Fix Activity Type Case-Sensitivity Issue in Google Calendar Integration #1224

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

dr-bizz
Copy link
Contributor

@dr-bizz dr-bizz commented Dec 12, 2024

Description

This PR resolves an issue where activity types were not being correctly updated in the Google Calendar integration. The root cause was identified in the handling of a proxy GraphQL query used to fetch the current calendar integration. During this process, lowercase values were converted to uppercase to align with the rest of the website's standards.

However, when sending the calendar integrations back to the REST API, the values needed to be reverted to lowercase. This discrepancy caused issues since the API correctly treats APPOINTMENT_PHONE_CALL and appointment_phone_call as distinct values. This fix ensures proper conversion and resolves the integration issue.

Jira Task
HelpScout Ticket

Checklist:

  • I have given my PR a title with the format "MPDX-(JIRA#) (summary sentence max 80 chars)"
  • I have applied the appropriate labels. (Add the label "On Staging" to get the branch automatically merged into staging.)
  • I have requested a review from another person on the project

…e when we pass the data to the API since we get the data in lowercase.
@dr-bizz dr-bizz added the Preview Environment Add this label to create an Amplify Preview label Dec 12, 2024
@dr-bizz dr-bizz requested a review from caleballdrin December 12, 2024 13:17
Copy link
Contributor

Preview branch generated at https://hs-1252356-add-org-edit.d3dytjb8adxkk5.amplifyapp.com

Copy link
Contributor

Bundle sizes [mpdx-react]

Compared against 0c76edd

No significant changes found

Copy link
Contributor

@caleballdrin caleballdrin left a comment

Choose a reason for hiding this comment

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

Looks good! I wasn't able to get it to work on the preview environment but maybe the staging API isn't pushing to my google calendar.

@dr-bizz
Copy link
Contributor Author

dr-bizz commented Dec 13, 2024

Were you able to get it to work on staging? If so, something is wrong here. Otherwise it might just be a staging thing

@dr-bizz
Copy link
Contributor Author

dr-bizz commented Dec 13, 2024

I retested this in staging to ensure my code changes were working. On staging, I wasn't seeing my tasks events in my calendar either, so I know my code is working.

We might need to ask a backend dev if they know why the Google integration isn't working on staging

@dr-bizz dr-bizz merged commit 2130952 into main Dec 13, 2024
19 checks passed
@dr-bizz dr-bizz deleted the hs-1252356-add-org-edit branch December 13, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Preview Environment Add this label to create an Amplify Preview
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants