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

feat: added gnssType to position rest service #5429

Merged

Conversation

sfiorani
Copy link
Contributor

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:

Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
@sfiorani sfiorani marked this pull request as draft October 11, 2024 16:12
@sfiorani sfiorani marked this pull request as ready for review October 14, 2024 08:41
@@ -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());
Copy link
Contributor

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() {
Copy link
Contributor

Choose a reason for hiding this comment

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

The same here.

@pierantoniomerlino pierantoniomerlino merged commit c82bbd2 into eclipse-kura:develop Oct 15, 2024
4 checks passed
@eclipse-kura-bot
Copy link

The backport to release-5.6.0 failed:

The process '/usr/bin/git' failed with exit code 1

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 base branch is release-5.6.0 and the compare/head branch is backport-5429-to-release-5.6.0.

sfiorani added a commit to sfiorani/kura that referenced this pull request Oct 15, 2024
* 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)
sfiorani added a commit to sfiorani/kura that referenced this pull request Oct 15, 2024
…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)
pierantoniomerlino pushed a commit that referenced this pull request Oct 16, 2024
#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants