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

fix(Slack Node): Do not try to parse block if it's already object #9643

Conversation

michael-radency
Copy link
Contributor

Summary

Slack Node Blocks explicitly expects JSON String

Related tickets and issues

https://linear.app/n8n/issue/NODE-647/slack-node-blocks-explicitly-expects-json-string

@michael-radency michael-radency added node/improvement New feature or request n8n team Authored by the n8n team node/issue Issue with a node labels Jun 6, 2024
Copy link
Member

@netroy netroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. 🙏🏽

@@ -162,7 +162,7 @@ export function getMessageContent(
};
break;
case 'block':
content = jsonParse(this.getNodeParameter('blocksUi', i) as string);
content = this.getNodeParameter('blocksUi', i, {}, { ensureType: 'object' }) as IDataObject;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't ideal, but considering the state of type-safety in this package, I think this might be the most realistic option right now .

Copy link
Contributor

✅ No visual regressions found.

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link

cypress bot commented Jun 18, 2024

3 flaky tests on run #5554 ↗︎

0 394 0 0 Flakiness 3

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Project: n8n Commit: 9bee4545f5
Status: Passed Duration: 04:22 💡
Started: Jun 18, 2024 9:17 AM Ended: Jun 18, 2024 9:22 AM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
Flakiness  10-undo-redo.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Undo/Redo > should undo/redo renaming node using NDV Test Replay Screenshots Video
Flakiness  20-workflow-executions.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Current Workflow Executions > should auto load more items if there is space and auto scroll Test Replay Screenshots Video

Review all test suite changes for PR #9643 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@michael-radency michael-radency merged commit 8f94dcc into master Jun 18, 2024
30 checks passed
@michael-radency michael-radency deleted the node-647-slack-node-blocks-explicitly-expects-json-string branch June 18, 2024 10:50
adrian-martinez-onestic pushed a commit to onesdata/n8n-fork that referenced this pull request Jun 20, 2024
…n-io#9643)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <[email protected]>
adrian-martinez-onestic pushed a commit to onesdata/n8n-fork that referenced this pull request Jun 20, 2024
…n-io#9643)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <[email protected]>
This was referenced Jun 20, 2024
@janober
Copy link
Member

janober commented Jun 20, 2024

Got released with [email protected]

1 similar comment
@janober
Copy link
Member

janober commented Jun 20, 2024

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/improvement New feature or request node/issue Issue with a node
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants