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: Move cURL converter to frontend #11432

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

Conversation

cstuncsik
Copy link
Contributor

@cstuncsik cstuncsik commented Oct 28, 2024

Summary

curlconverter dropped CJS support a while ago, so we can't upgrade it on the backend.
To be able to use the newer ESM versions of this package, we have migrated this entire functionality into the frontend, where we support ESM dependencies.

Note: This PR contains a large pnpm-patch to include some changes that we made to curlconvereter, and we'll remove this patch once our changes are published in the next version of that package.

Related Linear tickets, Github issues, and Community forum posts

PAY-1681
Fixes #9768

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 Oct 28, 2024
@MarcL
Copy link
Contributor

MarcL commented Nov 27, 2024

Linking the PR that helps to fix this. curlconverter/curlconverter#704

We're still waiting on the release for this though.

@netroy netroy marked this pull request as ready for review February 3, 2025 11:43
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 80.69498% with 50 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../editor-ui/src/composables/useImportCurlCommand.ts 82.93% 42 Missing and 1 partial ⚠️
...kages/editor-ui/src/components/ImportCurlModal.vue 0.00% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

netroy
netroy previously approved these changes Feb 5, 2025
Copy link

cypress bot commented Feb 5, 2025

n8n    Run #9180

Run Properties:  status check passed Passed #9180  •  git commit 7189083ec2: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 cstuncsik 🗃️ e2e/*
Project n8n
Branch Review PAY-1681-move-curlconverter-to-frontend
Run status status check passed Passed #9180
Run duration 04m 32s
Commit git commit 7189083ec2: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 cstuncsik 🗃️ e2e/*
Committer Csaba Tuncsik
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 5
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 434
View all changes introduced in this branch ↗︎

Copy link
Contributor

github-actions bot commented Feb 5, 2025

✅ All Cypress E2E specs passed

netroy
netroy previously approved these changes Feb 6, 2025
Copy link
Contributor

github-actions bot commented Feb 6, 2025

✅ All Cypress E2E specs passed

Copy link
Contributor

github-actions bot commented Feb 7, 2025

✅ All Cypress E2E specs passed

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.

Valid cURL command fails to be imported into HTTP node with "Couldn’t import cURL command" error
3 participants