Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

netroy
Copy link
Member

@netroy netroy commented Jan 6, 2025

Summary

This continues the DTO refactor work.

Related Linear tickets, Github issues, and Community forum posts

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jan 6, 2025
@netroy netroy force-pushed the source-control-DTO-refactor branch from 25f7b01 to f7cfc97 Compare January 6, 2025 13:35
@netroy netroy marked this pull request as ready for review January 6, 2025 14:10
@despairblue despairblue changed the title refactor(core): Use DTOs for source controll push/pull requests refactor(core): Use DTOs for source control push/pull requests Jan 6, 2025
Comment on lines +26 to +59
{
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',
},
],
},
},
Copy link
Contributor

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?

Copy link
Member Author

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 🙏🏽.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants