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

OTP-888 Swagger including mobility profiles. #198

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Conversation

JymDyerIBI
Copy link
Contributor

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
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing
  • The description lists all relevant PRs included in this release (remove this if not merging to master)

Description

Add mobility profile support. New fields in OtpUser (in this code and in Mongo and Swagger). Following the logic, naming, and strings in the Georgia Tech document, a somewhat unwieldy new OtpUserController#calculateMobilityMode() that takes specified string values and calculates a "mobility mode" keyword or compound keyword.

This PR should include the 08d9695 commits.

@@ -2550,8 +2550,18 @@ definitions:
type: "boolean"
hasConsentedToTerms:
type: "boolean"
isMobilityLimited:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Main reason why you want to publish a PR branch quickly for review: I see that the mobility attributes start to stack up, and my thought was to put them under a mobilityProfile field:

- <other OTP User attributes>
- mobilityProfile
    - isMobiityLimited
    - mobilityDevices
    - mobilityMode  
    - visionLimitation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm putting together a mobilityProfile field as requested.

Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

Approving this to make tests pass.

Copy link
Contributor

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

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

Happy to see this updated. Do unit test need updating?

@JymDyerIBI JymDyerIBI merged commit e91b138 into dev Nov 30, 2023
2 checks passed
@binh-dam-ibigroup binh-dam-ibigroup deleted the mobility-profile branch February 14, 2024 21:34
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