-
Notifications
You must be signed in to change notification settings - Fork 309
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
feat: added gnssType to position rest service #5429
feat: added gnssType to position rest service #5429
Conversation
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
@@ -84,7 +84,7 @@ public void unsetRequestHandlerRegistry(final RequestHandlerRegistry registry) { | |||
@Produces(MediaType.APPLICATION_JSON) | |||
public PositionDTO getPosition() { | |||
if (positionServiceImpl.isLocked()) { | |||
return new PositionDTO(positionServiceImpl.getPosition()); | |||
return new PositionDTO(positionServiceImpl.getPosition(), positionServiceImpl.getGnssType()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that it isn't related to this PR and it is a detail, but I'd call this getGnssTypes or getGnssTypeSet instead of getGnssType since it returns a set not a single value.
/* | ||
* Returns the GNSS Type used to retrieve position information | ||
*/ | ||
public Set<String> getGnssType() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same here.
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release-5.6.0 release-5.6.0
# Navigate to the new working tree
cd .worktrees/backport-release-5.6.0
# Create a new branch
git switch --create backport-5429-to-release-5.6.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 c82bbd28e7d430e860d9ee0e50d7e043762208b8
# Push it to GitHub
git push --set-upstream origin backport-5429-to-release-5.6.0
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release-5.6.0 Then, create a pull request where the |
* feat: added gnssType to position rest service Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com> * refactor: modified how the gnsstype info is retrieved Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com> --------- Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com> (cherry picked from commit c82bbd2)
…se-kura#5429) * feat: added gnssType to position rest service Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com> * refactor: modified how the gnsstype info is retrieved Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com> --------- Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com> (cherry picked from commit c82bbd2)
#5449) * feat: added gnssType to position rest service [backport 5.6.0] (#5429) * feat: added gnssType to position rest service Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com> * refactor: modified how the gnsstype info is retrieved Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com> --------- Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com> (cherry picked from commit c82bbd2) * fix: remaining cherry-pick confilct removed Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com> --------- Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
This PR updates the Position Rest Service to include also the GNSS Type introduced in #5381 . Now the
getPosition
GET call returns also the GNSS Type if available.Related Issue:
Description of the solution adopted:
Screenshots:
Manual Tests:
Any side note on the changes made: