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

feat(Splunk Node): Overhaul #9813

Merged
merged 38 commits into from
Jul 4, 2024
Merged

Conversation

michael-radency
Copy link
Contributor

@michael-radency michael-radency commented Jun 19, 2024

Summary

updated/reorganized resources
new operations added
optimizations to request (json instead xml)
added tests

Review / Merge checklist

https://linear.app/n8n/issue/NODE-1395/splunk-node-overhaul

@michael-radency michael-radency added node/improvement New feature or request n8n team Authored by the n8n team labels Jun 19, 2024
Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

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

The changes mostly look good, and the manual test works perfectly. I have left a few comments to improve code quality. Additionally, for future improvements, consider restructuring the code to support multiple node versions in a separate PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

there is a lot of similarity between the actions code, could be refactored in away to improve code readability and maintainability? Consider abstracting the common functionality into a helper function or class to reduce duplication and make future changes easier.

}, {});
}

if (splunkObject['s:dict']) {
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: avoid using magic strings 's:dict' is used in many places, to enhance maintainability, readability, and reduce the risk of errors, consider defining it as a constant.

) {
const id = this.getNodeParameter(idType, i) as string;

return id.includes(endpoint) ? id.split(endpoint).pop()! : id;
Copy link
Contributor

Choose a reason for hiding this comment

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

is ! (non null assertion) here necessary?

Copy link
Contributor

github-actions bot commented Jul 4, 2024

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Jul 4, 2024

3 flaky tests on run #5784 ↗︎

0 399 0 0 Flakiness 3

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Project: n8n Commit: f0a743e341
Status: Passed Duration: 05:14 💡
Started: Jul 4, 2024 12:58 PM Ended: Jul 4, 2024 1:04 PM
Flakiness  5-ndv.cy.ts • 2 flaky tests

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
NDV > Stop listening for trigger event from NDV Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #9813 ↗︎

@michael-radency michael-radency merged commit e5c3247 into master Jul 4, 2024
27 checks passed
@michael-radency michael-radency deleted the node-1395-splunk-node-overhaul branch July 4, 2024 13:07
@janober
Copy link
Member

janober commented Jul 10, 2024

Got released with n8n@1.50.0

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 Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants