Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const LOCALE_MAPPER: any = {
masterLocale: {
"en-us": "en",
},
fr: "fr-fr",
locales:{fr: "fr-fr",}
};
export const CHUNK_SIZE = 1048576;

Expand Down
22 changes: 12 additions & 10 deletions api/src/services/migration.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,17 @@ const startTestMigration = async (req: Request): Promise<any> => {
}
case CMS.WORDPRESS: {
if (packagePath) {
await wordpressService?.createLocale(req, project?.current_test_stack_id, projectId, project);
await wordpressService?.getAllAssets(file_path, packagePath, project?.current_test_stack_id, projectId)
await wordpressService?.createAssetFolderFile(file_path, project?.current_test_stack_id, projectId)
await wordpressService?.getAllreference(file_path, packagePath, project?.current_test_stack_id, projectId)
await wordpressService?.extractChunks(file_path, packagePath, project?.current_test_stack_id, projectId)
await wordpressService?.getAllAuthors(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.getAllAuthors(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale, project)
//await wordpressService?.extractContentTypes(projectId, project?.current_test_stack_id, contentTypes)
await wordpressService?.getAllTerms(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.getAllTags(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.getAllCategories(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.extractPosts(packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.getAllTerms(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale, project)
await wordpressService?.getAllTags(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale, project)
await wordpressService?.getAllCategories(file_path, packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale, project)
await wordpressService?.extractPosts(packagePath, project?.current_test_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale, project)
await wordpressService?.extractGlobalFields(project?.current_test_stack_id, projectId)
await wordpressService?.createVersionFile(project?.current_test_stack_id, projectId);
}
Expand Down Expand Up @@ -315,16 +316,17 @@ const startMigration = async (req: Request): Promise<any> => {
}
case CMS.WORDPRESS: {
if (packagePath) {
await wordpressService?.createLocale(req, project?.current_test_stack_id, projectId, project);
await wordpressService?.getAllAssets(file_path, packagePath, project?.destination_stack_id, projectId,)
await wordpressService?.createAssetFolderFile(file_path, project?.destination_stack_id, projectId)
await wordpressService?.getAllreference(file_path, packagePath, project?.destination_stack_id, projectId)
await wordpressService?.extractChunks(file_path, packagePath, project?.destination_stack_id, projectId)
await wordpressService?.getAllAuthors(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.getAllAuthors(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale, project)
//await wordpressService?.extractContentTypes(projectId, project?.destination_stack_id)
await wordpressService?.getAllTerms(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.getAllTags(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.getAllCategories(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.extractPosts(packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale)
await wordpressService?.getAllTerms(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale, project)
await wordpressService?.getAllTags(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale, project)
await wordpressService?.getAllCategories(file_path, packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale, project)
await wordpressService?.extractPosts(packagePath, project?.destination_stack_id, projectId, contentTypes, project?.mapperKeys, project?.stackDetails?.master_locale, project)
await wordpressService?.extractGlobalFields(project?.destination_stack_id, projectId)
await wordpressService?.createVersionFile(project?.destination_stack_id, projectId);
}
Expand Down
Loading
Loading