refactor: Use string ids on Credentials, Workflows, Tags, and Executions DB entities (#5041)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-01-02 17:42:32 +01:00
committed by GitHub
parent 8bee04cd2a
commit ee28213538
83 changed files with 468 additions and 645 deletions

View File

@@ -153,7 +153,7 @@ export default mixins(restApi).extend({
},
credentialData: {},
credentialId: {
type: [String, Number],
type: String,
default: '',
},
showValidationWarning: {

View File

@@ -171,7 +171,7 @@ export default mixins(showMessage, nodeHelpers).extend({
required: true,
},
activeId: {
type: [String, Number],
type: [String],
required: true,
},
mode: {

View File

@@ -742,7 +742,7 @@ export default mixins(externalHooks, genericHelpers, restApi, showMessage).exten
this.isDataLoading = true;
const filter = this.workflowFilterPast;
let lastId: string | number | undefined;
let lastId: string | undefined;
if (this.finishedExecutions.length !== 0) {
const lastItem = this.finishedExecutions.slice(-1)[0];

View File

@@ -219,7 +219,7 @@ export default mixins(
}
this.loadingMore = true;
let lastId: string | number | undefined;
let lastId: string | undefined;
if (this.executions.length !== 0) {
const lastItem = this.executions.slice(-1)[0];
lastId = lastItem.id;

View File

@@ -434,10 +434,6 @@ export default mixins(workflowHelpers, titleChange).extend({
case WORKFLOW_MENU_ACTIONS.DOWNLOAD: {
const workflowData = await this.getWorkflowDataToSave();
const { tags, ...data } = workflowData;
if (data.id && typeof data.id === 'string') {
data.id = parseInt(data.id, 10);
}
const exportData: IWorkflowToShare = {
...data,
meta: {