Skip to content

Commit

Permalink
EXPERIMENT: create & deploy a new Application #26. Make importer work…
Browse files Browse the repository at this point in the history
… on Test1 Application / Deployment
  • Loading branch information
miroir-framework committed Apr 24, 2024
1 parent 98b01fb commit da62a14
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions packages/miroir-standalone-app/src/miroir-fwk/4_view/Importer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,22 +343,22 @@ export const Importer:FC<ImporterCoreProps> = (props:ImporterCoreProps) => {
const miroirMenuPageParams: DomainElementObject = {
elementType: "object",
elementValue: {
deploymentUuid: { elementType: "string", elementValue: adminConfigurationDeploymentMiroir.uuid },
applicationSection: { elementType: "string", elementValue: "data" },
deploymentUuid: { elementType: "string", elementValue: props.currentDeploymentUuid },
applicationSection: { elementType: "string", elementValue: "model" },
},
};

const miroirMenuInstancesQuery: DomainManyQueriesWithDeploymentUuid = {
queryType: "DomainManyQueries",
deploymentUuid: adminConfigurationDeploymentMiroir.uuid,
deploymentUuid: props.currentDeploymentUuid,
pageParams: miroirMenuPageParams,
queryParams: { elementType: "object", elementValue: {} },
contextResults: { elementType: "object", elementValue: {} },
fetchQuery: {
select: {
menus: {
queryType: "selectObjectListByEntity",
applicationSection: "data",
applicationSection: "model",
parentName: "Menu",
parentUuid: {
referenceType: "constant",
Expand All @@ -373,7 +373,7 @@ export const Importer:FC<ImporterCoreProps> = (props:ImporterCoreProps) => {
{
actionType: "queryAction",
actionName: "runQuery",
deploymentUuid:adminConfigurationDeploymentMiroir.uuid,
deploymentUuid:props.currentDeploymentUuid,
endpoint: "9e404b3c-368c-40cb-be8b-e3c28550c25e",
query: miroirMenuInstancesQuery
}
Expand Down Expand Up @@ -418,14 +418,14 @@ export const Importer:FC<ImporterCoreProps> = (props:ImporterCoreProps) => {
instanceAction: {
actionType: "instanceAction",
actionName: "updateInstance",
applicationSection: "data",
deploymentUuid: adminConfigurationDeploymentMiroir.uuid,
applicationSection: "model",
deploymentUuid: props.currentDeploymentUuid,
endpoint: "ed520de4-55a9-4550-ac50-b1b713b72a89",
objects: [
{
parentName: entityMenu.name,
parentUuid: entityMenu.uuid,
applicationSection: "data",
applicationSection: "model",
instances: [
newMenu
],
Expand All @@ -439,7 +439,7 @@ export const Importer:FC<ImporterCoreProps> = (props:ImporterCoreProps) => {
actionName: "commit",
actionType: "modelAction",
endpoint: "7947ae40-eb34-4149-887b-15a9021e714e",
deploymentUuid: adminConfigurationDeploymentMiroir.uuid,
deploymentUuid: props.currentDeploymentUuid,
},
props.currentModel
);
Expand Down Expand Up @@ -790,8 +790,8 @@ export const Importer:FC<ImporterCoreProps> = (props:ImporterCoreProps) => {
const miroirMenuPageParams: DomainElementObject = {
elementType: "object",
elementValue: {
deploymentUuid: { elementType: "string", elementValue: adminConfigurationDeploymentMiroir.uuid },
applicationSection: { elementType: "string", elementValue: "data" },
deploymentUuid: { elementType: "string", elementValue: props.currentDeploymentUuid },
applicationSection: { elementType: "string", elementValue: "model" },
},
};

Expand All @@ -805,7 +805,7 @@ export const Importer:FC<ImporterCoreProps> = (props:ImporterCoreProps) => {
select: {
menus: {
queryType: "selectObjectListByEntity",
applicationSection: "data",
applicationSection: "model",
parentName: "Menu",
parentUuid: {
referenceType: "constant",
Expand Down Expand Up @@ -865,14 +865,14 @@ export const Importer:FC<ImporterCoreProps> = (props:ImporterCoreProps) => {
instanceAction: {
actionType: "instanceAction",
actionName: "updateInstance",
applicationSection: "data",
deploymentUuid: adminConfigurationDeploymentMiroir.uuid,
applicationSection: "model",
deploymentUuid: props.currentDeploymentUuid,
endpoint: "ed520de4-55a9-4550-ac50-b1b713b72a89",
objects: [
{
parentName: entityMenu.name,
parentUuid: entityMenu.uuid,
applicationSection: "data",
applicationSection: "model",
instances: [
newMenu
// Object.assign({}, reportReportList, {
Expand All @@ -890,7 +890,7 @@ export const Importer:FC<ImporterCoreProps> = (props:ImporterCoreProps) => {
actionName: "commit",
actionType: "modelAction",
endpoint: "7947ae40-eb34-4149-887b-15a9021e714e",
deploymentUuid: adminConfigurationDeploymentMiroir.uuid,
deploymentUuid: props.currentDeploymentUuid,
},
props.currentModel
);
Expand Down

0 comments on commit da62a14

Please sign in to comment.