fix: address final review of event invitations

Mask invite, check-in and registration-link tokens in gateway logs.
Audit the attended flag only when it really changes.
Drop a salesperson who left the event team from invite registrations.
Answer 404 for check-in by guest on a disabled event.
Deployment notes and the release-check record updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-01 22:00:47 +08:00
1 parent c4183facf6
commit 2af360c775
12 files changed
+74 -11

No files matched your search

@@ -95,7 +95,9 @@ public class EventCheckInService {
.filter(x -> company == x.getCompanyId())
.orElseThrow(() -> notFound("GUEST_NOT_FOUND"));
if (g.getEventLeadId() == null) throw new ResponseStatusException(HttpStatus.CONFLICT, "NOT_REGISTERED");
if (!EventDays.isDuring(event(g.getCompanyId(), g.getEventUuid()), LocalDateTime.now())) {
Event event = event(g.getCompanyId(), g.getEventUuid());
if (event.getEnabled() != GeneralEnum.FlagYesNo.Y) throw notFound("EVENT_NOT_FOUND");
if (!EventDays.isDuring(event, LocalDateTime.now())) {
throw new ResponseStatusException(HttpStatus.CONFLICT, "NOT_EVENT_DAY");
}
EventLead el = eventLeadRepository.findById(g.getEventLeadId()).orElseThrow(() -> notFound("GUEST_NOT_FOUND"));
@@ -194,8 +194,12 @@ public class EventGuestService {
+ eventLeadRepository.countWalkIns(g.getEventUuid()) >= event.getCapacity()) {
throw new ResponseStatusException(HttpStatus.CONFLICT, "EVENT_FULL");
}
Long stored = g.getSalespersonUserId();
// null when the salesperson is no longer on the event team
Long salesperson = stored != null && eventSalespersonRepository.findByEventUuid(g.getEventUuid()).stream()
.anyMatch(s -> s.getUserId() == stored) ? stored : null;
return registrationService.register(new RegistrationService.RegisterRequest(g.getCompanyId(), g.getEventUuid(),
g.getSalespersonUserId(), req.name(), req.mobileE164(), req.email(), req.companyName(), req.jobTitle(),
salesperson, req.name(), req.mobileE164(), req.email(), req.companyName(), req.jobTitle(),
req.interestIds(), req.consentNoticeId(), req.consentAt(), false, "INVITE", g.getId()));
}
}