Improve seeds 3 (#12740)

- Fix an issue where custom object were seeded with 2 views, and with
the wrong icon
- ACME becomes YCombinator
- Allow 2 workspaces to have different metadata seeded
- Add many seeds for messages
- Add many seeds for calendar events
- Randomize createdBy for person and companies

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Félix Malfait
2025-06-20 07:05:44 +02:00
committed by GitHub
co-authored by greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
parent 79e5ccfd37
commit cb6a76fd43
25 changed files with 4511 additions and 3356 deletions
@@ -4,11 +4,11 @@ exports[`calendarEventsResolver (e2e) should find many calendarEvents 1`] = `
{
"createdAt": Any<String>,
"deletedAt": null,
"description": "Discuss project progress",
"description": "Daily team synchronization meeting to discuss progress and blockers.",
"endsAt": Any<String>,
"id": "20202020-1c0e-494c-a1b6-85b1c6fefaa5",
"id": "20202020-0001-4e7c-8001-123456789cde",
"startsAt": Any<String>,
"title": "Meeting with Christoph",
"title": "Team Standup",
"updatedAt": Any<String>,
}
`;
@@ -17,11 +17,11 @@ exports[`calendarEventsResolver (e2e) should find one calendarEvent 1`] = `
{
"createdAt": Any<String>,
"deletedAt": null,
"description": "Discuss project progress",
"description": "Daily team synchronization meeting to discuss progress and blockers.",
"endsAt": Any<String>,
"id": "20202020-1c0e-494c-a1b6-85b1c6fefaa5",
"id": "20202020-0001-4e7c-8001-123456789cde",
"startsAt": Any<String>,
"title": "Meeting with Christoph",
"title": "Team Standup",
"updatedAt": Any<String>,
}
`;
@@ -4,12 +4,17 @@ exports[`messagesResolver (e2e) should find many messages 1`] = `
{
"createdAt": Any<String>,
"deletedAt": null,
"id": "20202020-04c8-4f24-93f2-764948e95014",
"subject": "Inquiry Regarding Topic",
"text": "Good Morning,
I am writing to inquire about information. Could you please provide me with details regarding this topic?
Your assistance in this matter would be greatly appreciated. Thank you in advance for your prompt response.
Best regards,Tim",
"id": "20202020-0001-4e7c-8001-123456789bcd",
"subject": "Meeting Request",
"text": "Hello,
I hope this email finds you well. I am writing to request a meeting. I believe it would be beneficial for both parties to collaborate and explore potential opportunities.
Would you be available for a meeting sometime next week? Please let me know your availability, and I will arrange a suitable time.
Looking forward to your response.
Best regards",
"updatedAt": Any<String>,
}
`;
@@ -18,12 +23,17 @@ exports[`messagesResolver (e2e) should find one message 1`] = `
{
"createdAt": Any<String>,
"deletedAt": null,
"id": "20202020-2b8a-405d-8f42-e820ca921421",
"id": "20202020-0001-4e7c-8001-123456789bcd",
"subject": "Meeting Request",
"text": "Hello,
I hope this email finds you well. I am writing to request a meeting. I believe it would be beneficial for both parties to collaborate and explore potential opportunities. Would you be available for a meeting sometime next week? Please let me know your availability, and I will arrange a suitable time.
Looking forward to your response.
Best regards",
"text": "Hello,
I hope this email finds you well. I am writing to request a meeting. I believe it would be beneficial for both parties to collaborate and explore potential opportunities.
Would you be available for a meeting sometime next week? Please let me know your availability, and I will arrange a suitable time.
Looking forward to your response.
Best regards",
"updatedAt": Any<String>,
}
`;
@@ -22,7 +22,7 @@ describe('calendarEventsResolver (e2e)', () => {
const edges = data.edges;
expect(edges.length).toEqual(1);
expect(edges.length).toEqual(60);
const calendarEvent = edges[0].node;
@@ -22,7 +22,7 @@ describe('messagesResolver (e2e)', () => {
const edges = data.edges;
expect(edges.length).toEqual(3);
expect(edges.length).toEqual(60);
const message1 = edges[0].node;
@@ -31,8 +31,8 @@ describe('updateOneObjectRecordsPermissions', () => {
objectMetadataSingularName: 'view',
gqlFields: 'id',
filter: {
icon: {
eq: 'IconCat',
name: {
eq: 'All Pets',
},
},
});
@@ -50,7 +50,7 @@ describe('updateOneObjectRecordsPermissions', () => {
gqlFields: 'id',
recordId: allPetsViewId,
data: {
icon: 'IconCat',
icon: 'IconList',
},
});