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

Ocpp: deduplicate event handlers #16278

Merged
merged 6 commits into from
Sep 23, 2024
Merged

Ocpp: deduplicate event handlers #16278

merged 6 commits into from
Sep 23, 2024

Conversation

andig
Copy link
Member

@andig andig commented Sep 22, 2024

This PR moves all cp event handlers to cs where logic is globally handled

@andig andig added the infrastructure Basic functionality label Sep 22, 2024
@premultiply
Copy link
Member

Ich verstehe was du meinst, dennoch sind dies tatsächlich alles CP-Events:

image

@andig
Copy link
Member Author

andig commented Sep 23, 2024

Das ist klar. Wir haben aber eigentlich keinen Grund, die auch im Code am CP zu handeln. Stell dir das einfach als das catch-all vor nachdem kein passender CP gefunden wurde.

charger/ocpp/cs_core.go Outdated Show resolved Hide resolved
charger/ocpp/cs_core.go Outdated Show resolved Hide resolved
@premultiply
Copy link
Member

Ja, verstehe ich, dennoch sind das eigentlich CP-Aktionen.

Dann sollten wir das im CS zumindest entsprechend kommentieren, dass hier nur die Abkürzung genommen wird, da nicht weiter im CP verarbeitet.

@andig
Copy link
Member Author

andig commented Sep 23, 2024

Ja, verstehe ich, dennoch sind das eigentlich CP-Aktionen.

Stell dir das einfach vor wie die anderen Handler auch- nur das hier vorher keine CP-spezifischen Aufrufe mehr getätigt werden. So als würde es keinen handlenden CP geben.

@andig andig merged commit 2d9a85b into master Sep 23, 2024
6 checks passed
@andig andig deleted the chore/ocpp-simplify branch September 23, 2024 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Basic functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants