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 — Provide tenant-scoped contact details for requested contact-sheet mail by Storypapst · Pull Request #320 · OpenResilienceInitiative/ORISO-AgencyService

Conversation

@Storypapst

@Storypapst Storypapst commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

What happened

The requested contact-sheet mail needs the counselling centre's maintained contact details. AgencyService already stores them, but UserService has no protected read for the centre attached to the seeker's session. This PR provides that read without treating the agency website as a booking link.

What we need to do

  • Review the technical-user access and tenant check.
  • Merge this contract before the UserService contact-sheet sender.
  • On Dev, confirm a technical request returns maintained values for one agency and another tenant cannot retrieve them.

Fixed in this PR

  • A technical-user-only endpoint reads one active agency and returns its name, phone, email and opening hours when its tenant matches the requested tenant.
  • Unknown, deleted and cross-tenant agencies return no contact details.
  • No booking URL or fallback value is generated.

Still open

  • This is an AgencyService contract only. The authenticated seeker request, UserService sender, seven email variants and Dev mailbox receipt remain in the parent issue.
  • Human review, merge and Dev deployment remain open.

How to test it quickly

  • As the technical user, request contact details for an active agency with its tenant ID. Expect its maintained name, phone, email and opening hours.
  • Change the tenant ID or use a deleted/unknown agency. Expect 404 and no contact data.
  • Try an agency-admin token or no token. Expect 403 or 401.

For developers — contract and local verification (skip if you only need the status):

GET /internal/agencies/{agencyId}/contact-details?tenantId={expectedTenantId}
Response: {agencyId,tenantId,name,phone,email,openingHours}; nullable contact fields are not filled with defaults.
Security: /internal/agencies/** requires TECHNICAL_USER. Service compares expectedTenantId with the active agency row.
Base: dev. Head: c82e089. Java 21 focused service/security tests: 42 green. Full local test suite: 849 green, 0 failures/errors/skips. package -DskipTests (including checkstyle validation): success. No Dev deployment or mailbox receipt claimed.

Closes #319. Refs OpenResilienceInitiative/ORISO-Frontend#875.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Storypapst
feat: expose tenant-scoped agency contact details
c82e089
@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

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

Review profile: ASSERTIVE

Plan: Team

Run ID: ddcfaf7c-33bd-4969-b663-1caa35405abe

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@Storypapst
Storypapst requested review from Hassan9215 and Shirloin September 26, 2026 07:50
This was referenced Sep 26, 2026
Provide tenant-scoped agency contact details for requested contact-sheet mail #319
Closed
Feature request: contact-sheet mail — how to reach your counselling service OpenResilienceInitiative/ORISO-Frontend#875
Closed
feat: send a seeker-requested counselling contact sheet OpenResilienceInitiative/ORISO-UserService#1301
Merged
Send a requested, session-bound counselling-centre contact sheet OpenResilienceInitiative/ORISO-UserService#1300
Closed
Let seekers explicitly request their counselling-centre contact sheet OpenResilienceInitiative/ORISO-Frontend#1575
Closed
EPIC: transactional e-mails — one design system across every sending path OpenResilienceInitiative/ORISO-Frontend#828
Open
Shirloin
Shirloin approved these changes Sep 30, 2026
View reviewed changes

@Shirloin Shirloin left a comment

Copy link
Copy Markdown
Contributor

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.

Approve. The new internal contact-details read is limited to the technical user, and it returns data only for an active agency that belongs to the requested tenant.

Verified locally on JDK 21: the authorization IT (7/7) and AgencyServiceTest (35/35) pass. Removing the tenant check turns the new service test red, so the cross-tenant rule is guarded. The UserService client in #1301 calls this path with the technical token and checks the agency and tenant IDs on the response, so the contract matches.

Note: "Closes #319" will not auto-close on a merge into dev; close it after the Dev check.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Storypapst Storypapst mentioned this pull request Sep 30, 2026
Decide: does a Träger without its own mail server send through the platform server? OpenResilienceInitiative/ORISO-Frontend#1562
Closed
8 tasks
@Storypapst Storypapst added this to ORISO Roadmap Oct 1, 2026
@Storypapst
Storypapst requested review from Shirloin and shazia-k October 1, 2026 22:42
@Storypapst Storypapst self-assigned this Oct 1, 2026
shazia-k
shazia-k approved these changes Oct 2, 2026
View reviewed changes
@shazia-k
shazia-k merged commit 274fc6b into dev Oct 2, 2026
14 checks passed

Uh oh!

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

@shazia-k
shazia-k deleted the feat/875-contact-sheet-data branch October 2, 2026 05:13
@Hassan9215 Hassan9215 mentioned this pull request Oct 8, 2026
Release AgencyService v2.0.11 #333
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
@Hassan9215 Hassan9215 Awaiting requested review from Hassan9215
@Shirloin Shirloin Awaiting requested review from Shirloin

Uh oh!

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

Assignees

@Storypapst Storypapst

Labels

None yet

Projects

ORISO Roadmap
Status: No status

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.

3 participants

@Storypapst @Shirloin @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.