Get all first depth fields in the table and the board (#11650)
After discussing it with the team, we now want to query all fields in the table and the board by default. Feeding the cache with exhaustive data will make the side panel's life easier, as it needs all the record fields to determine the actions to enable.
This commit is contained in:
committed by
GitHub
parent
0b7024c94a
commit
efab98a8f8
@ -39,8 +39,28 @@ const mocks: MockedResponse[] = [
|
||||
node {
|
||||
__typename
|
||||
avatarUrl
|
||||
city
|
||||
companyId
|
||||
createdAt
|
||||
createdBy {
|
||||
source
|
||||
workspaceMemberId
|
||||
name
|
||||
context
|
||||
}
|
||||
deletedAt
|
||||
emails {
|
||||
primaryEmail
|
||||
additionalEmails
|
||||
}
|
||||
id
|
||||
intro
|
||||
jobTitle
|
||||
linkedinLink {
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
name {
|
||||
firstName
|
||||
lastName
|
||||
@ -287,6 +307,13 @@ const mocks: MockedResponse[] = [
|
||||
}
|
||||
}
|
||||
}
|
||||
performanceRating
|
||||
phones {
|
||||
primaryPhoneNumber
|
||||
primaryPhoneCountryCode
|
||||
primaryPhoneCallingCode
|
||||
additionalPhones
|
||||
}
|
||||
position
|
||||
taskTargets {
|
||||
edges {
|
||||
@ -533,6 +560,19 @@ const mocks: MockedResponse[] = [
|
||||
}
|
||||
}
|
||||
}
|
||||
updatedAt
|
||||
whatsapp {
|
||||
primaryPhoneNumber
|
||||
primaryPhoneCountryCode
|
||||
primaryPhoneCallingCode
|
||||
additionalPhones
|
||||
}
|
||||
workPreference
|
||||
xLink {
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
}
|
||||
cursor
|
||||
}
|
||||
@ -625,7 +665,6 @@ describe('useLazyLoadRecordIndexTable', () => {
|
||||
await result.current.findManyRecords();
|
||||
});
|
||||
|
||||
expect(Array.isArray(result.current.records)).toBe(true);
|
||||
expect(result.current.records.length).toBe(16);
|
||||
expect(result.current.records).toHaveLength(16);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user