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: EVSIM-437 add message id in request metadata #70

Merged

Conversation

DeborahPereira4sh
Copy link
Contributor

@DeborahPereira4sh DeborahPereira4sh commented Apr 25, 2024

https://4sh-toolkit.atlassian.net/browse/EVSIM-437

Ajout du message id dans les request metadata afin qu'il soit directement accessible lors de l'implémentation des callbacks, qui ont la signature suivante par exemple :

fun authorize(meta: RequestMetadata, request: AuthorizeReq): OperationExecution<AuthorizeReq, AuthorizeResp>

@@ -105,7 +105,7 @@ class OcppSoapServerTransport private constructor(
msg.action?.lowercase() == action.lowercase()
) {
val message = ocppSoapParser.parseRequestFromSoap(msg.payload, clazz)
val response = onAction(RequestMetadata(message.messageId), message.payload)
val response = onAction(RequestMetadata(message.messageId, message.messageId), message.payload)
Copy link
Contributor

Choose a reason for hiding this comment

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

c'est étrange ici on passe 2 fois le messageId ? Ca semble être une erreur dans l'implem actuelle qui passe le messageId en tant que chargingStationId ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

En effet c'est une erreur qu'on a dans l'implem actuelle, c'est corrigé

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@xhanin xhanin left a comment

Choose a reason for hiding this comment

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

good for me!

@DeborahPereira4sh DeborahPereira4sh merged commit 1ccfe54 into dev Apr 26, 2024
2 checks passed
@DeborahPereira4sh DeborahPereira4sh deleted the feat-EVSIM-437-add-message-id-in-request-metadata branch April 26, 2024 10:03
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.

2 participants