Skip to content

Commit

Permalink
bug(misc): fix sonarcloud comments for duplications
Browse files Browse the repository at this point in the history
  • Loading branch information
KsiBart committed Nov 4, 2024
1 parent ce4446d commit a3bb53a
Show file tree
Hide file tree
Showing 4 changed files with 442 additions and 440 deletions.
112 changes: 112 additions & 0 deletions kraken-app/kraken-app-portal/src/__mocks__/mappingTemplate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
[
{
"templateUpgradeId": "33dea20e-3f0f-45a1-8fc2-5914742e5b8f",
"name": "V1.5.2",
"productVersion": "V1.5.2",
"productSpec": "grace",
"publishDate": "2024-10-28",
"description": "Refactor the error tips for quote detail, order detail and inventory list page.",
"deployments": [],
"showStageUpgradeButton": true,
"showProductionUpgradeButton": true,
"status": "Not upgrade"
},
{
"templateUpgradeId": "92bcf902-b584-46ac-bc3d-4acbab25b507",
"name": "V1.5.1",
"productVersion": "V1.5.1",
"productSpec": "grace",
"publishDate": "2024-10-23",
"description": "Add validation of productType and buyerId for inventory read",
"deployments": [
{
"deploymentId": "b684c9ac-382e-4dad-b9aa-940fd2357b2f",
"templateUpgradeId": "92bcf902-b584-46ac-bc3d-4acbab25b507",
"envName": "CONTROL_PLANE",
"productVersion": "V1.5.1",
"upgradeBy": "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
"createdAt": "2024-10-23T11:05:19.369533Z",
"updatedAt": "2024-10-23T11:05:19.388015Z",
"status": "SUCCESS"
},
{
"deploymentId": "7961a2b0-8424-416e-8616-6cd04ccdd4dc",
"templateUpgradeId": "92bcf902-b584-46ac-bc3d-4acbab25b507",
"envName": "stage",
"productVersion": "V1.5.1",
"upgradeBy": "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
"status": "SUCCESS",
"createdAt": "2024-10-23T11:05:37.579097Z",
"updatedAt": "2024-10-23T11:10:20.786783Z"
},
{
"deploymentId": "61c71b5c-5425-4719-a795-7b00e031a162",
"templateUpgradeId": "92bcf902-b584-46ac-bc3d-4acbab25b507",
"envName": "production",
"productVersion": "V1.5.1",
"upgradeBy": "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
"status": "SUCCESS",
"createdAt": "2024-10-23T11:10:32.993428Z",
"updatedAt": "2024-10-23T11:15:20.770001Z"
}
],
"showStageUpgradeButton": true,
"showProductionUpgradeButton": false,
"status": "Upgraded"
},
{
"templateUpgradeId": "43718b21-4f67-4a68-bb34-d5e38c33dc55",
"name": "V1.5.0",
"productVersion": "V1.5.0",
"productSpec": "grace",
"publishDate": "2024-10-23",
"description": "Update delete template",
"deployments": [
{
"deploymentId": "4a147a50-00a3-4ff6-b7bd-62e01050f162",
"templateUpgradeId": "43718b21-4f67-4a68-bb34-d5e38c33dc55",
"envName": "CONTROL_PLANE",
"productVersion": "V1.5.0",
"upgradeBy": "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
"createdAt": "2024-10-23T09:18:48.232443Z",
"updatedAt": "2024-10-23T09:18:48.323529Z",
"status": "SUCCESS"
},
{
"deploymentId": "d78c1d38-81ad-4f64-9ef8-f46ba26d430f",
"templateUpgradeId": "43718b21-4f67-4a68-bb34-d5e38c33dc55",
"envName": "stage",
"productVersion": "V1.5.0",
"upgradeBy": "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
"status": "IN_PROGRESS",
"createdAt": "2024-10-23T09:19:10.524857Z",
"updatedAt": "2024-10-23T09:24:01.823698Z"
},
{
"deploymentId": "152f5772-be11-470f-bc68-97fa168e4f3c",
"templateUpgradeId": "43718b21-4f67-4a68-bb34-d5e38c33dc55",
"envName": "production",
"productVersion": "V1.5.0",
"upgradeBy": "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
"status": "",
"createdAt": "",
"updatedAt": ""
}
],
"showStageUpgradeButton": false,
"showProductionUpgradeButton": false,
"status": "Upgrading"
},
{
"templateUpgradeId": "6ad3f238-c3ae-4a22-91b0-4fa4a495a273",
"name": "V1.4.9",
"productVersion": "V1.4.9",
"productSpec": "grace",
"publishDate": "2024-10-23",
"description": "Add validation of productType and buyerId for inventory read\nFix stage upgrade 'problem': deploy draft mapper\nUpdate system-upgrade user role",
"deployments": [],
"showStageUpgradeButton": false,
"showProductionUpgradeButton": false,
"status": "Deprecated"
}
]
116 changes: 2 additions & 114 deletions kraken-app/kraken-app-portal/src/__mocks__/mappingTemplate.ts
Original file line number Diff line number Diff line change
@@ -1,116 +1,4 @@
import { IReleaseHistory } from "@/utils/types/product.type";
import mappingData from "./mappingTemplate.json"

export const mappingTemplateRelease: IReleaseHistory[] = [
{
templateUpgradeId: "33dea20e-3f0f-45a1-8fc2-5914742e5b8f",
name: "V1.5.2",
productVersion: "V1.5.2",
productSpec: "grace",
publishDate: "2024-10-28",
description:
"Refactor the error tips for quote detail, order detail and inventory list page.",
deployments: [],
showStageUpgradeButton: true,
showProductionUpgradeButton: true,
status: "Not upgraded",
},
{
templateUpgradeId: "92bcf902-b584-46ac-bc3d-4acbab25b507",
name: "V1.5.1",
productVersion: "V1.5.1",
productSpec: "grace",
publishDate: "2024-10-23",
description: "Add validation of productType and buyerId for inventory read",
deployments: [
{
deploymentId: "b684c9ac-382e-4dad-b9aa-940fd2357b2f",
templateUpgradeId: "92bcf902-b584-46ac-bc3d-4acbab25b507",
envName: "CONTROL_PLANE",
productVersion: "V1.5.1",
upgradeBy: "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
createdAt: "2024-10-23T11:05:19.369533Z",
updatedAt: "2024-10-23T11:05:19.388015Z",
status: "SUCCESS",
},
{
deploymentId: "7961a2b0-8424-416e-8616-6cd04ccdd4dc",
templateUpgradeId: "92bcf902-b584-46ac-bc3d-4acbab25b507",
envName: "stage",
productVersion: "V1.5.1",
upgradeBy: "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
status: "SUCCESS",
createdAt: "2024-10-23T11:05:37.579097Z",
updatedAt: "2024-10-23T11:10:20.786783Z",
},
{
deploymentId: "61c71b5c-5425-4719-a795-7b00e031a162",
templateUpgradeId: "92bcf902-b584-46ac-bc3d-4acbab25b507",
envName: "production",
productVersion: "V1.5.1",
upgradeBy: "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
status: "SUCCESS",
createdAt: "2024-10-23T11:10:32.993428Z",
updatedAt: "2024-10-23T11:15:20.770001Z",
},
],
showStageUpgradeButton: true,
showProductionUpgradeButton: false,
status: "Upgraded",
},
{
templateUpgradeId: "43718b21-4f67-4a68-bb34-d5e38c33dc55",
name: "V1.5.0",
productVersion: "V1.5.0",
productSpec: "grace",
publishDate: "2024-10-23",
description: "Update delete template",
deployments: [
{
deploymentId: "4a147a50-00a3-4ff6-b7bd-62e01050f162",
templateUpgradeId: "43718b21-4f67-4a68-bb34-d5e38c33dc55",
envName: "CONTROL_PLANE",
productVersion: "V1.5.0",
upgradeBy: "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
createdAt: "2024-10-23T09:18:48.232443Z",
updatedAt: "2024-10-23T09:18:48.323529Z",
status: "SUCCESS",
},
{
deploymentId: "d78c1d38-81ad-4f64-9ef8-f46ba26d430f",
templateUpgradeId: "43718b21-4f67-4a68-bb34-d5e38c33dc55",
envName: "stage",
productVersion: "V1.5.0",
upgradeBy: "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
status: "IN_PROGRESS",
createdAt: "2024-10-23T09:19:10.524857Z",
updatedAt: "2024-10-23T09:24:01.823698Z",
},
{
deploymentId: "152f5772-be11-470f-bc68-97fa168e4f3c",
templateUpgradeId: "43718b21-4f67-4a68-bb34-d5e38c33dc55",
envName: "production",
productVersion: "V1.5.0",
upgradeBy: "ce1eb3b6-dbae-4ad3-a895-fe58e4a0120a",
status: "",
createdAt: "",
updatedAt: "",
},
],
showStageUpgradeButton: false,
showProductionUpgradeButton: false,
status: "Upgrading",
},
{
templateUpgradeId: "6ad3f238-c3ae-4a22-91b0-4fa4a495a273",
name: "V1.4.9",
productVersion: "V1.4.9",
productSpec: "grace",
publishDate: "2024-10-23",
description:
"Add validation of productType and buyerId for inventory read\nFix stage upgrade problem: deploy draft mapper\nUpdate system-upgrade user role",
deployments: [],
showStageUpgradeButton: false,
showProductionUpgradeButton: false,
status: "Deprecated",
},
];
export const mappingTemplateRelease: IReleaseHistory[] = mappingData;
Loading

0 comments on commit a3bb53a

Please sign in to comment.