Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
51d7c2c
feat: taxonomy localization support in export
aman19K Oct 13, 2025
ce382a1
feat: taxonomy localization support in import
aman19K Oct 13, 2025
efe83b3
feat: taxonomy locale support in migration example & script
aman19K Oct 13, 2025
6552069
fix: corrupted config file issue
aman19K Oct 13, 2025
55869f1
Merge pull request #2161 from contentstack/feat/DX-3598
aman19K Oct 13, 2025
d364abf
feat: Added taxonomy localization support in export-to-csv
aman19K Oct 16, 2025
9d13906
fix: export to csv test cases
aman19K Oct 17, 2025
ed7524b
Merge pull request #2178 from contentstack/feat/DX-3638
aman19K Oct 17, 2025
2fc71d8
fix: infinite retry loop on errors
aman19K Oct 18, 2025
09311d8
Fix: Added test cases for Entries helper
cs-raj Oct 24, 2025
3d6d13f
Merge branch 'development' into test/DX-3653-c
harshithad0703 Oct 24, 2025
f8f5358
Merge pull request #2189 from contentstack/test/DX-3653-c
cs-raj Oct 24, 2025
708cb92
Fix: Added Tests for Stack module
cs-raj Oct 27, 2025
7438c68
Merge pull request #2190 from contentstack/tests/DX-3591
cs-raj Oct 27, 2025
729ed39
Fix: Added Test cases for environments module
cs-raj Oct 27, 2025
c4325ee
feat: add test cases base-class and asssets for export module
Oct 27, 2025
745936c
Merge pull request #2191 from contentstack/tests/DX-3591-b
cs-raj Oct 27, 2025
e71c079
Fix: Added Tests for Locales module
cs-raj Oct 27, 2025
22ba8fc
Version bump
cs-raj Oct 27, 2025
a8a9dfd
Merge branch 'development' into enhancement/DX-3579
Oct 27, 2025
e7eb21f
Merge pull request #2192 from contentstack/enhancement/DX-3579
naman-contentstack Oct 27, 2025
1eaa179
Merge branch 'development' into tests/DX-3591-c
cs-raj Oct 28, 2025
a42eb01
Merge pull request #2194 from contentstack/tests/DX-3591-c
cs-raj Oct 28, 2025
c2d84d5
chore: add test cases for envs, extensions, locales,stacks, taxonomie…
Oct 28, 2025
ee7fb00
add test cases in stack.test
Oct 28, 2025
2ab7518
Fixed the Handling of Multiple Global Fields
cs-raj Oct 28, 2025
0d1ac6d
Merge pull request #2197 from contentstack/feat/DX-3583
naman-contentstack Oct 28, 2025
f8797e7
chore: add test cases for global-fields, custom roles, workflows, con…
Oct 28, 2025
02c34bb
Merge pull request #2199 from contentstack/feat/DX-3584
naman-contentstack Oct 28, 2025
de71b1a
Merge branch 'development' into fix/DX-3623
cs-raj Oct 28, 2025
4b80829
Merge branch staging into fix/merge-conflicts
harshithad0703 Oct 29, 2025
88dae10
Merge pull request #2204 from contentstack/fix/merge-conflicts
harshithad0703 Oct 29, 2025
cd598df
Merge branch 'development' into fix/DX-3623
cs-raj Oct 29, 2025
4850572
Tests: Added Unit Test cases for Extensions Webhooks Taxonomies and U…
cs-raj Oct 29, 2025
354814a
Merge branch 'development' into tests/DX-3665
cs-raj Oct 29, 2025
d925e90
Merge pull request #2205 from contentstack/tests/DX-3665
cs-raj Oct 29, 2025
7d724ab
Tests: Added unit test cases for personalize, variant-entries and index
cs-raj Oct 29, 2025
bbcac3b
Tests: Added Unit Test cases for Module importer
cs-raj Oct 29, 2025
c2b979a
chore: add test cases for utils
Oct 29, 2025
045631c
Merge branch 'development' into feat/DX-3580
Oct 29, 2025
2f7f9e9
Merge pull request #2207 from contentstack/tests/DX-3668
cs-raj Oct 29, 2025
f58d303
add fix for test cases
Oct 29, 2025
741fea5
update file helper test case
Oct 29, 2025
c8858eb
updated test cases
Oct 29, 2025
0f6f546
Merge branch 'development' into feat/DX-3580
Oct 29, 2025
70de1fe
Test: Added Unit Test cases for Backup Handler, Common Helper File He…
cs-raj Oct 29, 2025
e732839
Merge branch 'development' into tests/DX-3669
cs-raj Oct 30, 2025
98f63ce
Merge pull request #2208 from contentstack/feat/DX-3580
naman-contentstack Oct 30, 2025
5aeafed
Merge branch 'development' into tests/DX-3669
cs-raj Oct 30, 2025
ffd46e7
Merge pull request #2209 from contentstack/tests/DX-3669
cs-raj Oct 30, 2025
8df458c
Tests: Added test cases for Utilitites Modules
cs-raj Oct 30, 2025
8b21334
Merge branch 'development' into tests/DX-3670
cs-raj Oct 30, 2025
64620f7
Merge branch 'development' into tests/DX-3671
cs-raj Oct 30, 2025
c97f5ed
Merge branch 'main' into fix/back-merge
harshithad0703 Oct 31, 2025
eaf6b2b
Merge pull request #2211 from contentstack/fix/back-merge
harshithad0703 Oct 31, 2025
4288b99
Merge branch 'development' into tests/DX-3670
cs-raj Oct 31, 2025
f11587d
Fixed the test cases
cs-raj Oct 31, 2025
13cc65b
Merge pull request #2213 from contentstack/tests/DX-3670
cs-raj Oct 31, 2025
ffe9909
Tests: Added Unit Test cases for Extensions Webhooks Taxonomies and U…
cs-raj Oct 29, 2025
bdd1590
Tests: Added Unit Test cases for Module importer
cs-raj Oct 29, 2025
b21556c
Tests: Added unit test cases for personalize, variant-entries and index
cs-raj Oct 29, 2025
9e8636d
chore: add test cases for utils
Oct 29, 2025
e28c741
add fix for test cases
Oct 29, 2025
5217749
update file helper test case
Oct 29, 2025
c8e3b1f
updated test cases
Oct 29, 2025
a611e36
Lock File Updatd
cs-raj Oct 31, 2025
9edf014
Test: Added Unit Test cases for Backup Handler, Common Helper File He…
cs-raj Oct 29, 2025
05c7323
Fixed the test cases
cs-raj Oct 31, 2025
98aacc0
Lock File update
cs-raj Oct 31, 2025
21b506b
Lock File udpate
cs-raj Oct 31, 2025
c7a2a22
Merge branch 'development' into fix/DX-3623
cs-raj Oct 31, 2025
47f19ac
Lock File Update
cs-raj Oct 31, 2025
2e61f23
Merge branch 'development' into tests/DX-3671
cs-raj Oct 31, 2025
1134f8c
Fixed unit test cases for logger and config handler
cs-raj Nov 3, 2025
faa3c28
Merge pull request #2214 from contentstack/tests/DX-3671
cs-raj Nov 3, 2025
0c04afa
Merge branch 'development' into fix/DX-3623
cs-raj Nov 4, 2025
700b94b
Merge pull request #2198 from contentstack/fix/DX-3623
cs-raj Nov 5, 2025
65ea0ff
Merge remote-tracking branch 'origin/development' into feat/DX-3572-t…
sunil-lakshman Nov 5, 2025
6fa709d
Added taxonomy localization unit testcases
sunil-lakshman Nov 6, 2025
c6a3733
Fixed unit testcases in export plugin
sunil-lakshman Nov 6, 2025
12a2b1f
Merge pull request #2217 from contentstack/fix/dx-3571-testcases
sunil-lakshman Nov 6, 2025
9b74159
Added version bump
sunil-lakshman Nov 6, 2025
88413bf
Added version bump
sunil-lakshman Nov 6, 2025
0776957
Merge pull request #2218 from contentstack/enh/version_bump
sunil-lakshman Nov 6, 2025
875b2b8
fix: export-to-csv fallback locale issue
aman19K Nov 6, 2025
ea0bc09
fix: export-to-csv fallback locale issue
aman19K Nov 6, 2025
73ca127
inquirer version bump
sunil-lakshman Nov 6, 2025
1016d9f
Merge pull request #2216 from contentstack/feat/DX-3571-taxonomy-loca…
sunil-lakshman Nov 7, 2025
eb5db3b
Merge pull request #2219 from contentstack/development
harshithad0703 Nov 7, 2025
1ba0471
taxonomy localisation change
shafeeqd959 Nov 10, 2025
b6a1bae
taxonomy locale changes
shafeeqd959 Nov 10, 2025
a627f4b
added taxonomy localization
shafeeqd959 Nov 11, 2025
6fa2b6e
updated talisman rc
shafeeqd959 Nov 11, 2025
8efe0ca
Merge pull request #2226 from contentstack/feat/taxonomy-localization…
shafeeqd959 Nov 11, 2025
e4471b6
bumped version
shafeeqd959 Nov 11, 2025
ed86244
Merge branch 'development' of github.com:contentstack/cli into feat/t…
shafeeqd959 Nov 11, 2025
5ef8c15
Merge pull request #2227 from contentstack/feat/taxonomy-localization…
harshithad0703 Nov 11, 2025
d10ca17
Merge pull request #2228 from contentstack/development
harshithad0703 Nov 11, 2025
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
6 changes: 5 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Install dependencies for all plugins
run: |
npm run setup-repo-old
NODE_ENV=PREPACK_MODE npm run setup-repo-old

- name: Run tests for Contentstack Command
working-directory: ./packages/contentstack-command
Expand All @@ -27,6 +27,10 @@ jobs:
- name: Run tests for Contentstack Import Plugin
working-directory: ./packages/contentstack-import
run: npm run test:unit

- name: Run tests for Contentstack Export Plugin
working-directory: ./packages/contentstack-export
run: npm run test:unit

- name: Run tests for Audit plugin
working-directory: ./packages/contentstack-audit
Expand Down
330 changes: 205 additions & 125 deletions .talismanrc

Large diffs are not rendered by default.

2,353 changes: 1,150 additions & 1,203 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/contentstack-audit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/cli-audit",
"version": "1.15.0",
"version": "1.16.0",
"description": "Contentstack audit plugin",
"author": "Contentstack CLI",
"homepage": "https://github.com/contentstack/cli",
Expand Down
46 changes: 36 additions & 10 deletions packages/contentstack-audit/src/modules/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,24 @@ export default class Entries {
break;
case 'global_field':
log.debug(`Validating global field: ${display_name}`, this.config.auditContext);
this.validateGlobalField(
[...tree, { uid: child.uid, name: child.display_name, field: uid }],
child as GlobalFieldDataType,
entry[uid] as EntryGlobalFieldDataType,
);
if (child.multiple && Array.isArray(entry[uid])) {
log.debug(`Processing ${entry[uid].length} multiple global field entries`, this.config.auditContext);
entry[uid].forEach((globalFieldEntry, index) => {
log.debug(`Processing global field entry ${index}`, this.config.auditContext);
this.validateGlobalField(
[...tree, { uid: child.uid, name: child.display_name, field: uid }],
child as GlobalFieldDataType,
globalFieldEntry as EntryGlobalFieldDataType,
);
});
} else {
log.debug(`Processing single global field entry`, this.config.auditContext);
this.validateGlobalField(
[...tree, { uid: child.uid, name: child.display_name, field: uid }],
child as GlobalFieldDataType,
entry[uid] as EntryGlobalFieldDataType,
);
}
break;
case 'json':
if ('extension' in child.field_metadata && child.field_metadata.extension) {
Expand Down Expand Up @@ -995,11 +1008,24 @@ export default class Entries {
switch (data_type) {
case 'global_field':
log.debug(`Fixing global field: ${uid}`);
entry[uid] = this.fixGlobalFieldReferences(
[...tree, { uid: field.uid, name: field.display_name, data_type: field.data_type }],
field as GlobalFieldDataType,
entry[uid] as EntryGlobalFieldDataType,
) as EntryGlobalFieldDataType;
if (field.multiple && Array.isArray(entry[uid])) {
log.debug(`Fixing ${entry[uid].length} multiple global field entries`, this.config.auditContext);
entry[uid] = entry[uid].map((globalFieldEntry, index) => {
log.debug(`Fixing global field entry ${index}`, this.config.auditContext);
return this.fixGlobalFieldReferences(
[...tree, { uid: field.uid, name: field.display_name, data_type: field.data_type }],
field as GlobalFieldDataType,
globalFieldEntry as EntryGlobalFieldDataType,
) as EntryGlobalFieldDataType;
});
} else {
log.debug(`Fixing single global field entry`, this.config.auditContext);
entry[uid] = this.fixGlobalFieldReferences(
[...tree, { uid: field.uid, name: field.display_name, data_type: field.data_type }],
field as GlobalFieldDataType,
entry[uid] as EntryGlobalFieldDataType,
) as EntryGlobalFieldDataType;
}
break;
case 'json':
case 'reference':
Expand Down
Loading
Loading