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

Trip sharing #271

Merged
merged 7 commits into from
Dec 3, 2024
Merged

Trip sharing #271

merged 7 commits into from
Dec 3, 2024

Conversation

binh-dam-ibigroup
Copy link
Collaborator

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

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

Provides a new endpoint to query a given user's monitored trips, including trips on which a user is a companion and or an observer. The field type for primary user is changed to MobilityProfileLite as a result from introducing the endpoint in #266 for querying the dependent profile.

Out of scope: email notifications to users added as companions/observers/primary travelers will be addressed in a separate PR.

Copy link

@josh-willis-arcadis josh-willis-arcadis left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

Just one comment related to the relationship between related users and monitored trips. Also, I was expecting a new end point, but I guess that wasn't needed in the end?

@@ -176,7 +176,7 @@ public class MonitoredTrip extends Model {
*/
public boolean notifyAtLeadingInterval = true;

public RelatedUser primary;
public MobilityProfileLite primary;
public RelatedUser companion;
public List<RelatedUser> observers = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably out of scope, but should any updates to related users be reflected in monitored trips? For instance, if a related user is removed?

Copy link
Contributor

Choose a reason for hiding this comment

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

@binh-dam-ibigroup just this to potentially address if you think it is in scope/important?

Copy link
Contributor

Choose a reason for hiding this comment

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

@binh-dam-ibigroup just this to potentially address if you think it is in scope/important?

@binh-dam-ibigroup I just need your thoughts on this and then I can approve if it is out of scope.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@br648 If you are ok with this, we can do delete propagation in another PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

@binh-dam-ibigroup I think it is out of scope. Will approve.

@binh-dam-ibigroup
Copy link
Collaborator Author

Also, I was expecting a new end point, but I guess that wasn't needed in the end?

Indeed!

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.

Approving but delete propagation needs to be covered in another PR.

@br648 br648 assigned binh-dam-ibigroup and unassigned br648 Dec 3, 2024
@binh-dam-ibigroup binh-dam-ibigroup merged commit 5657c20 into dev Dec 3, 2024
2 checks passed
@binh-dam-ibigroup binh-dam-ibigroup deleted the trip-sharing branch December 3, 2024 21:40
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