-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix all broken CIs #7439
Fix all broken CIs #7439
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This pull request focuses on refactoring and improving test files across multiple modules, with a particular emphasis on standardizing test setups and updating GraphQL fragments.
- Introduced
getJestMetadataAndApolloMocksWrapper
utility function to simplify and standardize test setups across multiple test files - Updated GraphQL fragments in
personFragments.ts
, replacingPERSON_FRAGMENT
with more specificPERSON_FRAGMENT_WITH_DEPTH_ZERO_RELATIONS
andPERSON_FRAGMENT_WITH_DEPTH_ONE_RELATIONS
- Modified
mapObjectMetadataToGraphQLQuery
inpackages/twenty-front/src/modules/object-metadata/utils/mapObjectMetadataToGraphQLQuery.ts
to sort fields alphabetically for consistent query generation - Improved object metadata matching in
getRecordNodeFromRecord
function withinpackages/twenty-front/src/modules/object-record/cache/utils/getRecordNodeFromRecord.ts
- Removed unnecessary imports and simplified test structures across multiple test files, improving maintainability and readability
30 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings
id | ||
intro | ||
jobTitle | ||
linkedinLink{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
syntax: There's an inconsistent space after 'linkedinLink'
} | ||
` | ||
|
||
export const PERSON_FRAGMENT_WITH_DEPTH_ONE_RELATIONS = ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: This fragment is quite large and may impact query performance. Consider splitting it into smaller, more focused fragments
b9b0b64
to
454e03c
Compare
Fix all the broken CIs :p This includes an ongoing effort to simplify test maintenance by having 1 unique source of truth about metadata and data mocks (that will later be generated from a unique source of seeds: dev = demo = test) Regressions: - Unit line coverage: 60 > 55 - Storybook Pages branch coverage: 40 > 35 We will need to write tests to increase those coverage - RelationFieldDisplay perf: 0.2ms to 0.22ms > We might have a regression here - Removed perf story about RawJSON > We will need to re-add it
Fix all the broken CIs :p This includes an ongoing effort to simplify test maintenance by having 1 unique source of truth about metadata and data mocks (that will later be generated from a unique source of seeds: dev = demo = test) Regressions: - Unit line coverage: 60 > 55 - Storybook Pages branch coverage: 40 > 35 We will need to write tests to increase those coverage - RelationFieldDisplay perf: 0.2ms to 0.22ms > We might have a regression here - Removed perf story about RawJSON > We will need to re-add it
Fix all the broken CIs :p
This includes an ongoing effort to simplify test maintenance by having 1 unique source of truth about metadata and data mocks (that will later be generated from a unique source of seeds: dev = demo = test)
Regressions:
We will need to write tests to increase those coverage