Skip to content

Commit d70a74b

Browse files
Merge pull request #709 from contentstack/pre-dev
Pre dev
2 parents eb97a5e + bb2a498 commit d70a74b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2482
-282
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
npm-debug.log

.talismanrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
version: "1.0.0-beta"
22

33
fileignoreconfig:
4+
- filename: ui/src/components/AuditLogs/auditLogs.interface.ts
5+
checksum: 8eaf7502faeaa062a42ee5629f12ba1e8b961b8b8e0d209c4680c59c8de6269c
6+
7+
- filename: api/src/services/migration.service.ts
8+
checksum: bd5374b31c0fad4a266bc9affdcf595f71456edb68b075c1fdfba762f7462e38
9+
10+
- filename: ui/src/components/AuditLogs/index.tsx
11+
checksum: e1402f3cd5b96328d5e1d1e5f2a7fa5179858d6133db831b1b96714eb0f8c260
12+
413
- filename: .github/workflows/secrets-scan.yml
514
ignore_detectors:
615
- filecontent
@@ -40,3 +49,14 @@ fileignoreconfig:
4049

4150
- filename: upload-api/src/helper/index.ts
4251
checksum: beef34c30cc18c55d66df0124e8bfb69899be9aaef074252afe291c93d4c0f77
52+
53+
- filename: api/src/services/migration.service.ts
54+
checksum: f37809ddd67b8ad143d7d9fbb2c305f7c9150a8eec1f3325724fca576c736656
55+
56+
- filename: ui/src/components/AuditLogs/index.tsx
57+
checksum: 51ce05f66ac49023452f200e587389e55c88357102a61e77eb468d0e02b52846
58+
59+
- filename: ui/src/components/ContentMapper/index.tsx
60+
checksum: b5f66e808ecf4461ccb5c4fde937da1e6d9e640a2521d6d85858a22261df6571
61+
62+

api/.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
npm-debug.log
3+
migration-data
4+
logs
5+
database
6+
cmsMigrationData
7+
combine.log

api/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM --platform=linux/amd64 node:24.1.0-alpine3.22
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY package*.json ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
EXPOSE 5001
12+
13+
CMD [ "npm","run", "dev"]

api/src/constants/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,12 @@ export const MIGRATION_DATA_CONFIG = {
273273

274274
EXPORT_INFO_FILE: "export-info.json",
275275
};
276+
export const GET_AUDIT_DATA = {
277+
MIGRATION: "migration-v2",
278+
API_DIR: "api",
279+
MIGRATION_DATA_DIR: "migration-data",
280+
LOGS_DIR: "logs",
281+
AUDIT_DIR: "audit",
282+
AUDIT_REPORT: "audit-report",
283+
FILTERALL: "all",
284+
}

api/src/controllers/migration.controller.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ const createTestStack = async (req: Request, res: Response): Promise<void> => {
1212
const resp = await migrationService.createTestStack(req);
1313
res.status(resp?.status).json(resp);
1414
};
15-
15+
const getAuditData = async (req: Request, res: Response): Promise<void> => {
16+
const resp = await migrationService.getAuditData(req);
17+
res.status(resp?.status).json(resp);
18+
};
1619
/**
1720
* Start Test Migartion.
1821
*
@@ -72,5 +75,6 @@ export const migrationController = {
7275
startMigration,
7376
getLogs,
7477
saveLocales,
75-
saveMappedLocales
78+
saveMappedLocales,
79+
getAuditData
7680
};

api/src/routes/migration.routes.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ router.post(
6060
);
6161

6262
router.get(
63-
"/get_migration_logs/:orgId/:projectId/:stackId",
63+
"/get_migration_logs/:orgId/:projectId/:stackId/:skip/:limit/:startIndex/:stopIndex/:searchText/:filter",
6464
asyncRouter(migrationController.getLogs)
65-
6665
)
67-
66+
router.get(
67+
"/get_audit_data/:orgId/:projectId/:stackId/:moduleName/:skip/:limit/:startIndex/:stopIndex/:searchText/:filter",
68+
asyncRouter(migrationController?.getAuditData)
69+
)
6870
/**
6971
* Route for updating the source locales from legacy CMS
7072
* @route POST /validator

0 commit comments

Comments
 (0)