GeezerVison is showing github.com — fix(notifications): route enquiry deep links to sessionPreview, carry roomRef (#846) by Storypapst · Pull Request #943 · OpenResilienceInitiative/ORISO-UserService
Conversation
Storypapst
commented
Aug 2, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Refs OpenResilienceInitiative/ORISO-Frontend#846 (sub-issue, closed by the frontend half)
Refs OpenResilienceInitiative/ORISO-Frontend#844 (bug epic)
Why
"Chat öffnen" on request.new / waiting_room.client.joined dropped consultants on the bare sessions root (timeline audit 2026-08-01). Backend causes: the deep link used /sessions/consultant/sessionView/..., but un-accepted enquiries render under sessionPreview; and a waiting-room client has no Matrix room yet, so buildSessionActionPath returned null, which the frontend turned into the sessions root.
What changed
request.new and waiting_room.client.joined deep links use /sessions/consultant/sessionPreview/<roomRef>/<sessionId> — the list that actually contains an un-accepted enquiry.
- Room-less waiting-room events link to
/sessions/consultant/sessionPreview (the enquiry list) instead of null.
baseParams carry roomRef (the Matrix room id), so the frontend resolves rooms from params instead of string-splitting actionPath.
- Shared params contract: a new test pins every emitted param key to the whitelist mirrored in ORISO-Frontend (
notificationActionTarget.ts, EVENT_PARAM_KEYS). The frontend pins the identical set — a key added on either side alone fails a test there.
Verification
EventNotificationServiceTest: 74/74 green (3 new: enquiry-list fallback, roomRef param, params contract)
- Sibling suites green: TeamDiscussion (11), GroupChatLifecycle (4), EventNotificationController (10)
- Frontend counterpart PR carries the consumer-side tests
Reviewer test plan
- On Pre-Dev (with both fix(notification): replay group-chat reminder idempotency (#845) #846 PRs deployed): as a client, create a new enquiry; as the consultant, click "Chat öffnen" on the
request.new card → you land on that enquiry in the first-enquiries list, not an empty sessions view
- Start an anonymous waiting-room session (no room yet); click the card's action → you land on the enquiry list, not the sessions root
-
GET /users/event-notifications for a message event → params contains roomRef alongside sessionId
- Existing accepted-session message deep links still open the conversation (
sessionView unchanged)
🤖 Generated with Claude Code
Summary by CodeRabbit
-
New Features
- Enquiry notifications now link directly to the consultant’s session preview.
- Notifications include the available Matrix room reference for quicker session access.
- Added a fallback link for sessions without an ID or Matrix room.
-
Bug Fixes
- Updated notification parameters and links to align with the frontend contract.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…mRef
Timeline audit 2026-08-01 (#846): "Chat öffnen" on request.new and
waiting_room.client.joined dropped consultants on the sessions root.
- request.new / waiting_room.client.joined deep links now point at
/sessions/consultant/sessionPreview/... — un-accepted enquiries
render in the preview list, not sessionView
- a waiting-room client without a Matrix room links to the enquiry
list itself instead of a null actionPath (which the frontend turned
into the bare sessions root)
- baseParams carry roomRef (the Matrix room id) so the frontend can
resolve rooms from params instead of string-splitting actionPath
- new contract test pins every emitted param key to the shared
frontend whitelist (ORISO-Frontend notificationActionTarget.ts
EVENT_PARAM_KEYS) — update both sides together
Refs OpenResilienceInitiative/ORISO-Frontend#846
Refs OpenResilienceInitiative/ORISO-Frontend#844
Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Bugbot is not enabled for your account, so this pull request was not reviewed.
Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Aug 2, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Warning
Review limit reached
@kiodreambau, you've reached your PR review limit, so we couldn't start this review.
Next review available in: 8 minutes
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
How can I continue?
After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.
To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.
How do review limits work?
CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.
For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.
Please refer docs for additional details.
Review details
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 5687c5a5-a4ad-4b28-a12d-aee5a0b42f78
📥 Commits
Reviewing files that changed from the base of the PR and between 6341ec8 and 0861aa9.
📒 Files selected for processing (2)
src/main/java/de/caritas/cob/userservice/api/service/notification/EventNotificationService.java
src/test/java/de/caritas/cob/userservice/api/service/notification/EventNotificationServiceTest.java
📝 Walkthrough
Walkthrough
Enquiry notifications now target the consultant session-preview route. Paths include available Matrix room and session identifiers. Notifications fall back to the session-preview list when identifiers are unavailable. Tests validate paths, roomRef, and allowed parameter keys.
Changes
Enquiry notification routing
| Layer / File(s) |
Summary |
Build enquiry paths and parameters src/main/java/de/caritas/cob/userservice/api/service/notification/EventNotificationService.java |
New client-request and waiting-room notifications use buildEnquiryActionPath. The helper adds available room and session identifiers. baseParams adds nonblank roomRef values. |
Validate notification contract src/test/java/de/caritas/cob/userservice/api/service/notification/EventNotificationServiceTest.java |
Tests cover updated routes, room-less fallbacks, roomRef, and the shared frontend parameter whitelist. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Possibly related issues
Suggested reviewers: kiodreambau
🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
| Check name |
Status |
Explanation |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title uses a conventional prefix, names the notifications area, and accurately summarizes the deep-link and roomRef changes. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Validation Evidence |
✅ Passed |
The PR includes relevant automated coverage: 74 JUnit tests, including route, room-less fallback, roomRef, and frontend parameter-contract assertions; the description reports 74/74 green. |
✨ Finishing Touches
📝 Generate docstrings
- Create stacked PR
- Commit on current branch
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
fix/846-enquiry-deeplinks-params
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.
❤️ Share
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 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
`@src/test/java/de/caritas/cob/userservice/api/service/notification/EventNotificationServiceTest.java`:
- Around line 207-227: Update the contract test around the contract set and
producer invocations to cover every notification parameter producer, including
createInquiryAcceptedNotification, the supervisor notification methods, and
createCounselorRenamedNotification. Add consultantName, supervisorName, oldName,
and newName to the backend key collection or reconcile them against the frontend
whitelist so the test fails for any unlisted parameter while preserving coverage
of the existing producer flows.
🪄 Autofix (Beta)
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: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: ef359d84-4fc3-4086-93e2-66bc125438c1
📥 Commits
Reviewing files that changed from the base of the PR and between 2487bd5 and 6341ec8.
📒 Files selected for processing (2)
src/main/java/de/caritas/cob/userservice/api/service/notification/EventNotificationService.java
src/test/java/de/caritas/cob/userservice/api/service/notification/EventNotificationServiceTest.java
📜 Review details
⏰ Context from checks skipped due to timeout. (8)
- GitHub Check: mariadb-contract / MariaDB schema, statistics and replica contracts
- GitHub Check: test, build and Docker validation
- GitHub Check: Redis shared-state contracts
- GitHub Check: required integration tests
- GitHub Check: openapi provider and consumer contracts
- GitHub Check: mariadb-contract / MariaDB schema, statistics and replica contracts
- GitHub Check: required integration tests
- GitHub Check: test and build UserService
🧰 Additional context used
📓 Path-based instructions (2)
src/main/**/*.java
⚙️ CodeRabbit configuration file
src/main/**/*.java: Check behavior against the surrounding ORISO flow, not only types. Flag
missing transaction boundaries, swallowed exceptions, N+1 queries, and
privacy regressions around Matrix identifiers, chat content and user data.
Configuration must stay environment-driven — never hardcode hosts, IPs or
credentials (see ADR-005 / finding DB-M04).
Files:
src/main/java/de/caritas/cob/userservice/api/service/notification/EventNotificationService.java
src/test/**/*.java
⚙️ CodeRabbit configuration file
src/test/**/*.java: Tests must be able to fail. Flag over-mocking that hides the defect,
assertions that cannot break, and missing edge cases.
Files:
src/test/java/de/caritas/cob/userservice/api/service/notification/EventNotificationServiceTest.java
🧠 Learnings (1)
📚 Learning: 2026-07-12T05:15:05.095Z
Learnt from: Storypapst
Repo: OpenResilienceInitiative/ORISO-UserService PR: 420
File: src/main/java/de/caritas/cob/userservice/api/conversation/service/AnonymousConversationCreatorService.java:34-35
Timestamp: 2026-07-12T05:15:05.095Z
Learning: In ORISO-UserService, treat `rocket-chat.enabled` defaulting to `false` (e.g., `Value("${rocket-chat.enabled:false}")`) as an intentional Matrix-only default. Do not flag code paths/config placeholders that use this default-false behavior as a bug in future reviews. Rocket.Chat must be explicitly enabled only by setting `ROCKET_CHAT_ENABLED=true` (or the equivalent `rocket-chat.enabled=true`), consistent with the repository’s `application*.properties`/configuration validator and the disabled Rocket.Chat service wiring.
Applied to files:
src/main/java/de/caritas/cob/userservice/api/service/notification/EventNotificationService.java
🔇 Additional comments (2)
src/main/java/de/caritas/cob/userservice/api/service/notification/EventNotificationService.java (1)
184-184: LGTM!
Also applies to: 226-226, 293-307, 913-933
src/test/java/de/caritas/cob/userservice/api/service/notification/EventNotificationServiceTest.java (1)
95-95: LGTM!
Also applies to: 157-157, 174-199
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 3, 2026
…ract test
Extend allEmittedParamKeysStayInsideTheSharedFrontendContract to invoke
createInquiryAcceptedNotification, the supervisor notification methods and
createCounselorRenamedNotification, and whitelist their content-only keys
(consultantName, supervisorName, oldName, newName) with a note that the
frontend action-target resolver intentionally drops them. Verified red
first: without the whitelist entries the extended sweep fails on
consultantName.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Repair summary
CI-red root cause was catalog drift, not this PR's changes: pre-dev added the scheduled sources HandshakeService.java and SupportRoomService.java to replica-safety-components.json, and this stale branch predated that catalog update, so tests/ci/test_replica_safety_contract.py failed on the CI merge ref. Fixed by merging current origin/pre-dev into the branch (merge, no rebase — review anchors preserved).
Review fix (0861aa9): the frontend-contract test now invokes every param-producing flow (inquiry-accepted, all supervisor notifications, counselor-renamed) and whitelists their content-only keys with an explanatory note; verified red-first.
Local evidence
python3 -m unittest discover tests/ci — 69 tests, OK
./mvnw test -Dtest=EventNotificationServiceTest — 78 tests, 0 failures (red-first: extended sweep failed on consultantName before the whitelist entries)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Aug 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
✅ Action performed
Review finished.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
shazia-k
shazia-k approved these changes
Hassan9215
Awaiting requested review from Hassan9215
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|