Skip to content

The open alternative to Salesforce, designed for AI.

Fix app CI fixtures and registry upload limit (#25531)

Thomas des Francs3c128b3dae05
diff --git a/.github/verdaccio-config.yaml b/.github/verdaccio-config.yaml
index 38e8e83b15a..a592c5abefd 100644
--- a/.github/verdaccio-config.yaml
+++ b/.github/verdaccio-config.yaml
@@ -1,4 +1,6 @@
storage: /tmp/verdaccio-storage
+# Published tarballs are base64-encoded in the registry request body.
+max_body_size: 50mb
auth:
htpasswd:
file: /tmp/verdaccio-htpasswd
diff --git a/packages/twenty-apps/public/last-contact/src/__tests__/last-contact.integration-test.ts b/packages/twenty-apps/public/last-contact/src/__tests__/last-contact.integration-test.ts
index 8b772ee496c..8e593790d67 100644
--- a/packages/twenty-apps/public/last-contact/src/__tests__/last-contact.integration-test.ts
+++ b/packages/twenty-apps/public/last-contact/src/__tests__/last-contact.integration-test.ts
@@ -190,11 +190,8 @@ const createCalendarEventParticipant = async (
};
let cachedWorkspaceMemberId: string | undefined;
-let cachedMessageChannelId: string | undefined;
-const getWorkspaceMemberId = async (
- client: CoreApiClient,
-): Promise<string> => {
+const getWorkspaceMemberId = async (client: CoreApiClient): Promise<string> => {
if (cachedWorkspaceMemberId) {
return cachedWorkspaceMemberId;
}
@@ -206,8 +203,7 @@ const getWorkspaceMemberId = async (
},
});
- const workspaceMemberId =
- result.workspaceMembers?.edges?.[0]?.node?.id;
+ const workspaceMemberId = result.workspaceMembers?.edges?.[0]?.node?.id;
if (!workspaceMemberId) {
throw new Error('No workspace member found in the test workspace');
@@ -218,35 +214,6 @@ const getWorkspaceMemberId = async (
return workspaceMemberId;
};
-const getAnyMessageChannelId = async (
- client: CoreApiClient,
-): Promise<string> => {
- if (cachedMessageChannelId) {
- return cachedMessageChannelId;
- }
-
- const result = await client.query({
- messageChannelMessageAssociations: {
- __args: { first: 1 },
- edges: { node: { id: true, messageChannelId: true } },
- },
- });
-
- const messageChannelId =
- result.messageChannelMessageAssociations?.edges?.[0]?.node
- ?.messageChannelId;
-
- if (!messageChannelId) {
- throw new Error(
- 'No message channel found — run against a workspace with seeded messaging data',
- );
- }
-
- cachedMessageChannelId = messageChannelId;
-
- return messageChannelId;
-};
-
const createMessage = async (
client: CoreApiClient,
{ receivedAt }: { receivedAt: string },
@@ -266,23 +233,6 @@ const createMessage = async (
return requireId(result.createMessage?.id, 'createMessage');
};
-const createMessageChannelAssociation = async (
- client: CoreApiClient,
- { messageId, messageChannelId }: { messageId: string; messageChannelId: string },
-): Promise<string> => {
- const result = await client.mutation({
- createMessageChannelMessageAssociation: {
- __args: { data: { messageId, messageChannelId } },
- id: true,
- },
- });
-
- return requireId(
- result.createMessageChannelMessageAssociation?.id,
- 'createMessageChannelMessageAssociation',
- );
-};
-
const createMessageParticipant = async (
client: CoreApiClient,
{
@@ -423,7 +373,6 @@ describe('last contact handlers', () => {
const createdParticipantIds: string[] = [];
const createdMessageParticipantIds: string[] = [];
const createdCalendarEventIds: string[] = [];
- const createdMessageAssociationIds: string[] = [];
const createdMessageIds: string[] = [];
const createdPersonIds: string[] = [];
const createdOpportunityIds: string[] = [];
@@ -435,12 +384,6 @@ describe('last contact handlers', () => {
): Promise<string> => {
const messageId = await createMessage(client, { receivedAt });
createdMessageIds.push(messageId);
- const messageChannelId = await getAnyMessageChannelId(client);
- const associationId = await createMessageChannelAssociation(client, {
- messageId,
- messageChannelId,
- });
- createdMessageAssociationIds.push(associationId);
const participantId = await createMessageParticipant(client, {
messageId,
personId,
@@ -559,15 +502,6 @@ describe('last contact handlers', () => {
}
createdCalendarEventIds.length = 0;
- for (const id of createdMessageAssociationIds) {
- await client
- .mutation({
- destroyMessageChannelMessageAssociation: { __args: { id }, id: true },
- })
- .catch(() => {});
- }
- createdMessageAssociationIds.length = 0;
-
for (const id of createdMessageIds) {
await client
.mutation({ destroyMessage: { __args: { id }, id: true } })
@@ -1091,7 +1025,7 @@ describe('last contact handlers', () => {
expect(opportunityContact.lastContactItemMessageId).toBe(messageId);
});
- it("recomputes a company last contact when a person joins it after being contacted", async () => {
+ it('recomputes a company last contact when a person joins it after being contacted', async () => {
const workspaceMemberId = await getWorkspaceMemberId(client);
const companyId = await createCompany(client);
createdCompanyIds.push(companyId);