GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(profile): store the counsellor's live-chat menu-bar preference on the profile by Storypapst · Pull Request #1225 · OpenResilienceInitiative/ORISO-UserService

Conversation

@Storypapst

@Storypapst Storypapst commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Why

Counsellors have the setting "Live Chat über Menü Leiste aktivieren" (control live-chat availability from the navigation rail instead of My Profile). The frontend stores it only in localStorage (oriso_liveChatViaSidebar), so it is lost on another browser or device. Product owner decision: it belongs to the counsellor's profile.

What

  • New column consultant.live_chat_via_sidebar TINYINT(1) NOT NULL DEFAULT 0 — Liquibase changeset 20260922_consultant_live_chat_via_sidebar (sqlFile + rollback), included in userservice-master.xml. Existing counsellors get 0 = today's behaviour.
  • Consultant.liveChatViaSidebar (@Builder.Default false), patched in UserServiceMapper#consultantOf, mapped in UserDtoMapper#mapOf(PatchUserDTO, …), exposed by ConsultantDataProvider. Modelled on walkThroughEnabled.
  • Test fixture: UserControllerE2EIT#givenAFullPatchDto now pins magicLinkLoginEnabled=false. The shared EasyRandom drew true once PatchUserDTO gained a field, and a random true is rejected with 400 for fixtures without a profile email — a latent order/sequence dependency, not a behaviour change.

Contract (frontend builds against exactly this)

  • PATCH /users/data (PatchUserDTO): optional boolean liveChatViaSidebar. A payload with only this field is valid.
  • Non-consultant caller: mirrors the consultant-only available — accepted and silently ignored (204, nothing stored). No 400.
  • GET /users/data (UserDataResponseDTO): boolean liveChatViaSidebar for consultants, default false, never null for them. For askers it is null, the same as isWalkThroughEnabled and available — treat null as false.

Evidence

  • Red first (UserControllerE2EIT, before implementation): 3/3 failing —
    getUserDataShouldReturnLiveChatViaSidebarFalseByDefaultForConsultant: No value at JSON path "liveChatViaSidebar",
    patchUserDataShouldStoreLiveChatViaSidebarOnConsultantProfile: Status expected:<204> but was:<400> ("Invalid payload: at least one property expected"),
    patchUserDataShouldIgnoreLiveChatViaSidebarForAdviceSeeker: Status expected:<204> but was:<400>.
  • Green: those 3 pass (PATCH true → GET true → PATCH false → GET false; asker PATCH → 204, GET null).
  • Affected classes (UserControllerE2EIT, UserControllerIT, UserDtoMapperTest, UserServiceMapperTest, PatchUserDTOTest, ConsultantTest, ConsultantDataProviderTest, UserAccountControllerDelegateTest): 320 tests, 0 failures.
  • DatabaseChangelogDriftIT against an empty MariaDB 11.0.6: changeset ran, Hibernate validate passed; column is tinyint(1) NOT NULL DEFAULT 0.
  • Full ./mvnw test (JDK 21): 4877 tests, 0 failures, 0 errors, BUILD SUCCESS.

No new bean dependencies on controller-level classes, so no @MockitoBean changes. Frontend not touched.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@Storypapst @claude
feat(profile): store the counsellor's live-chat menu-bar preference o…
91ee964
…n the profile

"Live Chat über Menü Leiste aktivieren" lets a counsellor control live-chat
availability from the navigation rail instead of My Profile. The frontend kept
it in localStorage only, so it was lost on another browser or device. It now
belongs to the counsellor's profile.

- new consultant.live_chat_via_sidebar column, TINYINT(1) NOT NULL DEFAULT 0
  (Liquibase changeset 20260922_consultant_live_chat_via_sidebar)
- PATCH /users/data accepts optional boolean liveChatViaSidebar; like the
  consultant-only `available`, it is accepted and silently ignored for
  non-consultants (204, nothing stored)
- GET /users/data returns liveChatViaSidebar for consultants (default false);
  askers get null, as with isWalkThroughEnabled and available
- test fixture: pin magicLinkLoginEnabled=false in the E2E full-patch DTO; the
  shared EasyRandom drew true once PatchUserDTO gained a field, and a random
  true is rejected for fixtures without a profile email

Co-Authored-By: Claude Opus 5 <[email protected]>
@Storypapst
Storypapst requested review from nikunjdecyb and shazia-k September 21, 2026 23:14
@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 16 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 103 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: OpenResilienceInitiative/ORISO-UserService/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: 5fb77b7f-b9b5-490b-8569-13b6b0acf5d8

📥 Commits

Reviewing files that changed from the base of the PR and between 849c67f and 91ee964.

⛔ Files ignored due to path filters (1)
  • api/userservice.yaml is excluded by none and included by none
📒 Files selected for processing (11)
  • src/main/java/de/caritas/cob/userservice/api/UserServiceMapper.java
  • src/main/java/de/caritas/cob/userservice/api/adapters/web/dto/UserDataResponseDTO.java
  • src/main/java/de/caritas/cob/userservice/api/adapters/web/mapping/UserDtoMapper.java
  • src/main/java/de/caritas/cob/userservice/api/facade/userdata/ConsultantDataProvider.java
  • src/main/java/de/caritas/cob/userservice/api/model/Consultant.java
  • src/main/resources/db/changelog/changeset/20260922_consultant_live_chat_via_sidebar/changeSet.xml
  • src/main/resources/db/changelog/changeset/20260922_consultant_live_chat_via_sidebar/migrate.sql
  • src/main/resources/db/changelog/userservice-master.xml
  • src/test/java/de/caritas/cob/userservice/api/UserServiceMapperTest.java
  • src/test/java/de/caritas/cob/userservice/api/adapters/web/controller/UserControllerE2EIT.java
  • src/test/java/de/caritas/cob/userservice/api/adapters/web/mapping/UserDtoMapperTest.java

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-21T23:18:04.953739Z 91ee964 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst Storypapst mentioned this pull request Sep 21, 2026
feat(live-chat): keep the menu-bar preference in the counsellor's profile; same rule on mobile OpenResilienceInitiative/ORISO-Frontend#1510
Merged
@Storypapst

Storypapst commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

Frontend counterpart: OpenResilienceInitiative/ORISO-Frontend#1510 (reads/writes liveChatViaSidebar via /users/data, one-time migration from the old browser-only value, same rule on mobile). Merge/deploy this one first; the frontend falls back to the browser value until then.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

shazia-k
shazia-k approved these changes Sep 22, 2026
View reviewed changes
@shazia-k
shazia-k merged commit b75cb54 into dev Sep 22, 2026
12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@shazia-k
shazia-k deleted the feat/consultant-live-chat-via-sidebar branch September 22, 2026 09:49
@Hassan9215 Hassan9215 mentioned this pull request Sep 23, 2026
Release UserService v2.0.8 #1249
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shazia-k shazia-k shazia-k approved these changes
@nikunjdecyb nikunjdecyb Awaiting requested review from nikunjdecyb

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

2 participants

@Storypapst @shazia-k
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.