-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/ad-ldap' into N8N-5602-form-inputs-updates
* feature/ad-ldap: (108 commits) 👕 Fix linting problem fix: Workflow activation should not crash if one of the credential is invalid (#4671) feat(core): Add license support to n8n (#4566) fix: Use the updated slots syntax in ResourceLocator (no-changelog) (#4663) fix: Community package uninstall button should show the confirmation modal (no-changelog) (#4668) fix: Fix broken n8n-info-tip slots (#4665) fix(editor): Table view column limit tooltip (#4655) ci: Block execution of `npm install` (no-changelog) (#4662) fix(editor): Prevent node-creator tabs from showing when toggled by CanvasAddButton (#4661) fix(Schedule Trigger Node): Fixes inconsitent behavior with cron and weekly intervals (#4558) fix(core): Fix for unused imports fix: Add temporary slot syntax lint exceptions (no-changelog) (#4652) fix(editor): Fix missing resource locator component (#4649) refactor(core): Introduce overload for record-type node parameter (no-changelog) (#4648) refactor(core): Introduce overload for number-type node parameter (no-changelog) (#4644) refactor: Migrate Vue slots to the new syntax (#4603) refactor(core): Introduce overload for boolean-type node parameter (no-changelog) (#4647) fix: Make users fakedoor route visible on cloud (#4645) 📚 Update CHANGELOG.md and main package.json to 0.203.1 🔖 Release [email protected] ... # Conflicts: # packages/design-system/src/components/N8nFormInput/FormInput.vue # packages/design-system/src/components/N8nFormInputs/FormInputs.stories.js # packages/design-system/src/components/N8nFormInputs/FormInputs.vue # packages/design-system/src/types/form.ts
- Loading branch information
Showing
715 changed files
with
14,310 additions
and
8,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ indent_size = 2 | |
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.ts] | ||
quote_type = single |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,14 @@ jobs: | |
pnpm test:e2e:ci:smoke | ||
- name: Lint | ||
env: | ||
CI_LINT_MASTER: true | ||
run: pnpm lint | ||
|
||
- name: Notify Slack on failure | ||
uses: act10ns/[email protected] | ||
if: failure() | ||
with: | ||
status: ${{ job.status }} | ||
channel: '#updates-build-alerts' | ||
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,11 @@ jobs: | |
- name: Test Postgres (alternate schema) | ||
working-directory: packages/cli | ||
run: pnpm test:postgres:alt-schema | ||
|
||
- name: Notify Slack on failure | ||
uses: act10ns/[email protected] | ||
if: failure() | ||
with: | ||
status: ${{ job.status }} | ||
channel: '#updates-build-alerts' | ||
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,8 @@ jobs: | |
path: test-workflows | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.14.2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
|
@@ -91,3 +93,11 @@ jobs: | |
# git config --global user.email '[email protected]' | ||
# git commit -am "Automated credential update" | ||
# git push --force --quiet "https://janober:${{ secrets.TOKEN }}@github.com/n8n-io/test-workflows.git" main:main | ||
|
||
- name: Notify Slack on failure | ||
uses: act10ns/[email protected] | ||
if: failure() | ||
with: | ||
status: ${{ job.status }} | ||
channel: '#updates-build-alerts' | ||
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,94 @@ | ||
## [0.203.1](https://github.com/n8n-io/n8n/compare/[email protected]@0.203.1) (2022-11-18) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **Google Sheets Node:** Versioning fix ([4e66672](https://github.com/n8n-io/n8n/commit/4e66672df225e67297981b7ee3408e5849db418a)) | ||
|
||
|
||
|
||
# [0.203.0](https://github.com/n8n-io/n8n/compare/[email protected]@0.203.0) (2022-11-17) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* Add back mapping hint when parameter is focused ([#4634](https://github.com/n8n-io/n8n/issues/4634)) ([b35172e](https://github.com/n8n-io/n8n/commit/b35172e442a131f76c2d902d451356ab937bba48)) | ||
* Change feature flag for starting at empty WF state for PH experiments (no-changelog) ([#4606](https://github.com/n8n-io/n8n/issues/4606)) ([d1ffc58](https://github.com/n8n-io/n8n/commit/d1ffc58aa4947e5b9f956568061a981c8ab37e65)) | ||
* **core:** Deduplicate error handling in nodes ([#4319](https://github.com/n8n-io/n8n/issues/4319)) ([c7133ec](https://github.com/n8n-io/n8n/commit/c7133ecd3fe6f022a537b6edb4c006d6786efad2)) | ||
* **editor:** Add 'Stop execution' button to execution preview ([#4632](https://github.com/n8n-io/n8n/issues/4632)) ([be7672a](https://github.com/n8n-io/n8n/commit/be7672a177bfcf997ec241af7c628a90312849b1)) | ||
* **editor:** Curb direct item access linting ([#4591](https://github.com/n8n-io/n8n/issues/4591)) ([271cd06](https://github.com/n8n-io/n8n/commit/271cd06a6ac6274a83a6a71fe76072281edf3724)) | ||
* **editor:** Fix expression editor variable selector filter ([#4590](https://github.com/n8n-io/n8n/issues/4590)) ([69b332b](https://github.com/n8n-io/n8n/commit/69b332b0e3321d3d1c635e53ec134d15b7e54bb9)) | ||
* **editor:** Fix for execution retry dropdown not closing ([#4575](https://github.com/n8n-io/n8n/issues/4575)) ([e0ec5a6](https://github.com/n8n-io/n8n/commit/e0ec5a6aa932db281aafe07be65aa86719e41b09)) | ||
* **editor:** Fix for logging error on user logout ([#4633](https://github.com/n8n-io/n8n/issues/4633)) ([7483e14](https://github.com/n8n-io/n8n/commit/7483e147fc552d981d03d0e96112725335c64002)) | ||
* **editor:** Fix zero treated as missing value in resource locator ([#4612](https://github.com/n8n-io/n8n/issues/4612)) ([b0bbcf6](https://github.com/n8n-io/n8n/commit/b0bbcf6028dcf3b9e25dacb1aee06a79f45f9e04)) | ||
* **editor:** Hide pin data in production executions ([#4595](https://github.com/n8n-io/n8n/issues/4595)) ([edebad1](https://github.com/n8n-io/n8n/commit/edebad1a89f1dd239c833c166a6e7f845d6df035)) | ||
* **editor:** Skip optional chaining operators in Code Node editor linting ([#4592](https://github.com/n8n-io/n8n/issues/4592)) ([ccacd42](https://github.com/n8n-io/n8n/commit/ccacd42b3706267b704f370f1044eb1ca7f5286c)) | ||
* **editor:** Update to 'Expression/Fixed' toggle - Keep expression when switching to Fixed ([#4599](https://github.com/n8n-io/n8n/issues/4599)) ([6eee155](https://github.com/n8n-io/n8n/commit/6eee155ecb91c680c5a9d4f23502da35ab249a9d)) | ||
* Fix foreign credentials being shown for new nodes ([#4622](https://github.com/n8n-io/n8n/issues/4622)) ([dea67ca](https://github.com/n8n-io/n8n/commit/dea67ca6b7eee02fd5ea24c48224c65e937e97f2)) | ||
* Fix user redirect to signin bug ([#4623](https://github.com/n8n-io/n8n/issues/4623)) ([402b75a](https://github.com/n8n-io/n8n/commit/402b75ac280cf74df30aaf758f1c0a15762ad996)) | ||
* Store copy of workflow in workflowsById to prevent node data bugs ([#4637](https://github.com/n8n-io/n8n/issues/4637)) ([9cadaea](https://github.com/n8n-io/n8n/commit/9cadaea3a44b8b983a2c8c1e78271ffcd114ef4d)) | ||
|
||
|
||
### Features | ||
|
||
* Add duplicate workflow error handler ([#4616](https://github.com/n8n-io/n8n/issues/4616)) ([f7a9ef9](https://github.com/n8n-io/n8n/commit/f7a9ef91166df1a71db1f7827cb43ffd687839d4)) | ||
* Add workflow data reset action ([#4618](https://github.com/n8n-io/n8n/issues/4618)) ([0daa36c](https://github.com/n8n-io/n8n/commit/0daa36c1978c6722d178e16c6f756b7205068c09)) | ||
* **Compare Datasets Node:** Node tweaks ([423ee81](https://github.com/n8n-io/n8n/commit/423ee81e33b88c5ed6152b75b69219c3e4ff16c8)) | ||
* **core:** Add credential runtime checks and prevent tampering in manual run ([#4481](https://github.com/n8n-io/n8n/issues/4481)) ([d35d63a](https://github.com/n8n-io/n8n/commit/d35d63a855522c781b38238e107a6aaa211764c6)) | ||
* **Google Sheets Node:** Overhaul of node ([d96d6f1](https://github.com/n8n-io/n8n/commit/d96d6f11dbe2f1c75ff572baa4906fb628a2eb5c)) | ||
* **Notion (Beta) Node:** Use resource locator component for database and page parameters ([#4340](https://github.com/n8n-io/n8n/issues/4340)) ([277b6b7](https://github.com/n8n-io/n8n/commit/277b6b73c37187f524474364c3b58adbc15486e0)) | ||
|
||
|
||
|
||
## [0.202.1](https://github.com/n8n-io/n8n/compare/[email protected]@0.202.1) (2022-11-10) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* Disable some error tracking ([#4579](https://github.com/n8n-io/n8n/issues/4579)) ([b2201d0](https://github.com/n8n-io/n8n/commit/b2201d0c77cf024e39f6569e7806871d38408201)) | ||
|
||
|
||
|
||
# [0.202.0](https://github.com/n8n-io/n8n/compare/[email protected]@0.202.0) (2022-11-10) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **API:** Do not use names for typeorm connections ([#4532](https://github.com/n8n-io/n8n/issues/4532)) ([f5c2080](https://github.com/n8n-io/n8n/commit/f5c20803d782d06ffc42dabd0a11467d44bd1888)) | ||
* **core:** Fix manual execution of pinned trigger on main mode ([#4535](https://github.com/n8n-io/n8n/issues/4535)) ([5d73b6e](https://github.com/n8n-io/n8n/commit/5d73b6e48aef2b0b386369b7d1f208845f912da5)) | ||
* **core:** Streamline multiple pinned triggers behavior ([#4569](https://github.com/n8n-io/n8n/issues/4569)) ([953457a](https://github.com/n8n-io/n8n/commit/953457ad8676501f9c92eb1f7bb68521a975975c)) | ||
* **editor:** Curb arg linting for `$input.first()` and `$input.last()` ([#4526](https://github.com/n8n-io/n8n/issues/4526)) ([0edd4bc](https://github.com/n8n-io/n8n/commit/0edd4bcc8783de0da591ad147700c450e01ba919)) | ||
* **editor:** Fix duplicate bug when new workflow is open ([#4559](https://github.com/n8n-io/n8n/issues/4559)) ([536c834](https://github.com/n8n-io/n8n/commit/536c834313b73bf36f9c9cc291dca4e4b4b860be)) | ||
* **editor:** Fix for incorrect execution saving indicator in executions view ([#4547](https://github.com/n8n-io/n8n/issues/4547)) ([0117191](https://github.com/n8n-io/n8n/commit/01171912e7587933792e5cd1cd605a6ec3b0b1be)) | ||
* **editor:** Fix for oauth authorization ([#4572](https://github.com/n8n-io/n8n/issues/4572)) ([d06197d](https://github.com/n8n-io/n8n/commit/d06197d879707c6a9826ae192682262c4f6c02ed)) | ||
* **editor:** Fix workflow activation from the Workflows view ([#4549](https://github.com/n8n-io/n8n/issues/4549)) ([d2bec63](https://github.com/n8n-io/n8n/commit/d2bec63cecbc39f1881a883d36b6a2c3ea1568a9)) | ||
* **editor:** Fix workflow back button navigation ([#4546](https://github.com/n8n-io/n8n/issues/4546)) ([825637f](https://github.com/n8n-io/n8n/commit/825637f02a5d1bc9f00cb68f19221dd7d0e055cb)) | ||
* **editor:** Prevent adding of the start node when importing workflow in the demo mode ([#4564](https://github.com/n8n-io/n8n/issues/4564)) ([49748f2](https://github.com/n8n-io/n8n/commit/49748f27a2bfbb0356ba2c30c35d34a3ad9d8063)) | ||
* **editor:** Show string numbers and null properly in JSON view ([#4513](https://github.com/n8n-io/n8n/issues/4513)) ([f6b85f4](https://github.com/n8n-io/n8n/commit/f6b85f4a69adbad10854ff77015d0d2ee69cfeac)) | ||
* **editor:** Switch `CodeNodeEditor` linter parser to `esprima-next` ([#4524](https://github.com/n8n-io/n8n/issues/4524)) ([5e0ded4](https://github.com/n8n-io/n8n/commit/5e0ded4a84a3da1fc4cd32d135cb4eb30dbd9b35)) | ||
* **editor:** Tweak dragged mapping state ([#4550](https://github.com/n8n-io/n8n/issues/4550)) ([b3cd62d](https://github.com/n8n-io/n8n/commit/b3cd62d866eeb734de253f656ee2b67c147a10c1)) | ||
* **editor:** Update workflow buttons spacings ([#4534](https://github.com/n8n-io/n8n/issues/4534)) ([88baaa0](https://github.com/n8n-io/n8n/commit/88baaa0eb15f3d1cff22ed5994b0cd39bddf5b7b)) | ||
* **editor:** Use base path in workflow preview component URL ([#4560](https://github.com/n8n-io/n8n/issues/4560)) ([db163b7](https://github.com/n8n-io/n8n/commit/db163b71b90d073cc963f63d5455b3a84f236917)) | ||
* **HTTP Request Node:** Show error cause in the output ([#4538](https://github.com/n8n-io/n8n/issues/4538)) ([c239eea](https://github.com/n8n-io/n8n/commit/c239eea1b9fc7c7397db8135528ac0d136be1c84)) | ||
* **HTTP Request Node:** Use the data in "Put Output in Field" field ([#4487](https://github.com/n8n-io/n8n/issues/4487)) ([39d4bb2](https://github.com/n8n-io/n8n/commit/39d4bb2639794eeb9c2e998daaac3accad1802b4)) | ||
* **HubSpot Node:** Add notice to HubSpot credentials about API Key Sunset ([#4570](https://github.com/n8n-io/n8n/issues/4570)) ([9b5db8d](https://github.com/n8n-io/n8n/commit/9b5db8d7be501ff06e49fd25ce9e0f3e9aa8fbea)) | ||
* **Notion Trigger (Beta) Node:** Fix Notion trigger polling strategy ([3b34050](https://github.com/n8n-io/n8n/commit/3b3405089d9194515192f10ab4085e1493bb86b5)) | ||
* **Raindrop Node:** Update access token URL ([#4542](https://github.com/n8n-io/n8n/issues/4542)) ([740df0c](https://github.com/n8n-io/n8n/commit/740df0c1e5e578269fcaa0ce767c5894c6a852d4)) | ||
* **SendInBlue Trigger Node:** Fix typo in credential name ([#4357](https://github.com/n8n-io/n8n/issues/4357)) ([5d852f9](https://github.com/n8n-io/n8n/commit/5d852f9230a73c04b5242803949117cce8bffeed)) | ||
* Update E2E testing env variables ([#4556](https://github.com/n8n-io/n8n/issues/4556)) ([f9d9f88](https://github.com/n8n-io/n8n/commit/f9d9f88f8a9d217101c2f5c67f3d3db6aa6b9b92)) | ||
|
||
|
||
### Features | ||
|
||
* Add cypress e2e tests for signup and signin ([#3490](https://github.com/n8n-io/n8n/issues/3490)) ([7764486](https://github.com/n8n-io/n8n/commit/77644860c0fcd3d78732097ebf5d0b0457da7d57)) | ||
* **API:** Report unhandled app crashes to Sentry ([#4548](https://github.com/n8n-io/n8n/issues/4548)) ([2425c10](https://github.com/n8n-io/n8n/commit/2425c10b2b5ec65bfb05d3f6443a139ec71c6a9a)) | ||
* **API:** Set up error tracking using Sentry ([#4394](https://github.com/n8n-io/n8n/issues/4394)) ([41cb0ee](https://github.com/n8n-io/n8n/commit/41cb0eec6e634f3f346644f885f8a6064e77cc7b)) | ||
* **core:** Add ownership, sharing and credential details to `GET /workflows` ([#4510](https://github.com/n8n-io/n8n/issues/4510)) ([026fb50](https://github.com/n8n-io/n8n/commit/026fb50512d6a31bf483646ec68276fb6f39abfe)) | ||
* **editor:** Add support for notice credentials properties ([#4557](https://github.com/n8n-io/n8n/issues/4557)) ([de96def](https://github.com/n8n-io/n8n/commit/de96def372d63df27c3433bca4fae6f75c874e8e)) | ||
* Switch from npm to pnpm ([#4429](https://github.com/n8n-io/n8n/issues/4429)) ([7367773](https://github.com/n8n-io/n8n/commit/736777385c54d5b20174c9c1fda38bb31fbf14b4)) | ||
|
||
|
||
|
||
# [0.201.0](https://github.com/n8n-io/n8n/compare/[email protected]@0.201.0) (2022-11-02) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import { DEFAULT_USER_EMAIL, DEFAULT_USER_PASSWORD } from "../constants"; | ||
import { randFirstName, randLastName } from "@ngneat/falso"; | ||
import { WorkflowsPage as WorkflowsPageClass } from '../pages/workflows'; | ||
import { WorkflowPage as WorkflowPageClass } from '../pages/workflow'; | ||
import { v4 as uuid } from 'uuid'; | ||
|
||
const username = DEFAULT_USER_EMAIL; | ||
const password = DEFAULT_USER_PASSWORD; | ||
const firstName = randFirstName(); | ||
const lastName = randLastName(); | ||
const WorkflowsPage = new WorkflowsPageClass(); | ||
const WorkflowPage = new WorkflowPageClass(); | ||
|
||
describe('Workflows flow', () => { | ||
beforeEach(() => { | ||
cy.signup(username, firstName, lastName, password); | ||
|
||
cy.on('uncaught:exception', (err, runnable) => { | ||
expect(err.message).to.include('Not logged in'); | ||
|
||
return false; | ||
}) | ||
|
||
cy.signin(username, password); | ||
cy.visit(WorkflowsPage.url); | ||
}); | ||
|
||
it('should create a new workflow using empty state card', () => { | ||
WorkflowsPage.get('newWorkflowButtonCard').should('be.visible'); | ||
WorkflowsPage.get('newWorkflowButtonCard').click(); | ||
|
||
cy.createFixtureWorkflow('Test_workflow_1.json', `Empty State Card Workflow ${uuid()}`); | ||
|
||
WorkflowPage.get('workflowTags').should('contain.text', 'some-tag-1'); | ||
WorkflowPage.get('workflowTags').should('contain.text', 'some-tag-2'); | ||
}) | ||
|
||
it('should create a new workflow using add workflow button', () => { | ||
WorkflowsPage.get('newWorkflowButtonCard').should('not.exist'); | ||
WorkflowsPage.get('createWorkflowButton').click(); | ||
|
||
cy.createFixtureWorkflow('Test_workflow_2.json', `Add Workflow Button Workflow ${uuid()}`); | ||
|
||
WorkflowPage.get('workflowTags').should('contain.text', 'other-tag-1'); | ||
WorkflowPage.get('workflowTags').should('contain.text', 'other-tag-2'); | ||
}) | ||
|
||
it('should search for a workflow', () => { | ||
WorkflowsPage.get('searchBar').type('Empty State Card Workflow'); | ||
|
||
WorkflowsPage.get('workflowCards').should('have.length', 1); | ||
WorkflowsPage.get('workflowCard', 'Empty State Card Workflow').should('contain.text', 'Empty State Card Workflow'); | ||
|
||
WorkflowsPage.get('searchBar').clear().type('Add Workflow Button Workflow'); | ||
|
||
WorkflowsPage.get('workflowCards').should('have.length', 1); | ||
WorkflowsPage.get('workflowCard', 'Add Workflow Button Workflow').should('contain.text', 'Add Workflow Button Workflow'); | ||
|
||
WorkflowsPage.get('searchBar').clear().type('Some non-existent workflow'); | ||
WorkflowsPage.get('workflowCards').should('not.exist'); | ||
cy.contains('No workflows found').should('be.visible'); | ||
}) | ||
|
||
it('should delete all the workflows', () => { | ||
WorkflowsPage.get('workflowCards').should('have.length', 2); | ||
|
||
WorkflowsPage.get('workflowCards').each(($el) => { | ||
const workflowName = $el.find('[data-test-id="workflow-card-name"]').text(); | ||
|
||
WorkflowsPage.get('workflowCardActions', workflowName).click(); | ||
WorkflowsPage.get('workflowDeleteButton').click(); | ||
cy.get('button').contains('delete').click(); | ||
}) | ||
|
||
WorkflowsPage.get('newWorkflowButtonCard').should('be.visible'); | ||
WorkflowsPage.get('newWorkflowTemplateCard').should('be.visible'); | ||
}) | ||
|
||
it('should contain empty state cards', () => { | ||
WorkflowsPage.get('newWorkflowButtonCard').should('be.visible'); | ||
WorkflowsPage.get('newWorkflowTemplateCard').should('be.visible'); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"name": "Test workflow 1", | ||
"nodes": [ | ||
{ | ||
"parameters": {}, | ||
"id": "a2f85497-260d-4489-a957-2b7d88e2f33d", | ||
"name": "On clicking 'execute'", | ||
"type": "n8n-nodes-base.manualTrigger", | ||
"typeVersion": 1, | ||
"position": [ | ||
220, | ||
260 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"jsCode": "// Loop over input items and add a new field\n// called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\n item.json.myNewField = 1;\n}\n\nreturn $input.all();" | ||
}, | ||
"id": "9493d278-1ede-47c9-bedf-92ac3a737c65", | ||
"name": "Code", | ||
"type": "n8n-nodes-base.code", | ||
"typeVersion": 1, | ||
"position": [ | ||
400, | ||
260 | ||
] | ||
} | ||
], | ||
"pinData": {}, | ||
"connections": { | ||
"On clicking 'execute'": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Code", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
}, | ||
"Code": { | ||
"main": [ | ||
[] | ||
] | ||
} | ||
}, | ||
"active": false, | ||
"settings": {}, | ||
"hash": "a59c7b1c97b1741597afae0fcd43ebef", | ||
"id": 3, | ||
"meta": { | ||
"instanceId": "a5280676597d00ecd0ea712da7f9cf2ce90174a791a309112731f6e44d162f35" | ||
}, | ||
"tags": [ | ||
{ | ||
"name": "some-tag-1", | ||
"createdAt": "2022-11-10T13:43:34.001Z", | ||
"updatedAt": "2022-11-10T13:43:34.001Z", | ||
"id": "6" | ||
}, | ||
{ | ||
"name": "some-tag-2", | ||
"createdAt": "2022-11-10T13:43:39.778Z", | ||
"updatedAt": "2022-11-10T13:43:39.778Z", | ||
"id": "7" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "Test workflow 2", | ||
"nodes": [ | ||
{ | ||
"parameters": {}, | ||
"id": "624e0991-5dac-468b-b872-a9d35cb2c7d1", | ||
"name": "On clicking 'execute'", | ||
"type": "n8n-nodes-base.manualTrigger", | ||
"typeVersion": 1, | ||
"position": [ | ||
360, | ||
260 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"jsCode": "// Loop over input items and add a new field\n// called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\n item.json.myNewField = 1;\n}\n\nreturn $input.all();" | ||
}, | ||
"id": "48823b3a-ec82-4a05-84b8-24ac2747e648", | ||
"name": "Code", | ||
"type": "n8n-nodes-base.code", | ||
"typeVersion": 1, | ||
"position": [ | ||
580, | ||
260 | ||
] | ||
} | ||
], | ||
"pinData": {}, | ||
"connections": { | ||
"On clicking 'execute'": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Code", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
} | ||
}, | ||
"active": false, | ||
"settings": {}, | ||
"hash": "4d2e29ffcae2a12bdd28a7abe9681a6b", | ||
"id": 4, | ||
"meta": { | ||
"instanceId": "a5280676597d00ecd0ea712da7f9cf2ce90174a791a309112731f6e44d162f35" | ||
}, | ||
"tags": [ | ||
{ | ||
"name": "other-tag-1", | ||
"createdAt": "2022-11-10T13:45:43.821Z", | ||
"updatedAt": "2022-11-10T13:45:43.821Z", | ||
"id": "8" | ||
}, | ||
{ | ||
"name": "other-tag-2", | ||
"createdAt": "2022-11-10T13:45:46.881Z", | ||
"updatedAt": "2022-11-10T13:45:46.881Z", | ||
"id": "9" | ||
} | ||
] | ||
} |
Oops, something went wrong.