Skip to content

Commit

Permalink
feat: Manage internal_id as old id.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Jul 17, 2024
1 parent 74997aa commit f7bc3b2
Show file tree
Hide file tree
Showing 23 changed files with 33 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
tableName: TABLE_NAME,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
searchValue,
pageNumber: 1,
pageSize: RECORD_ROWS_BY_LIST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
tableName: this.searchTableName,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
filters,
pageNumber,
pageSize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
tableName: TABLE_NAME,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
searchValue,
pageNumber: 1,
pageSize: RECORD_ROWS_BY_LIST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
tableName: this.searchTableName,
columnName: this.metadata.column_name,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
searchValue,
pageNumber: 1,
pageSize: RECORD_ROWS_BY_LIST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export default {
const fieldsListTable = this.storedColumnsListTable
if (isEmptyValue(fieldsListTable)) {
this.containerManager.getSearchDefinition({
id: this.metadata.id
id: this.metadata.internal_id
})
.finally(() => {
this.isLoadingFields = false
Expand Down Expand Up @@ -424,7 +424,7 @@ export default {
parentUuid: this.metadata.parentUuid,
tableName: this.searchTableName,
columnName: this.metadata.columnName,
id: this.metadata.id,
id: this.metadata.internal_id,
contextColumnNames: this.metadata.reference.context_column_names,
filters: values,
pageNumber,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
tableName: TABLE_NAME,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
searchValue,
pageNumber: 1,
pageSize: RECORD_ROWS_BY_LIST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
tableName: this.searchTableName,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
filters,
pageNumber,
pageSize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
tableName: TABLE_NAME,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
searchValue,
pageNumber: 1,
pageSize: RECORD_ROWS_BY_LIST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
tableName: this.searchTableName,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
filters,
pageNumber,
pageSize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
tableName: TABLE_NAME,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
searchValue,
pageNumber: 1,
pageSize: RECORD_ROWS_BY_LIST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
tableName: TABLE_NAME,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
searchValue,
pageNumber: 1,
pageSize: RECORD_ROWS_BY_LIST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default {
// load definition
this.containerManager.getSearchDefinition({
uuid: this.metadata.uuid,
id: this.metadata.id
id: this.metadata.internal_id
})
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
contextColumnNamesByDefaultValue: this.metadata.context_column_names,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
//
tableName: this.searchTableName,
columnName: this.metadata.column_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default {
containerUuid: this.metadata.containerUuid,
contextColumnNames: this.metadata.contextColumnNames,
uuid: this.metadata.uuid,
id: this.metadata.id
id: this.metadata.internal_id
})
)
},
Expand Down Expand Up @@ -374,7 +374,7 @@ export default {
containerUuid: this.metadata.containerUuid,
contextColumnNames: this.metadata.reference.context_column_names,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
//
tableName: this.metadata.referenceTableName,
columnName: this.metadata.column_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
containerUuid: this.metadata.containerUuid,
contextColumnNames: this.metadata.reference.context_column_names,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
//
tableName: this.metadata.referenceTableName,
columnName: this.metadata.columnName
Expand All @@ -90,7 +90,7 @@ export default {
contextColumnNames: this.metadata.reference.context_column_names,
contextColumnNamesByDefaultValue: this.metadata.context_column_names,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
//
tableName: this.metadata.referenceTableName,
columnName: this.metadata.columnName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default {
contextAttributesList,
warehouseId: this.warehouseId,
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
searchValue,
pageNumber: 1,
pageSize: RECORD_ROWS_BY_LIST
Expand Down
4 changes: 2 additions & 2 deletions src/components/ADempiere/FieldDefinition/mixin/mixinField.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default {
contextColumnNames: this.metadata.contextColumnNames,
//
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
defaultValue: this.metadata.default_value,
value: this.value
})
Expand Down Expand Up @@ -252,7 +252,7 @@ export default {
rowUid: this.metadata.rowUid,
//
uuid: this.metadata.uuid,
id: this.metadata.id,
id: this.metadata.internal_id,
columnName: this.metadata.column_name,
value: this.value
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default function useFieldDefinition({ fieldMetadata, containerManager })
contextColumnNames: fieldMetadata.contextColumnNames,
//
uuid: fieldMetadata.uuid,
id: fieldMetadata.id,
id: fieldMetadata.internal_id,
value: value.value
})
})
Expand Down Expand Up @@ -194,7 +194,7 @@ export default function useFieldDefinition({ fieldMetadata, containerManager })
rowUid: fieldMetadata.rowUid,
//
uuid: fieldMetadata.uuid,
id: fieldMetadata.id,
id: fieldMetadata.internal_id,
columnName: fieldMetadata.column_name,
value: value.value
})
Expand Down
3 changes: 2 additions & 1 deletion src/views/ADempiere/Browser/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ export default defineComponent({
}

store.dispatch('getBrowserDefinitionFromServer', {
id: browserId,
// id: browserId,
id: browserUuid,
parentUuid,
containerUuid
})
Expand Down
3 changes: 2 additions & 1 deletion src/views/ADempiere/Form/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ export default defineComponent({
return
}
store.dispatch('getFormFromServer', {
id: formId,
// id: formId,
id: formUuid,
routeToDelete: currentRoute
})
.then(responseForm => {
Expand Down
3 changes: 2 additions & 1 deletion src/views/ADempiere/Process/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ export default defineComponent({
// }

store.dispatch('getProcessDefinitionFromServer', {
id: processId
// id: processId
id: processUuid
})
.then(processResponse => {
processMetadata.value = processResponse
Expand Down
3 changes: 2 additions & 1 deletion src/views/ADempiere/Report/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ export default defineComponent({
// }

store.dispatch('getReportDefinitionFromServer', {
id: reportId
// id: reportId
id: reportUuid
})
.then(reportResponse => {
reportMetadata.value = reportResponse
Expand Down
3 changes: 2 additions & 1 deletion src/views/ADempiere/ReportViewer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ export default defineComponent({
}

store.dispatch('getReportDefinitionFromServer', {
id: reportId
// id: reportId
id: reportUuid
}).then(() => {
getCachedReport()
})
Expand Down

0 comments on commit f7bc3b2

Please sign in to comment.