-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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(core): Convert dynamic node-parameter routes to a decorated controller (no-changelog) #7284
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
c6c0af4
to
eb9d0af
Compare
93db1ad
to
380b6f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll come back later to test.
380b6f8
to
39b865e
Compare
39b865e
to
90f13f5
Compare
90f13f5
to
81ac215
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting this using a valid Postgres credential. Same for Google Drive.
export class DynamicNodeParametersController { | ||
constructor(private readonly service: DynamicNodeParametersService) {} | ||
|
||
@Middleware() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not to change now, just to consider - it might be more consistent to have @RestController('/dynamic-node-parameters', { middlewares: [fn] })
for controller-level middlewares, similar to endpoint-level middlewares.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's how we started with, but then the middleware functions could not use the injected dependencies, as the method being passed needed to exist before the class was instantiated.
packages/cli/src/controllers/dynamicNodeParameters.controller.ts
Outdated
Show resolved
Hide resolved
81ac215
to
029ea8d
Compare
2 flaky tests on run #2938 ↗︎
Details:
cypress/e2e/28-resource-mapper.cy.ts • 2 flaky tests
Review all test suite changes for PR #7284 ↗︎ |
de0f016
to
43632db
Compare
6bf0c40
to
6971d9e
Compare
Retested on GDrive and PG and confirmed working + code looks good. I'll approve after the conflict is resolved. |
…controller (no-changelog)
6971d9e
to
6070044
Compare
rebased |
|
This test was added after the PR was started, and I didn't catch it. |
✅ All Cypress E2E specs passed |
* master: (27 commits) fix: Include cypress TypeScript types in /cypress folder (no-changelog) (#7746) refactor(core): Stop reporting to Sentry `NodeApiError` outside 500 range (no-changelog) (#7753) fix(core): Guard against node not found on cancelling test webhook (#7750) fix(JotForm Trigger Node): Fix iteration on form loader (#7751) refactor(core): Stop reporting to Sentry unknown cred on mapping (no-changelog) (#7752) feat(core): Coordinate manual workflow activation and deactivation in multi-main scenario (#7643) ci: Fix "Release: Create Pull Request" workflow fix(editor): Fix Admin panel icon in the sidebar for cloud deployments (no-changelog) (#7738) fix(editor): Remove `n8nHooksNext` flag (no-changelog) (#7733) fix(editor): Show v1 banner dismiss button if owner (#7722) fix(GitHub Node): Fix issue preventing file edits on branches (#7734) fix(core): Fix all dependency versions for backend packages (no-changelog) (#7745) refactor(core): Convert dynamic node-parameter routes to a decorated controller (no-changelog) (#7284) refactor: Stop reporting to Sentry Facebook multi-webhook error (no-changelog) (#7743) refactor(core): Stop reporting to Sentry unrecognized node errors (no-changelog) (#7728) fix(core): Account for non-ASCII chars in filename on binary data download (#7742) ci: Fix DB tests and Workflow tests (no-changelog) (#7741) refactor: Extract Invitation routes to InvitationController (no-changelog) (#7726) fix(editor): Handle permission edge cases (empty scopes) (#7723) ci: Skip the regularly failing tests in 2-credentials.cy.ts (no-changelog) (#7736) ...
Got released with |
Server.ts