Migrate schema to service ids

This commit is contained in:
Fedor Indutny 2023-08-16 22:54:39 +02:00 committed by Jamie Kyle
parent 71958f8a01
commit 8b0da36caa
258 changed files with 4795 additions and 2613 deletions

View file

@ -39,7 +39,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
timestamp: bootstrap.getTimestamp(),
messages: [
{
senderUUID: contact.device.uuid,
senderAci: contact.device.aci,
timestamp: messageTimestamp,
},
],
@ -61,7 +61,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
const openConvo = async (contact: PrimaryDevice): Promise<void> => {
debug('opening conversation', contact.profileName);
const item = leftPane.locator(
`[data-testid="${contact.toContact().uuid}"]`
`[data-testid="${contact.toContact().aci}"]`
);
await item.click();

View file

@ -60,7 +60,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
timestamp: bootstrap.getTimestamp(),
messages: [
{
senderUUID: contact.device.uuid,
senderAci: contact.device.aci,
timestamp: messageTimestamp,
},
],
@ -91,7 +91,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
timestamp: bootstrap.getTimestamp(),
messages: [
{
senderUUID: contact.device.uuid,
senderAci: contact.device.aci,
timestamp: messageTimestamp,
},
],

View file

@ -50,7 +50,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
timestamp: bootstrap.getTimestamp(),
messages: [
{
senderUUID: contact.device.uuid,
senderAci: contact.device.aci,
timestamp: messageTimestamp,
},
],
@ -67,7 +67,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
{
const leftPane = window.locator('#LeftPane');
const item = leftPane.locator(
`[data-testid="${first.toContact().uuid}"] >> text=${LAST_MESSAGE}`
`[data-testid="${first.toContact().aci}"] >> text=${LAST_MESSAGE}`
);
await item.click();
}

View file

@ -47,7 +47,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
timestamp: bootstrap.getTimestamp(),
messages: [
{
senderUUID: contact.device.uuid,
senderAci: contact.device.aci,
timestamp: messageTimestamp,
},
],
@ -63,7 +63,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
`Pong from mock server ${i + 1} / ${MESSAGE_BATCH_SIZE}`,
{
timestamp: messageTimestamp,
destinationUUID: contact.device.uuid,
destinationServiceId: contact.device.aci,
}
)
);

View file

@ -50,7 +50,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
const leftPane = window.locator('#LeftPane');
const item = leftPane.locator(
`[data-testid="${lastContact?.toContact().uuid}"]`
`[data-testid="${lastContact?.toContact().aci}"]`
);
await item.waitFor();