Backporting the changes for GitHub issue 465/PR #843 - #885
Backporting the changes for GitHub issue 465/PR #843#885IvarKoreman-Ritense wants to merge 1 commit into
Conversation
…t/gzac-issues#465 (Merged to V13 in PR #843)
📝 WalkthroughWalkthroughAdds authorized Camunda timer skipping from the case Progress tab. The change includes timer authorization, REST endpoints, audit events, frontend confirmation controls, BPMN overlays, translations, permissions, tests, and documentation. ChangesCamunda timer authorization
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant ProgressTab
participant ProcessTimerResource
participant AuthorizationService
participant ManagementService
participant AuditLog
User->>ProgressTab: Select timer skip
ProgressTab->>ProcessTimerResource: Request timer skip
ProcessTimerResource->>AuthorizationService: Check COMPLETE permission
ProcessTimerResource->>ManagementService: Execute timer job
ProcessTimerResource->>AuditLog: Publish ProcessTimerSkippedEvent
ProcessTimerResource-->>ProgressTab: Return 204
ProgressTab->>ProgressTab: Reload process data and diagram
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@documentation/features/case/tabs/README.md`:
- Line 116: Update the Progress tab description to explicitly state that
skipping a waiting timer requires the PBAC complete permission on CamundaTimer,
replacing the vague “required permission” wording while preserving the rest of
the description.
In
`@frontend/projects/valtimo/dossier/src/lib/components/dossier-detail/tab/progress/progress.component.ts`:
- Around line 75-87: Update the progress component’s empty-list handling around
the process instance selection logic to emit an explicit no-selection value when
processDocumentInstances is empty. In progress.component.html, guard the process
details and diagram bindings on a selected process value, and display the
no-process message when the item list is empty; apply these changes at
frontend/projects/valtimo/dossier/src/lib/components/dossier-detail/tab/progress/progress.component.ts:75-87
and
frontend/projects/valtimo/dossier/src/lib/components/dossier-detail/tab/progress/progress.component.html:78-84.
In
`@frontend/projects/valtimo/process/src/lib/process-diagram/process-diagram.component.ts`:
- Around line 137-139: Update the change-detection condition in
process-diagram.component.ts to also trigger renderSkipTimerOverlays() when the
skipTimerLabel input changes, ensuring existing timer buttons receive the
updated title and aria-label.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 5972abfe-ce90-4895-b120-fbf0aa4f43b5
📒 Files selected for processing (35)
backend/apps/dev/src/main/resources/config/pbac/process-timer.permission.jsonbackend/core/src/main/kotlin/com/ritense/valtimo/autoconfiguration/ValtimoCamundaAutoConfiguration.ktbackend/core/src/main/kotlin/com/ritense/valtimo/camunda/authorization/CamundaTimerActionProvider.ktbackend/core/src/main/kotlin/com/ritense/valtimo/camunda/authorization/CamundaTimerExecutionMapper.ktbackend/core/src/main/kotlin/com/ritense/valtimo/camunda/authorization/CamundaTimerSpecification.ktbackend/core/src/main/kotlin/com/ritense/valtimo/camunda/authorization/CamundaTimerSpecificationFactory.ktbackend/core/src/main/kotlin/com/ritense/valtimo/camunda/domain/CamundaTimer.ktbackend/core/src/test/kotlin/com/ritense/valtimo/camunda/authorization/CamundaTimerExecutionMapperTest.ktbackend/process-document/src/main/java/com/ritense/processdocument/autoconfigure/ProcessDocumentAutoConfiguration.javabackend/process-document/src/main/java/com/ritense/processdocument/security/config/ProcessDocumentHttpSecurityConfigurer.javabackend/process-document/src/main/java/com/ritense/processdocument/service/impl/CamundaProcessJsonSchemaDocumentAuditService.javabackend/process-document/src/main/kotlin/com/ritense/processdocument/event/ProcessTimerSkippedEvent.ktbackend/process-document/src/main/kotlin/com/ritense/processdocument/service/ProcessInstanceCaseAccessService.ktbackend/process-document/src/main/kotlin/com/ritense/processdocument/web/rest/ProcessTimerResource.ktbackend/process-document/src/main/kotlin/com/ritense/processdocument/web/rest/dto/JobInspectionDto.ktbackend/process-document/src/test/kotlin/com/ritense/processdocument/event/ProcessTimerSkippedEventTest.ktbackend/process-document/src/test/kotlin/com/ritense/processdocument/service/ProcessInstanceCaseAccessServiceTest.ktbackend/process-document/src/test/kotlin/com/ritense/processdocument/service/impl/CamundaProcessJsonSchemaDocumentAuditServiceTest.ktbackend/process-document/src/test/kotlin/com/ritense/processdocument/web/rest/ProcessTimerResourceTest.ktdocumentation/features/access-control/configurable-elements.mddocumentation/features/case/tabs/README.mddocumentation/features/process/README.mddocumentation/release-notes/12.x.x/12.42.0/README.mdfrontend/projects/valtimo/config/assets/core/en.jsonfrontend/projects/valtimo/config/assets/core/nl.jsonfrontend/projects/valtimo/dossier/src/lib/components/dossier-detail/tab/progress/progress.component.htmlfrontend/projects/valtimo/dossier/src/lib/components/dossier-detail/tab/progress/progress.component.tsfrontend/projects/valtimo/dossier/src/lib/models/index.tsfrontend/projects/valtimo/dossier/src/lib/models/pending-skip.model.tsfrontend/projects/valtimo/dossier/src/lib/models/process-job.model.tsfrontend/projects/valtimo/dossier/src/lib/services/dossier-process-timer.service.tsfrontend/projects/valtimo/dossier/src/lib/services/index.tsfrontend/projects/valtimo/process/src/lib/models/process.model.tsfrontend/projects/valtimo/process/src/lib/process-diagram/process-diagram.component.scssfrontend/projects/valtimo/process/src/lib/process-diagram/process-diagram.component.ts
Backporting the changes for GitHub issue generiekzaakafhandelcomponent/gzac-issues#465 (Merged to V13 in PR #843)
EC: new ticket for this is https://github.com/generiekzaakafhandelcomponent/atlas-internal/issues/574
Summary by CodeRabbit
New Features
Documentation