fix(scheduling-webui): keep invitation delivery explicit
This commit is contained in:
@@ -136,7 +136,8 @@ assert.match(api, /method: "PATCH"/);
|
|||||||
assert.match(api, /\/api\/v1\/scheduling\/people\?/);
|
assert.match(api, /\/api\/v1\/scheduling\/people\?/);
|
||||||
assert.doesNotMatch(api, /address-lookup/);
|
assert.doesNotMatch(api, /address-lookup/);
|
||||||
assert.match(page, /slots: slots\.map\(\(slot\) => \(\{/);
|
assert.match(page, /slots: slots\.map\(\(slot\) => \(\{/);
|
||||||
assert.match(page, /participants: participants[\s\S]*create_participant_invitations: true/);
|
assert.match(page, /participants: participants\.map\(participantPayload\)/);
|
||||||
|
assert.doesNotMatch(page, /create_participant_invitations/);
|
||||||
assert.match(api, /\/api\/v1\/scheduling\/requests\/\$\{requestId\}\/responses/);
|
assert.match(api, /\/api\/v1\/scheduling\/requests\/\$\{requestId\}\/responses/);
|
||||||
assert.match(api, /\/api\/v1\/scheduling\/requests\/\$\{requestId\}\/responses\/me/);
|
assert.match(api, /\/api\/v1\/scheduling\/requests\/\$\{requestId\}\/responses\/me/);
|
||||||
assert.match(api, /issueSchedulingParticipantInvitation\([\s\S]*json\(\{ action, participant_revision: participantRevision \}\)/);
|
assert.match(api, /issueSchedulingParticipantInvitation\([\s\S]*json\(\{ action, participant_revision: participantRevision \}\)/);
|
||||||
|
|||||||
@@ -643,8 +643,7 @@ export default function SchedulingPage({ settings, auth }: { settings: ApiSettin
|
|||||||
location: location.trim() || null,
|
location: location.trim() || null,
|
||||||
metadata: slot.metadata ?? {}
|
metadata: slot.metadata ?? {}
|
||||||
})),
|
})),
|
||||||
participants: participants.map(participantPayload),
|
participants: participants.map(participantPayload)
|
||||||
create_participant_invitations: true
|
|
||||||
});
|
});
|
||||||
setRequests((items) => [request, ...items]);
|
setRequests((items) => [request, ...items]);
|
||||||
} else {
|
} else {
|
||||||
@@ -664,8 +663,7 @@ export default function SchedulingPage({ settings, auth }: { settings: ApiSettin
|
|||||||
location: location.trim() || null,
|
location: location.trim() || null,
|
||||||
metadata: slot.metadata ?? {}
|
metadata: slot.metadata ?? {}
|
||||||
})),
|
})),
|
||||||
participants: participants.map(participantPayload),
|
participants: participants.map(participantPayload)
|
||||||
create_participant_invitations: true
|
|
||||||
});
|
});
|
||||||
replaceRequest(request);
|
replaceRequest(request);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user