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

Prevent overwriting trip/user internal fields #195

Merged
merged 8 commits into from
Nov 27, 2023

Conversation

binh-dam-ibigroup
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup commented Nov 20, 2023

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JavaDoc and code is thoroughly commented
  • [na] The description lists all applicable issues this PR seeks to resolve
  • [na] The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing

Description

Web requests that missed certain fields in MonitoredTrip could mess up the stored state of those trips,
resulting in, for instance, errors in the trip monitoring checks and loss of push notifications.

This PR addresses that issue by preventing a number of internal fields in MonitoredTrip and OtpUser from being modified via web requests.

Copy link
Contributor

@JymDyerIBI JymDyerIBI 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 to me!

Copy link
Contributor

@br648 br648 left a comment

Choose a reason for hiding this comment

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

Look goods. I was unable to run the updated test because of Auth0 config. I'll assume the tests are fine because they pass CI.

@br648 br648 assigned binh-dam-ibigroup and unassigned br648 Nov 22, 2023
@binh-dam-ibigroup binh-dam-ibigroup merged commit 282223d into dev Nov 27, 2023
2 checks passed
@binh-dam-ibigroup binh-dam-ibigroup deleted the prevent-overwriting-trip-user-internal-fields branch November 27, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants