-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[NITPICK] From args list to record args RecordPositionFactory
#10215
[NITPICK] From args list to record args RecordPositionFactory
#10215
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 PR refactors the RecordPositionFactory.create()
method to use named object parameters instead of positional arguments, improving code readability and maintainability.
- Changed
create()
method signature in/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/factories/record-position.factory.ts
to use a singleRecordPositionFactoryCreateArgs
type - Updated all calling code in
record-position-backfill-service.ts
andquery-runner-args.factory.ts
to use the new object parameter structure - Modified test cases in
record-position.factory.spec.ts
to reflect the new argument structure while maintaining test coverage - Improved type safety by making parameters more explicit through destructuring
4 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
value, | ||
objectMetadata, | ||
workspaceId, | ||
}); | ||
|
||
expect(result).toEqual(0); |
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: Test assumes position will be 0 but this depends on the mocked position value (1) from line 19. Consider making the test more explicit about this assumption.
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
(updates since last review)
No major changes found since last review. The additional files provided show the implementation details and tests for the previously reviewed changes, but don't introduce any new significant modifications to the codebase.
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Log
|
Introduction
Just some nitpicking while debugging a bug that wasn't one