Backend:
- Add deleteByIdAndUserId to MeteringPointRepository
- Add deleteOwnMeteringPoint with validation (owner, state checks)
- Add DELETE /{id} endpoint to MeteringPointController
Frontend:
- Add deleteMeteringPoint to MeteringPointService
- Add delete button with confirmation dialog
- Only show delete for inactive points (NEW, REJECTED, ERROR)
Business Rules:
- Only owner can delete own metering points
- Only inactive points (NEW, REJECTED, ERROR) can be deleted
- ACTIVE and WAITING_FOR_CONSENT points cannot be deleted
Tests:
- Add MeteringPointServiceTest with 10 unit tests
- All 37 tests passing
|
||
|---|---|---|
| .idea | ||
| .mvn/wrapper | ||
| eeg_backend | ||
| eeg_frontend | ||
| .gitattributes | ||
| .gitignore | ||
| AGENTS.md | ||
| ai-context.ps1 | ||
| mvnw | ||
| mvnw.cmd | ||
| pom.xml | ||