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

Retrieve push devices when returning user profile #193

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

binh-dam-ibigroup
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup commented Nov 13, 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

This PR makes OTP-middleware retrieve the number of push devices when user info is requested. This is useful for new users that have opened the mobile app but have yet to start saving trips.

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.

@JymDyerIBI
Copy link
Contributor

@binh-dam-ibigroup - It's suggesting you as a reviewer, which makes no sense. Maybe you'll have better luck with a reviewer suggestion?

@binh-dam-ibigroup
Copy link
Collaborator Author

@binh-dam-ibigroup - It's suggesting you as a reviewer, which makes no sense.

Was that an AI suggestion lol?

Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a comment

Choose a reason for hiding this comment

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

LGTM. Maybe add a Javadoc before merge?

@@ -324,6 +325,14 @@ public static int getPushInfo(String toUser) {
return 0;
}

public static void updatePushDevices(OtpUser otpUser) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any expectation to add Javadoc in this project?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added the JavaDoc in c7b05af.

@binh-dam-ibigroup binh-dam-ibigroup merged commit f1bc548 into dev Nov 15, 2023
2 checks passed
@binh-dam-ibigroup binh-dam-ibigroup deleted the improve-retrieving-push-devices branch November 15, 2023 14:58
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