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:
1 parent
c4183facf6
commit
2af360c775
12 files changed
+74
-11
No files matched your search
+10
@@ -242,6 +242,16 @@ class EventCheckInServiceTest {
|
||||
.satisfies(t -> assertStatus(t, HttpStatus.CONFLICT, "NOT_REGISTERED"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void byGuestIs404WhenTheEventIsDisabled() {
|
||||
guest(9L);
|
||||
event.setEnabled(com.solvway.core.enums.GeneralEnum.FlagYesNo.N);
|
||||
|
||||
assertThatThrownBy(() -> service.byGuest(new EventCheckInService.ByGuestRequest(COMPANY, "gt")))
|
||||
.satisfies(t -> assertStatus(t, HttpStatus.NOT_FOUND, "EVENT_NOT_FOUND"));
|
||||
verify(eventLeadRepository, never()).save(any());
|
||||
}
|
||||
|
||||
@Test
|
||||
void byGuestRefusesOutsideTheEventDays() {
|
||||
guest(9L);
|
||||
|
||||
+12
@@ -352,6 +352,18 @@ class EventGuestServiceTest {
|
||||
assertThat(q.interestIds()).containsExactly(3L);
|
||||
}
|
||||
|
||||
@Test
|
||||
void registerDropsTheSalespersonWhoLeftTheEventTeam() {
|
||||
registrable().setSalespersonUserId(99L);
|
||||
when(registrationService.register(any())).thenReturn(new RegistrationService.RegisterResult("CREATED", "555"));
|
||||
|
||||
service.register(reg());
|
||||
|
||||
ArgumentCaptor<RegistrationService.RegisterRequest> c = ArgumentCaptor.forClass(RegistrationService.RegisterRequest.class);
|
||||
verify(registrationService).register(c.capture());
|
||||
assertThat(c.getValue().salespersonUserId()).isNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
void registerIs404ForAnotherCompanysGuest() {
|
||||
EventGuest g = registrable();
|
||||
|
||||
Reference in new issue
Block a user