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(editor): Do not make rest api calls for disabled features (no-changelog) #9046

Merged
merged 4 commits into from
Apr 4, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented Apr 3, 2024

The PR removes calls to the following endpoints when the respective feature is disabled:

  • GET /rest/login in demo mode (preview instance). After this is merged, we can remove the hooks hack on the preview instance.
  • GET /rest/variables when variables are not available
  • GET /rest/external-secrets/secrets, GET /rest/external-secrets/providers, and GET /rest/source-control/preferences when source-control/environments is disabled

Review / Merge checklist

  • PR title and summary are descriptive

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Apr 3, 2024
packages/editor-ui/src/views/NodeView.vue Outdated Show resolved Hide resolved
packages/editor-ui/src/views/NodeView.vue Outdated Show resolved Hide resolved
@netroy netroy requested a review from tomi April 4, 2024 13:14
Copy link
Contributor

@tomi tomi left a comment

Choose a reason for hiding this comment

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

🚀

Copy link

cypress bot commented Apr 4, 2024

3 flaky tests on run #4578 ↗︎

0 353 12 0 Flakiness 3

Details:

🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Project: n8n Commit: 637b6c4d3e
Status: Passed Duration: 04:36 💡
Started: Apr 5, 2024 3:10 AM Ended: Apr 5, 2024 3:15 AM
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  17-sharing.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Sharing > should work for admin role on credentials created by others (also can share it with themselves) Test Replay Screenshots Video

Review all test suite changes for PR #9046 ↗︎

Copy link
Contributor

github-actions bot commented Apr 4, 2024

✅ All Cypress E2E specs passed

@netroy netroy merged commit 637b6c4 into master Apr 4, 2024
30 checks passed
@netroy netroy deleted the skip-unneccesary-api-calls branch April 4, 2024 13:53
MiloradFilipovic added a commit that referenced this pull request Apr 5, 2024
* master:
  refactor(core)!: Remove legacy `--file` flag for `execute` CLI command (#9054)
  fix(core): Ensure TTL safeguard for test webhooks applies only to multi-main setup (#9062)
  ci: Delete some duplicate code in cli tests (no-changelog) (#9049)
  refactor(core, editor): Remove legacy `nodesAccess` (no-changelog) (#9016)
  refactor(editor): Remove legacy audit logs view (no-changelog) (#9053)
  refactor(editor): Do not make rest api calls for disabled features (no-changelog) (#9046)
@janober
Copy link
Member

janober commented Apr 10, 2024

Got released with n8n@1.37.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 Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants