-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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): Fix remaining FE type check errors (no-changelog) #9607
Conversation
2fecc2f
to
e5fbbb7
Compare
packages/editor-ui/src/components/SettingsLogStreaming/EventDestinationSettingsModal.ee.vue
Outdated
Show resolved
Hide resolved
@@ -20,7 +21,7 @@ export function compileFakeDoorFeatures(): IFakeDoor[] { | |||
if (loggingFeature) { | |||
loggingFeature.actionBoxTitle += '.cloud'; | |||
loggingFeature.linkURL += '&edition=cloud'; | |||
loggingFeature.infoText = ''; | |||
loggingFeature.infoText = '' as BaseTextKey; |
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.
is this a valid basetext key? maybe we need to redefine the types here somehow?
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.
Awesome thank you for working on this 🙏🏽
@@ -240,7 +240,7 @@ const validationError = computed<string | null>(() => { | |||
|
|||
if (error) { | |||
if ('messageKey' in error) { | |||
return t(error.messageKey, error.options as object); | |||
return t(error.messageKey, error.options as string[]); |
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.
could this be better defined in the original type?
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.
Updated.
@@ -499,7 +499,7 @@ export default defineComponent({ | |||
|
|||
this.credentialData = { | |||
...this.credentialData, | |||
scopes, | |||
scopes: scopes as unknown as CredentialInformation, |
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.
could we define those better in the original type?
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.
Updated.
return sharee.id === this.usersStore.currentUser?.id; | ||
}); | ||
}, | ||
projects(): ProjectListItem[] { | ||
return this.projectsStore.personalProjects.filter( | ||
(project) => | ||
project.id !== this.credential?.homeProject?.id && | ||
project.id !== this.credentialData?.homeProject?.id, | ||
project.id !== (this.credentialData?.homeProject as IDataObject)?.id, |
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.
could we define this better in the original object? I know cred types are messy, but we should avoid bandaid solutions here.
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.
Updated.
@@ -77,7 +77,8 @@ const plugins = [ | |||
}), | |||
vue(), | |||
]; | |||
if (process.env.ENABLE_TYPE_CHECKING === 'true') { | |||
|
|||
if (!process.env.VITEST) { |
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.
😍
@@ -50,7 +50,8 @@ app.mount('#app'); | |||
if (!import.meta.env.PROD) { | |||
// Make sure that we get all error messages properly displayed | |||
// as long as we are not in production mode | |||
window.onerror = (message, source, lineno, colno, error) => { | |||
window.onerror = (message, _source, _lineno, _colno, error) => { | |||
// eslint-disable-next-line @typescript-eslint/no-base-to-string |
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.
could this be handled differently?
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 don't think so. What do you have in mind?
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.
will trust your judgement here
@@ -517,7 +517,7 @@ export class N8nConnector extends AbstractConnector { | |||
} | |||
|
|||
resetTargetEndpoint() { | |||
this.overrideTargetEndpoint = null; | |||
this.overrideTargetEndpoint = null as unknown as Endpoint; |
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.
seems like we have to fix the types here.
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 much I can do. We're extending AbstractEndpoint
and just using different types. I'm afraid of the side effects of removing all those null
assignments. Should we try to tackle this separately?
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.
Sure maybe we can add a todo or open a story?
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.
@@ -116,21 +116,21 @@ export interface IUser { | |||
lastName: string; | |||
} | |||
|
|||
export type ProjectSharingData = { |
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.
Thanks 😍
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.
Awesome. Thanks for addressing my feedback
@@ -73,3 +73,9 @@ export function isTriggerPanelObject( | |||
): triggerPanel is TriggerPanelDefinition { | |||
return triggerPanel !== undefined && typeof triggerPanel === 'object' && triggerPanel !== null; | |||
} | |||
|
|||
export function isFullExecutionResponse( |
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.
nice
2 flaky tests on run #5388 ↗︎
Details:
5-ndv.cy.ts • 1 flaky test
20-workflow-executions.cy.ts • 1 flaky test
Review all test suite changes for PR #9607 ↗︎ |
✅ All Cypress E2E specs passed |
packages/editor-ui/src/components/CredentialEdit/CredentialSharing.ee.vue
Outdated
Show resolved
Hide resolved
✅ All Cypress E2E specs passed |
* master: feat(editor): Harmonize rendering of new-lines in RunData (#9614) refactor(editor): Fix remaining FE type check errors (no-changelog) (#9607) fix(editor): Remove template creds setup from workflow when copied (no-changelog) (#9673) refactor(editor): Stop expecting `null` execution status (no-changelog) (#9672)
* master: feat(editor): Harmonize rendering of new-lines in RunData (#9614) refactor(editor): Fix remaining FE type check errors (no-changelog) (#9607) fix(editor): Remove template creds setup from workflow when copied (no-changelog) (#9673) refactor(editor): Stop expecting `null` execution status (no-changelog) (#9672) fix: Fix typo with submitted (no-changelog) (#9662) refactor(core): Revamp crash recovery mechanism for main mode (#9613) fix(editor): Improve dragndrop of input pills with spaces (#9656) fix(editor): Indent on tabs in expression fields (#9659) fix(editor): Color node connections correctly in execution preview for nodes that have pinned data (#9669) fix(core): Fix optional chaining in continue on fail check (#9667) feat(OpenAI Node): Allow to select Image analyze model & improve types (#9660)
Got released with |
Summary
118
to0
.Review / Merge checklist
(no-changelog)
otherwise. (conventions)