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
+13
-1
@@ -36,6 +36,7 @@ class AdminEventLeadServiceAuditChangesTest {
|
||||
private RestTemplateCustomUtil rest;
|
||||
private AdminEventLeadService service;
|
||||
private MockedStatic<HttpReqRespUtils> http;
|
||||
private final Map<String, Object> detail = new LinkedHashMap<>();
|
||||
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
@@ -61,7 +62,7 @@ class AdminEventLeadServiceAuditChangesTest {
|
||||
.thenReturn(ResponseEntity.ok(List.of(
|
||||
Map.of("id", 3L, "companyId", COMPANY, "name", "Cookware", "active", true, "sortOrder", 0),
|
||||
Map.of("id", 4L, "companyId", COMPANY, "name", "Kitchen", "active", true, "sortOrder", 0))));
|
||||
Map<String, Object> d = new LinkedHashMap<>();
|
||||
Map<String, Object> d = detail;
|
||||
d.put("eventLeadUuid", EL);
|
||||
d.put("companyId", COMPANY);
|
||||
d.put("eventUuid", EV);
|
||||
@@ -98,6 +99,17 @@ class AdminEventLeadServiceAuditChangesTest {
|
||||
assertThat(json).doesNotContain("private call note", "old note", "HOT", "2027-01-20");
|
||||
}
|
||||
|
||||
@Test
|
||||
void update_attendedEqualToCurrentStateIsNotAudited() {
|
||||
detail.put("attendedAt", "2027-01-20T10:00:00");
|
||||
|
||||
update(new AdminEventLeadUpdateRequest(21L, "WARM", "OPEN", List.of(3L), "2027-01-20", "old note", true));
|
||||
assertThat(AuditChanges.current()).isNull();
|
||||
|
||||
update(new AdminEventLeadUpdateRequest(21L, "WARM", "OPEN", List.of(3L), "2027-01-20", "old note", false));
|
||||
assertThat((List<String>) AuditChanges.current().get("fields")).containsExactly("attended");
|
||||
}
|
||||
|
||||
@Test
|
||||
void update_nothingChangedRecordsNothing() {
|
||||
update(new AdminEventLeadUpdateRequest(21L, "WARM", "OPEN", List.of(3L), "2027-01-20", "old note"));
|
||||
|
||||
Reference in new issue
Block a user