-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
refactor(core): Use DTOs for source control push/pull requests #12470
base: master
Are you sure you want to change the base?
Conversation
Backend requires it, and it's always passed.
25f7b01
to
f7cfc97
Compare
Codecov ReportAttention: Patch coverage is 📢 Thoughts on this report? Let us know! |
packages/cli/src/environments.ee/source-control/source-control.controller.ee.ts
Show resolved
Hide resolved
{ | ||
name: 'push request with only required fields', | ||
request: { | ||
fileNames: [ | ||
{ | ||
file: 'file2.json', | ||
id: '2', | ||
name: 'File 2', | ||
type: 'credential', | ||
status: 'new', | ||
location: 'remote', | ||
conflict: true, | ||
updatedAt: '2023-10-02T12:00:00Z', | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
name: 'push request with optional fields omitted', | ||
request: { | ||
fileNames: [ | ||
{ | ||
file: 'file3.json', | ||
id: '3', | ||
name: 'File 3', | ||
type: 'variables', | ||
status: 'deleted', | ||
location: 'local', | ||
conflict: false, | ||
updatedAt: '2023-10-03T12:00:00Z', | ||
}, | ||
], | ||
}, | ||
}, |
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.
Only required fields is the same as optional fields omitted, isn't it?
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.
I'm using LLMs to generate these tests, and once tests pass and all lines are covered, I just commit.
but considering the last few reviews, looks like even the top of the line LLMs are creating too much slop. I'll have a look at these tests again 🙏🏽.
Summary
This continues the DTO refactor work.
Related Linear tickets, Github issues, and Community forum posts
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)