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

Update maxAge-behaviour for /verify & /retrieve #218

Merged

Conversation

maxl2287
Copy link
Contributor

What type of PR is this?

Add one of the following kinds:

  • correction

What this PR does / why we need it:

Updating the maxAge-behaviour for location-verification and location-retrieval

Which issue(s) this PR fixes:

Fixes #216

@maxl2287 maxl2287 self-assigned this Jun 21, 2024
@maxl2287 maxl2287 added the Fall24 Meta-release Fall24 label Jun 21, 2024
@maxl2287 maxl2287 force-pushed the feature/update-max-age-behaviour branch from 6b6f79e to 874d57a Compare June 21, 2024 12:03
@maxl2287
Copy link
Contributor Author

@camaraproject/device-location_maintainers this PR is ready to be reviewed 😸

Copy link
Collaborator

@bigludo7 bigludo7 left a comment

Choose a reason for hiding this comment

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

LGTM/

@bigludo7 bigludo7 self-requested a review July 1, 2024 15:02
bigludo7
bigludo7 previously approved these changes Jul 11, 2024
@jlurien
Copy link
Collaborator

jlurien commented Jul 23, 2024

@maxl2287 please give priority to this PR as it is blocking the process for these 2 APIs. Thanks

maxl2287 and others added 4 commits July 23, 2024 22:15
…e/update-max-age-behaviour

# Conflicts:
#	code/API_definitions/location-retrieval.yaml
#	code/API_definitions/location-verification.yaml
@maxl2287 maxl2287 requested review from mhfoo, jlurien and bigludo7 July 23, 2024 20:30
@maxl2287
Copy link
Contributor Author

Update is done.
Please check @jlurien and @bigludo7

Copy link
Collaborator

@bigludo7 bigludo7 left a comment

Choose a reason for hiding this comment

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

Hello @maxl2287
Sorry if I miss something but I do not understand why you removed all 422 codes
For me we have to keep these:

            GENERIC_422_UNPROCESSABLE_ENTITY:
              summary: Unprocessable entity
              description: The request was well-formed but was unable to be processed due to semantic errors or not applicable values. This is the generic error code for 422 responses.
              value:
                status: 422
                code: UNPROCESSABLE_ENTITY
                message: "Value not acceptable: ..."
            GENERIC_422_DEVICE_NOT_APPLICABLE:
              summary: Service not applicable to the device
              description: The provided device is not compatible with the requested operation, according to the service provider rules.
              value:
                status: 422
                code: DEVICE_NOT_APPLICABLE
                message: "The device is not applicable for the requested operation"
            GENERIC_422_DEVICE_IDENTIFIERS_MISMATCH:
              summary: Device identifiers mismatch
              description: Several device identifiers are provided but do not match the same device
              value:
                status: 422
                code: DEVICE_IDENTIFIERS_MISMATCH
                message: "The provided device identifiers do not match the same device"
            GENERIC_422_UNSUPPORTED_DEVICE_IDENTIFIERS:
              summary: None of the provided device identifiers is supported by the implementation
              description: Message may list the supported device identifiers
              value:
                status: 422
                code: UNSUPPORTED_DEVICE_IDENTIFIERS
                message: "Supported device supported are: ..."
            GENERIC_422_UNIDENTIFIABLE_DEVICE:
              summary: No identifier provided
              description: No device identifier provided for the device to be located
              value:
                status: 422
                code: UNIDENTIFIABLE_DEVICE
                message: "A device must be provided"

@jlurien
Copy link
Collaborator

jlurien commented Jul 24, 2024

We have to add another example to the examples array, e.g.:
`
LOCATION_VERIFICATION_422_UNABLE_TO_FULFILL_MAX_AGE:
summary: Unable to fulfill maxAge
description: the system is not able to provide the fresh location required by the client
value:
status: 422
code: LOCATION_VERIFICATION.UNABLE_TO_FULFILL_MAX_AGE
message: "Unable to provide expected freshness for location"

@maxl2287 maxl2287 requested a review from bigludo7 July 24, 2024 12:03
jlurien
jlurien previously approved these changes Jul 24, 2024
Copy link
Collaborator

@jlurien jlurien left a comment

Choose a reason for hiding this comment

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

LGTM

@jlurien jlurien self-requested a review July 24, 2024 12:30
@jlurien
Copy link
Collaborator

jlurien commented Jul 24, 2024

@bigludo7 take a final look and we can merge it. Thanks

Copy link
Collaborator

@bigludo7 bigludo7 left a comment

Choose a reason for hiding this comment

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

The 422 examples are back :)

@bigludo7 bigludo7 merged commit d20df11 into camaraproject:main Jul 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fall24 Meta-release Fall24
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allignment on maxAge - behaviour for location-verification & location-retrieval
4 participants