-
Notifications
You must be signed in to change notification settings - Fork 9
Delta Migration Feature #1044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yashin4112
wants to merge
51
commits into
dev
Choose a base branch
from
feature/delta
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Delta Migration Feature #1044
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
2e7b7ae
delta migration functionality added
yashin4112 ab42f19
refactor: update route and enhance optional chaining in contentMapper…
yashin4112 b955cf1
refactor: enhance error management in field attacher utility; add uni…
yashin4112 94bb371
refactor: optimize global field reference handling in convertToSchema…
aishwarya-cstk 20af43d
fix: correct error message formatting in LoadStacks component by adju…
aishwarya-cstk 87b988d
refactor: implement default widget ID inference and enhance field map…
aishwarya-cstk 97ce36c
feat: add AutoMappedMergeConfirmModal component and enhance SaveChang…
aishwarya-cstk b55574b
fix: remove incorrect mapping for STATUS_ICON_Mapping in constants test
aishwarya-cstk 16460ef
chore: update uuid package from version 9.0.1 to 14.0.0 across multip…
aishwarya-cstk 68c467b
refactor: improve RteJsonConverter and block name resolution logic fo…
aishwarya-cstk 4ebc643
Revert "feat: add AutoMappedMergeConfirmModal component and enhance S…
aishwarya-cstk 589f577
chore: update axios package from version 1.15.0 to 1.15.2 across mult…
aishwarya-cstk 2d3b70a
fix(ui): avoid mapper footer overlap with smart field select menu pla…
ShradhaNahar c2be890
fix(ui): ContentMapper field select menu placement + height clamp
ShradhaNahar 5f6439a
fix: implement asset metadata saving from index.json for iteration 1
yashin4112 75a17d1
feat: add AutoMappedMergeConfirmModal component and enhance SaveChang…
aishwarya-cstk 674a6c8
Revert "feat: add AutoMappedMergeConfirmModal component and enhance S…
aishwarya-cstk e4dd793
fix(ui): avoid mapper footer overlap with smart field select menu pla…
ShradhaNahar 6fcbe63
feat(contentful): taxonomy migration, locale resolution, tests and co…
shobhit-cstk 061e3bd
feat(auth): implement OAuth token handling with HTML responses and or…
shobhit-cstk 9a6d44e
fix(tests): update Vitest branch coverage threshold and enhance utili…
shobhit-cstk c8f8b53
refactor: centralize region configuration and enhance optional chaining
shobhit-cstk de10cae
feat: add AutoMappedMergeConfirmModal component and enhance SaveChang…
aishwarya-cstk ffb91ba
Revert "feat: add AutoMappedMergeConfirmModal component and enhance S…
aishwarya-cstk c40071b
conflicts resolved
yashin4112 e3be2f5
conflicts resolved
yashin4112 aa15084
Merge branch 'dev' into feature/delta
yashin4112 764ca65
feat: enhance WordPress schema mapping with single-child group handli…
aishwarya-cstk f26cb2a
refactor: improve WordPress content mapping and taxonomy handling
aishwarya-cstk c2b6518
refactor: optimize content model filtering in ContentMapper,Introduce…
aishwarya-cstk 8317902
feat: add helper function to flatten ContentStack schema into a label…
aishwarya-cstk 8946344
feat: add utility function to resolve Axios response headers
aishwarya-cstk f0a343b
refactor: resolved PR commenents
aishwarya-cstk 9aa5a34
feat(marketplace): enhance app manifest creation with marketplace ins…
shobhit-cstk 9b04728
test(market-app): add unit tests for fetchMarketplaceInstallationsFor…
shobhit-cstk 977923b
delta migration functionality added
yashin4112 701e6a8
refactor: implement default widget ID inference and enhance field map…
aishwarya-cstk 2b5caae
feat: add AutoMappedMergeConfirmModal component and enhance SaveChang…
aishwarya-cstk feb2950
Revert "feat: add AutoMappedMergeConfirmModal component and enhance S…
aishwarya-cstk 8285520
chore: update axios package from version 1.15.0 to 1.15.2 across mult…
aishwarya-cstk 7d1b6a9
fix(ui): ContentMapper field select menu placement + height clamp
ShradhaNahar 2780dc3
feat: add AutoMappedMergeConfirmModal component and enhance SaveChang…
aishwarya-cstk 40eb214
Revert "feat: add AutoMappedMergeConfirmModal component and enhance S…
aishwarya-cstk 78fb4f8
feat(contentful): taxonomy migration, locale resolution, tests and co…
shobhit-cstk 5371105
fix(tests): update Vitest branch coverage threshold and enhance utili…
shobhit-cstk 8dbe92f
feat: add AutoMappedMergeConfirmModal component and enhance SaveChang…
aishwarya-cstk 78bbd43
Revert "feat: add AutoMappedMergeConfirmModal component and enhance S…
aishwarya-cstk d27d09f
conflicts resolved
yashin4112 14c1b49
Merge branch 'dev' into feature/delta
yashin4112 2d9b348
feat(migration): enhance asset index validation and error handling
yashin4112 194c0cb
Merge branch 'dev' into feature/delta
yashin4112 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,4 +104,4 @@ | |
| "undici": ">=7.24.0" | ||
| }, | ||
| "keywords": [] | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| import { JSONFile } from "lowdb/node"; | ||
| import LowWithLodash from "../utils/lowdb-lodash.utils.js"; | ||
| import path from "path"; | ||
| import fs from 'node:fs'; | ||
|
|
||
| /** | ||
| * Represents the advanced configuration options for a field mapper. | ||
| */ | ||
| export interface Advanced { | ||
| validationRegex: string; | ||
| mandatory: boolean; | ||
| multiple: boolean; | ||
| unique: boolean; | ||
| nonLocalizable: boolean; | ||
| embedObject: boolean; | ||
| embedObjects: any; | ||
| minChars: string; | ||
| maxChars: number; | ||
| default_value: string; | ||
| description: string; | ||
| validationErrorMessage: string; | ||
| options: any[]; | ||
| } | ||
|
|
||
| /** | ||
| * Represents an entry mapper object. | ||
| */ | ||
| export interface EntryMapper { | ||
| entry_mapper: { | ||
| id: string; | ||
| projectId: string; | ||
| contentTypeId: string; | ||
| contentTypeUid: string; | ||
| entryName: string; | ||
| otherCmsEntryUid: string; | ||
| isUpdate: boolean; | ||
| contentstackEntryUid: string; | ||
| isDuplicateEntry: boolean; | ||
| }[]; | ||
| } | ||
|
|
||
| const defaultData: EntryMapper = { entry_mapper: [] }; | ||
|
|
||
| /** | ||
| * Creates and returns a database instance for the field mapper for a specific project. | ||
| * @param projectId - The unique identifier of the project | ||
| * @returns The database instance for the field mapper | ||
| */ | ||
| const getEntryMapperDb = (projectId: string, iteration: number) => { | ||
| fs.mkdirSync(path.join(process.cwd(), "database", projectId, iteration.toString()), { recursive: true }); | ||
| const db = new LowWithLodash( | ||
| new JSONFile<EntryMapper>( | ||
| path.join(process.cwd(), "database", projectId, iteration.toString(), 'entry-mapper.json') | ||
| ), | ||
| defaultData | ||
| ); | ||
| return db; | ||
| }; | ||
|
|
||
| export default getEntryMapperDb; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| import { JSONFile } from "lowdb/node"; | ||
| import LowWithLodash from "../utils/lowdb-lodash.utils.js"; | ||
| import path from "path"; | ||
| import fs from 'node:fs'; | ||
|
|
||
| /** | ||
| * Represents the advanced configuration options for a field mapper. | ||
| */ | ||
| export interface Advanced { | ||
| validationRegex: string; | ||
| mandatory: boolean; | ||
| multiple: boolean; | ||
| unique: boolean; | ||
| nonLocalizable: boolean; | ||
| embedObject: boolean; | ||
| embedObjects: any; | ||
| minChars: string; | ||
| maxChars: number; | ||
| default_value: string; | ||
| description: string; | ||
| validationErrorMessage: string; | ||
| options: any[]; | ||
| } | ||
|
|
||
| /** | ||
| * Represents an entry mapper object. | ||
| */ | ||
| interface EntryMapper { | ||
| entry: Record<string, any>; | ||
| assets: Record<string, any>; | ||
| } | ||
|
|
||
| const defaultData: EntryMapper = { entry: {}, assets: {} }; | ||
|
|
||
| /** | ||
| * Creates and returns a database instance for the field mapper for a specific project. | ||
| * @param projectId - The unique identifier of the project | ||
| * @returns The database instance for the field mapper | ||
| */ | ||
| const getUidMapperDb = (projectId: string, iteration: number) => { | ||
| fs.mkdirSync(path.join(process.cwd(), "database", projectId, iteration.toString()), { recursive: true }); | ||
| const db = new LowWithLodash( | ||
| new JSONFile<EntryMapper>( | ||
| path.join(process.cwd(), "database", projectId, iteration.toString(), 'uid-mapper.json') | ||
| ), | ||
| defaultData | ||
| ); | ||
| return db; | ||
| }; | ||
|
|
||
| export default getUidMapperDb; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.