fix CpoName rendering on charge point detail page#2043
Conversation
after #2039, CpoName is not a standalone column anymore. therefore, ChargeBoxRecord.getCpoName() does not exist. we need to get it out of ChargeBoxRecord.getOcppConfiguration()
Review Summary by QodoFix CpoName rendering by extracting from OCPP configuration
WalkthroughsDescription• Extract CpoName from OCPP configuration JSON instead of direct column • Add getCpoName() method to ChargePoint.Details class • Parse OCPP configuration safely with null checks • Update JSP view to use new getCpoName() method Diagramflowchart LR
A["ChargeBoxRecord.ocppConfiguration"] -->|"parse JSON"| B["ObjectNode"]
B -->|"extract CpoName key"| C["String value"]
D["ChargePoint.Details.getCpoName()"] -->|"calls"| E["getConfigValueSafely()"]
E -->|"returns"| C
F["JSP view"] -->|"calls"| D
F -->|"displays"| C
File Changes1. src/main/java/de/rwth/idsg/steve/repository/dto/ChargePoint.java
|
Code Review by Qodo
1.
|
after #2039, CpoName is not a standalone column anymore. therefore, ChargeBoxRecord.getCpoName() does not exist. we need to get it out of ChargeBoxRecord.getOcppConfiguration()