Skip to content
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

Staging #1548

Merged
merged 2,303 commits into from
Sep 12, 2024
Merged

Staging #1548

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2303 commits
Select commit Hold shift + click to select a range
818bc25
Merge branch 'staging' into staging-to-development
cs-raj May 3, 2024
f4aa123
Lock-file and readme update
cs-raj May 3, 2024
6dd0125
Merge pull request #1398 from contentstack/staging-to-development
cs-raj May 3, 2024
71e1309
fix: added success message for exporting experience
aman19K May 6, 2024
cbc09b9
Merge pull request #31 from contentstack/fix/DX-487-export-experience…
aman19K May 6, 2024
a471f03
added audit and audit fix for mandatory fields in Entries, and added …
cs-raj May 6, 2024
62bb5c4
PR fixes and lock-file update
cs-raj May 6, 2024
9b70237
PR comment fixes
cs-raj May 6, 2024
d2942ca
added condition to show extension updated message successfully, in ma…
cs-raj May 6, 2024
70e5e46
formatting
cs-raj May 6, 2024
e5d823a
PR change
cs-raj May 6, 2024
c794718
displaying the audit report for the mandatory feilds in case of no pu…
cs-raj May 6, 2024
905a28d
Merge pull request #1400 from contentstack/fix/DX-54
cs-raj May 6, 2024
28e8eff
removing redundant checks
cs-raj May 6, 2024
6495f46
Merge branch 'development' into feat/DX-523
cs-raj May 7, 2024
f20c73d
Merge pull request #1399 from contentstack/feat/DX-523
cs-raj May 7, 2024
05ae5de
upgraded oclif/core to 3.26.5 and version bump
cs-raj May 7, 2024
3337c1c
used the length property to validate the missing mandatory fields, av…
cs-raj May 7, 2024
0d0da65
Merge pull request #1402 from contentstack/bugfix/DX-552
cs-raj May 7, 2024
df0badc
handled the case when Csdx context is not found
cs-raj May 7, 2024
57f215d
lock-file update
cs-raj May 8, 2024
68c35f2
Merge pull request #1403 from contentstack/fix/lock-files
cs-raj May 8, 2024
56700b8
Merge pull request #1404 from contentstack/development
cs-raj May 8, 2024
4b1d69b
Merge branch 'development' into feat/DX-524
cs-raj May 8, 2024
c933f81
feat: handled variant api errors
aman19K May 9, 2024
c633199
fix: attribute, audience, event & experience fail cases
aman19K May 9, 2024
d70f22d
revert dev url
aman19K May 9, 2024
1514232
Merge pull request #32 from contentstack/feat/DX-317-handle-variant-a…
aman19K May 9, 2024
12f3f87
updated personalization url to access in multiple region
shafeeqd959 May 9, 2024
9a5fd82
merged changes
shafeeqd959 May 9, 2024
c7c55f0
removed console
shafeeqd959 May 9, 2024
4e61e45
Merge pull request #33 from contentstack/feat/DX-502
shafeeqd959 May 9, 2024
b4c46ac
changed remove publish_details function and changed the logs for both…
cs-raj May 13, 2024
5891dfa
formatting and used the previous function with changed name for publi…
cs-raj May 13, 2024
580ddf6
lock-file update
cs-raj May 13, 2024
debd815
Merge pull request #1405 from contentstack/staging
cs-raj May 13, 2024
3112f51
import and export version bump
cs-raj May 13, 2024
5269873
Merge pull request #1406 from contentstack/fix/DX-92
cs-raj May 13, 2024
c1d3079
Merge pull request #1407 from contentstack/main
cs-raj May 13, 2024
e3620b3
Merge branch 'staging' into staging-to-development
cs-raj May 13, 2024
69419c2
Back merge lock-file update
cs-raj May 13, 2024
bec9eb0
Merge pull request #1408 from contentstack/staging-to-development
cs-raj May 13, 2024
9f737c7
Merge remote-tracking branch 'origin/development' into feat/DX-524
cs-raj May 13, 2024
5ad0d3d
lock-file update
cs-raj May 13, 2024
4b9fd62
Merge pull request #1401 from contentstack/feat/DX-524
cs-raj May 13, 2024
1c94309
fix: issue with import entries arising from compact library
aman19K May 14, 2024
ed729dc
fix: typo
aman19K May 15, 2024
5d6e248
Merge pull request #1409 from contentstack/fix/DX-591
aman19K May 15, 2024
dc28a4f
cli-command version bump
cs-raj May 15, 2024
3e020a5
Merge branch 'development' into fix/version-bump
cs-raj May 15, 2024
9a02c56
Merge pull request #1410 from contentstack/fix/version-bump
cs-raj May 15, 2024
7e18eeb
Merge pull request #1411 from contentstack/development
cs-raj May 15, 2024
fe01905
SRE fixes
cs-raj May 16, 2024
7a27156
fix path related issues
cs-raj May 17, 2024
4fc06d6
variable update
cs-raj May 17, 2024
d5ce142
fixed Regex
cs-raj May 17, 2024
5a2c782
sca-scan.yml
aravindbuilt May 17, 2024
3b178f1
jira.yml
aravindbuilt May 17, 2024
959455c
sast-scan.yml
aravindbuilt May 17, 2024
f0b86d4
Delete secrets-scan.yml
aravindbuilt May 17, 2024
1d9304b
codeql-analysis.yml
aravindbuilt May 17, 2024
495a6e6
fix auth issues
cs-raj May 17, 2024
54ab51b
Resolved Regular expression DOS attacks and prototype pollution
cs-raj May 20, 2024
4e72a14
Merge branch 'main' into main-to-stage
cs-raj May 20, 2024
b0d219f
Merge pull request #1413 from contentstack/main-to-stage
cs-raj May 20, 2024
1e3cbef
Merge pull request #1414 from contentstack/staging-to-development
cs-raj May 20, 2024
813ff16
fix: variant import & handle import error
aman19K May 20, 2024
c88e713
version bump and reverted changes for asset url
cs-raj May 21, 2024
da69139
fix: import logger issue
aman19K May 21, 2024
7f0bd30
Merge branch 'development' into fix/DX-94
cs-raj May 21, 2024
d834c01
removed unsed regex
cs-raj May 21, 2024
d304357
refactor: create variant entry
aman19K May 21, 2024
b6fd2c9
fix: variant entries list check
aman19K May 21, 2024
d86ca8d
refactor: variant import error handling
aman19K May 21, 2024
b5e9497
Merge pull request #34 from contentstack/fix/Dx-581-import-variant-en…
aman19K May 21, 2024
ee30df6
fix: asset import & variant export issue
aman19K May 21, 2024
3376c69
Merge pull request #35 from contentstack/fix/DX-624
aman19K May 21, 2024
2f395a5
PR fixes and formating
cs-raj May 21, 2024
7a053f0
adding sanitize path in callsite
cs-raj May 21, 2024
ce3816f
typo error
cs-raj May 21, 2024
16b5e12
Merge pull request #1415 from contentstack/fix/DX-94
cs-raj May 21, 2024
5710ef8
feat: implemented entry variants publish
aman19K May 22, 2024
30d8fe0
fix: variant uid mapper
aman19K May 22, 2024
a69c7e5
fix: entries mapper issue
aman19K May 22, 2024
a9ff25d
fix: variant publish issue
aman19K May 23, 2024
5621e3d
formatting & doc
aman19K May 23, 2024
f05af8a
Merge pull request #36 from contentstack/feat/DX-319-variant-entries-…
aman19K May 23, 2024
077ed4d
fixed the generating tree structure for the assets during branches merge
cs-raj May 23, 2024
202d3e0
fix: handled log message if stack not connected with any project
aman19K May 23, 2024
5f579be
Merge pull request #37 from contentstack/fix/DX-650
aman19K May 23, 2024
f54fd8a
Merge pull request #1416 from contentstack/fix/DX-525
cs-raj May 24, 2024
08f70af
Merge pull request #1412 from contentstack/staging
cs-raj May 24, 2024
9a3aaa7
fixed content type attaching in experience, empty entry variants fold…
shafeeqd959 May 24, 2024
e3ed6ee
Merge pull request #38 from contentstack/fix/DX-579/DX-580
shafeeqd959 May 24, 2024
4322cf7
Merge pull request #1417 from contentstack/main
cs-raj May 24, 2024
16ea0f1
added variant success file
aman19K May 24, 2024
f1e72ee
revert dev url
aman19K May 24, 2024
4e7c1ec
Merge branch 'staging' into staging-to-development
cs-raj May 24, 2024
f07d6af
Merge pull request #1419 from contentstack/staging-to-development
cs-raj May 24, 2024
1e2630c
handle failed entry variant case
aman19K May 27, 2024
cde5833
added variant uid in publish logger msg
aman19K May 27, 2024
25a329f
Merge pull request #39 from contentstack/fix/variant-success-file
aman19K May 28, 2024
79cd09f
fix: variant folder issues & added personalization module check befor…
aman19K May 30, 2024
4251b8d
refactor: default personalization disabled
aman19K May 30, 2024
c8e800f
Merge pull request #40 from contentstack/fix/DX-676
aman19K May 30, 2024
3a337a8
Merge pull request #1420 from contentstack/development
harshithad0703 May 31, 2024
5929828
fix: Handled pagination during the script creation
cs-raj Jun 3, 2024
fc10e46
minor version bump
cs-raj Jun 3, 2024
15dc431
variable declaration fix
cs-raj Jun 3, 2024
5578d6c
fixed the issues with rich text type and bugs in entries helper
cs-raj Jun 4, 2024
831fd0d
fix: handle deprecation warning message
aman19K Jun 4, 2024
e3d4694
Merge pull request #1422 from contentstack/bugfix/DX-717
cs-raj Jun 4, 2024
d93a129
Merge remote-tracking branch 'origin/development' into fix/DX-647
cs-raj Jun 4, 2024
811cf3a
fixed the entry migration script for contentTypes
cs-raj Jun 4, 2024
301d39f
Merge pull request #1424 from contentstack/fix/dev
cs-raj Jun 4, 2024
f57d92b
Merge branch 'development' into fix/DX-647
cs-raj Jun 4, 2024
7df5a10
Merge pull request #1423 from contentstack/fix/DX-647
cs-raj Jun 4, 2024
c6c48f6
Implemented compass app integration with Seed and Bootstrap command (…
sunil-lakshman Jun 5, 2024
90dc8cc
Merge branch 'development' into fix/DX-51/deprecation-warning
aman19K Jun 5, 2024
997c9f9
Merge pull request #1427 from contentstack/fix/DX-51/deprecation-warning
aman19K Jun 5, 2024
23570d0
Merge pull request #1421 from contentstack/staging
harshithad0703 Jun 5, 2024
5fd14eb
Merge pull request #1428 from contentstack/main
harshithad0703 Jun 5, 2024
b2cab26
Merge branch 'staging' into staging-to-development
harshithad0703 Jun 5, 2024
299451b
Merge pull request #1429 from contentstack/staging-to-development
harshithad0703 Jun 5, 2024
18d4878
fixed entry variant import for file fields and fixed project name dup…
shafeeqd959 Jun 5, 2024
284691f
added project flag
shafeeqd959 Jun 6, 2024
314402a
Merge pull request #41 from contentstack/fix/DX-643/DX-644
shafeeqd959 Jun 6, 2024
f56882c
fix: added rte field missing fix
Jun 6, 2024
6320ee5
feat: Added two flags for excluding the global modules and one for pr…
cs-raj Jun 7, 2024
dfa3ffd
fix: Reverted bootstrap changes
cs-raj Jun 7, 2024
6c0f65d
Merge pull request #1432 from contentstack/revert/changes
cs-raj Jun 7, 2024
87d1f6e
Merge pull request #1433 from contentstack/development
cs-raj Jun 7, 2024
bbcf41c
fixed project creation
shafeeqd959 Jun 7, 2024
6af75a1
Merge pull request #42 from contentstack/fix/DX-643/DX-644
shafeeqd959 Jun 7, 2024
7bb65e3
added prompt for mapper directory
cs-raj Jun 10, 2024
d1710ae
only webhooks are excluded
cs-raj Jun 10, 2024
cac073d
Merge remote-tracking branch 'origin/development' into feat/DX-56
cs-raj Jun 10, 2024
329f17b
lock-file update
cs-raj Jun 10, 2024
efd2b91
pnpm file update
cs-raj Jun 10, 2024
87da972
Merge remote-tracking branch 'origin/development' into feat/DX-56
cs-raj Jun 10, 2024
22e519e
version bump
cs-raj Jun 10, 2024
6aeac45
removed unused code
cs-raj Jun 10, 2024
0b5ae6d
PR fix
cs-raj Jun 10, 2024
0384d6d
Removed mapper directory
cs-raj Jun 10, 2024
6f954f3
chore: upgraded marketplace sdk package
harshithad0703 Jun 10, 2024
0611639
version bump
harshithad0703 Jun 10, 2024
51fe246
final PR changes !
cs-raj Jun 10, 2024
038ba89
Merge pull request #1431 from contentstack/feat/DX-56
cs-raj Jun 10, 2024
7dcddb0
Merge branch 'development' into fix/DX-775-upgrade-marketplace-sdk
harshithad0703 Jun 10, 2024
f013d58
Merge pull request #1435 from contentstack/fix/DX-775-upgrade-marketp…
harshithad0703 Jun 10, 2024
a5cc115
chore: version bump
harshithad0703 Jun 10, 2024
35cafdc
Merge branch 'development' into fix/DX-775-upgrade-marketplace-sdk
harshithad0703 Jun 10, 2024
226ddcd
Merge pull request #1436 from contentstack/fix/DX-775-upgrade-marketp…
harshithad0703 Jun 10, 2024
5aad9bc
Merge pull request #1434 from contentstack/staging
cs-raj Jun 11, 2024
c9fed8b
Merge pull request #1437 from contentstack/main
cs-raj Jun 11, 2024
06c0c06
Merge remote-tracking branch 'origin/staging' into stage-to-development
cs-raj Jun 11, 2024
89d4961
lock-file update
cs-raj Jun 11, 2024
ceab81a
Merge pull request #1439 from contentstack/stage-to-development
cs-raj Jun 11, 2024
fa7ab5f
fix: removed rteCTs check
Jun 18, 2024
754cdd8
Merge branch 'development' into fix/DX-606
cs-raj Jun 19, 2024
ab5f5f8
Merge pull request #1430 from contentstack/fix/DX-606
aman19K Jun 19, 2024
079934e
fix: handle taxonomy & environment mapper issue
aman19K Jun 21, 2024
6d3715e
Merge pull request #1440 from contentstack/fix/DX-803-mapper-issue
aman19K Jun 24, 2024
c237921
fixed the failing of audit when no publish details were found and del…
cs-raj Jun 24, 2024
8768dfa
Ui text updates
cs-raj Jun 24, 2024
d2c8334
fixed management token on variants, fixed asset reference handling is…
shafeeqd959 Jun 24, 2024
e93aba1
Merge pull request #1442 from contentstack/staging
cs-raj Jun 24, 2024
f646893
Merge pull request #43 from contentstack/fix/DX-777,DX-778
shafeeqd959 Jun 25, 2024
36af104
Merge branch 'development' into fix/DX-829
cs-raj Jun 26, 2024
c0b9a8f
Merge pull request #1441 from contentstack/fix/DX-829
cs-raj Jun 26, 2024
3f4a6da
Merge pull request #1443 from contentstack/main
cs-raj Jun 26, 2024
7960e93
Merge branch 'staging' into staging-to-development
cs-raj Jun 26, 2024
fd080f0
lock file update
cs-raj Jun 26, 2024
44f160c
Merge pull request #1444 from contentstack/staging-to-development
cs-raj Jun 26, 2024
e0c9650
chore: upgraded marketplace package in cli-utilities
harshithad0703 Jun 28, 2024
1bb6b30
Merge pull request #1445 from contentstack/fix/DX-809-marketplace-ver…
harshithad0703 Jun 28, 2024
d5db2e4
chore: upgraded cli-utilities package to 1.6.3
harshithad0703 Jun 28, 2024
6000534
Merge pull request #1448 from contentstack/fix/DX-809-marketplace-ver…
harshithad0703 Jun 28, 2024
d25ed1d
fixed the snyk code issues
cs-raj Jul 1, 2024
490dbd2
version bump
cs-raj Jul 1, 2024
40fcae6
Merge remote-tracking branch 'origin/development' into fix/DX-787
cs-raj Jul 1, 2024
5cff427
Removed the branches test file
cs-raj Jul 1, 2024
58a6e11
removed the js changes and removed pattern
cs-raj Jul 1, 2024
b2f760c
pr fixes
cs-raj Jul 1, 2024
4b8c0c2
Merge pull request #1450 from contentstack/fix/DX-787
cs-raj Jul 1, 2024
82f703a
Merge branch 'development' of github.com:contentstack/cli into next-f…
shafeeqd959 Jul 1, 2024
28d3846
Merge branch 'development' of github.com:contentstack/cli into next-f…
shafeeqd959 Jul 1, 2024
548dcf4
merged latest cli changes
shafeeqd959 Jul 1, 2024
5ffd2cd
updated config
shafeeqd959 Jul 1, 2024
c80e9a5
Merge branch 'next-feature-update' of github.com:contentstack/cli int…
shafeeqd959 Jul 8, 2024
ac956ce
Merge branch 'development' of github.com:contentstack/cli into next-f…
shafeeqd959 Jul 8, 2024
791b437
Merge remote-tracking branch 'upstream/next-feature-update' into late…
shafeeqd959 Jul 8, 2024
a2265e1
fixed mapper folder creation for projects
shafeeqd959 Jul 12, 2024
5205b27
Merge branch 'development' of github.com:contentstack/cli into next-f…
shafeeqd959 Jul 12, 2024
75b08a5
Merge remote-tracking branch 'upstream/next-feature-update' into late…
shafeeqd959 Jul 12, 2024
ba1fcb1
Merge branch 'development' of github.com:contentstack/cli into next-f…
shafeeqd959 Jul 23, 2024
2d5c40a
updated message
shafeeqd959 Jul 23, 2024
7989b77
latest change
shafeeqd959 Aug 12, 2024
9e7d300
personalize api update for contentype attachment
shafeeqd959 Aug 16, 2024
7216afb
cma config check in adapter
shafeeqd959 Aug 16, 2024
a311b2e
axios upgraded
shafeeqd959 Aug 19, 2024
19f016d
Merge pull request #1519 from contentstack/feat/DX-1130,DX-1133
shafeeqd959 Aug 19, 2024
c0508c5
merged changes
shafeeqd959 Aug 20, 2024
aabcd37
changes
shafeeqd959 Aug 20, 2024
7748f2d
removed secrets scan
shafeeqd959 Aug 21, 2024
514b944
Merge branch 'development' of github.com:contentstack/cli into next-f…
shafeeqd959 Aug 21, 2024
6d2f4c6
latest updates
shafeeqd959 Aug 22, 2024
a10e39b
feat: add custom role support in audit plugin
aman19K Aug 28, 2024
ce833d5
updated lock file & formatting
aman19K Aug 28, 2024
9757f3a
Merge branch 'staging' of github.com:contentstack/cli into next-featu…
shafeeqd959 Aug 28, 2024
c9fcaa9
updated code to check environment support/ provided the url for perso…
shafeeqd959 Aug 28, 2024
8ab75df
bumped version
shafeeqd959 Aug 28, 2024
980f2d9
Implemented compass app integration in Bootstrap command CLI
sunil-lakshman Aug 28, 2024
00e9cee
Merge branch 'development' into Enh/DX-1304-compass-app-integration
sunil-lakshman Aug 28, 2024
5f9468f
Merge pull request #1530 from contentstack/feat/DX-1168-custom-role-a…
aman19K Aug 29, 2024
24bc224
fix: error in branch disabled org
aman19K Aug 29, 2024
46f80f8
Merge pull request #1533 from contentstack/fix/DX-1326
aman19K Aug 29, 2024
789ff9b
Created a file for entries with empty titles
cs-raj Aug 29, 2024
997f559
Merge branch 'development' into fix/DX-1313
cs-raj Aug 29, 2024
c5a609e
fixed merged changed
cs-raj Aug 29, 2024
3fda090
Merge pull request #1534 from contentstack/fix/DX-1313
cs-raj Aug 29, 2024
d99e965
added check for the numeric field for the select and mandatory type a…
cs-raj Aug 30, 2024
3609e31
Upgraded latest axios version bump (#1525)
sunil-lakshman Aug 30, 2024
8af98e6
Merge branch 'development' into fix/DX-1312
cs-raj Aug 30, 2024
c507bc6
Merge remote-tracking branch 'origin/development' into Enh/DX-1304-co…
sunil-lakshman Aug 30, 2024
ff513ff
clone version bump
cs-raj Aug 30, 2024
56b5267
PR fixes
cs-raj Aug 30, 2024
7d80df5
Merge pull request #1537 from contentstack/fix/DX-1312
cs-raj Aug 30, 2024
8a517c2
Fixed import error issue
sunil-lakshman Aug 30, 2024
369e5ae
Merge pull request #1539 from contentstack/main
cs-raj Sep 2, 2024
bb16520
Merge branch 'staging' into stage-to-dev
cs-raj Sep 2, 2024
a584fcc
Merge pull request #1541 from contentstack/stage-to-dev
cs-raj Sep 2, 2024
fe2d737
Merge branch 'staging' of github.com:contentstack/cli into next-featu…
shafeeqd959 Sep 5, 2024
e27eef3
fixed the version bump
cs-raj Sep 5, 2024
a527249
Merge pull request #1545 from contentstack/fix/development
cs-raj Sep 5, 2024
4a66659
Merge pull request #1536 from contentstack/development
cs-raj Sep 5, 2024
2accd44
Merge branch 'development' into Enh/DX-1304-compass-app-integration
sunil-lakshman Sep 5, 2024
4440e69
Merge pull request #1531 from contentstack/Enh/DX-1304-compass-app-in…
cs-raj Sep 5, 2024
f91387a
Merge branch 'staging' into dev-to-stage
cs-raj Sep 5, 2024
ad14d3f
Merge pull request #1547 from contentstack/dev-to-stage
cs-raj Sep 5, 2024
b7d3593
Merge pull request #1546 from contentstack/development
shafeeqd959 Sep 5, 2024
ea62b3e
lastest changes
shafeeqd959 Sep 5, 2024
3726f57
Merge branch 'staging' of github.com:contentstack/cli into next-featu…
shafeeqd959 Sep 5, 2024
536e219
Merge pull request #1473 from contentstack/next-feature-update
shafeeqd959 Sep 5, 2024
6cbd564
updated ct structure
shafeeqd959 Sep 6, 2024
ac81820
Merge pull request #1549 from contentstack/next-feature-update
cs-raj Sep 6, 2024
5b36226
Merge pull request #1554 from contentstack/staging
cs-raj Sep 10, 2024
1475af1
fixed the path traversal issues
cs-raj Sep 10, 2024
7e1a169
added other files
cs-raj Sep 10, 2024
a2b72cf
Merge pull request #1556 from contentstack/fix/dev
cs-raj Sep 10, 2024
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
Empty file modified README.md
100755 → 100644
Empty file.
3,543 changes: 905 additions & 2,638 deletions package-lock.json

Large diffs are not rendered by default.

42 changes: 22 additions & 20 deletions packages/contentstack-audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit
$ csdx COMMAND
running command...
$ csdx (--version|-v)
@contentstack/cli-audit/1.6.5 darwin-arm64 node-v22.2.0
@contentstack/cli-audit/1.7.0 darwin-arm64 node-v22.2.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down Expand Up @@ -52,12 +52,13 @@ Perform audits and find possible errors in the exported Contentstack data

```
USAGE
$ csdx audit [--report-path <value>] [--modules content-types|global-fields|entries|extensions|workflows]
[--columns <value> | ] [--sort <value>] [--filter <value>] [--csv | --no-truncate]
$ csdx audit [--report-path <value>] [--modules
content-types|global-fields|entries|extensions|workflows|custom-roles] [--columns <value> | ] [--sort <value>]
[--filter <value>] [--csv | --no-truncate]

FLAGS
--modules=<option>... Provide the list of modules to be audited
<options: content-types|global-fields|entries|extensions|workflows>
<options: content-types|global-fields|entries|extensions|workflows|custom-roles>
--report-path=<value> Path to store the audit reports

TABLE FLAGS
Expand Down Expand Up @@ -92,8 +93,8 @@ Perform audits and fix possible errors in the exported Contentstack data.

```
USAGE
$ csdx audit:fix [--report-path <value>] [--modules content-types|global-fields|entries|extensions|workflows]
[--copy-path <value> --copy-dir] [--fix-only
$ csdx audit:fix [--report-path <value>] [--modules
content-types|global-fields|entries|extensions|workflows|custom-roles] [--copy-path <value> --copy-dir] [--fix-only
reference|global_field|json:rte|json:extension|blocks|group|content_types] [--columns <value> | ] [--sort <value>]
[--filter <value>] [--csv | --no-truncate]

Expand All @@ -103,7 +104,7 @@ FLAGS
--fix-only=<option>... Provide the list of fix options
<options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
--modules=<option>... Provide the list of modules to be audited
<options: content-types|global-fields|entries|extensions|workflows>
<options: content-types|global-fields|entries|extensions|workflows|custom-roles>
--report-path=<value> Path to store the audit reports

TABLE FLAGS
Expand Down Expand Up @@ -140,12 +141,13 @@ Perform audits and find possible errors in the exported Contentstack data

```
USAGE
$ csdx cm:stacks:audit [--report-path <value>] [--modules content-types|global-fields|entries|extensions|workflows]
[--columns <value> | ] [--sort <value>] [--filter <value>] [--csv | --no-truncate]
$ csdx cm:stacks:audit [--report-path <value>] [--modules
content-types|global-fields|entries|extensions|workflows|custom-roles] [--columns <value> | ] [--sort <value>]
[--filter <value>] [--csv | --no-truncate]

FLAGS
--modules=<option>... Provide the list of modules to be audited
<options: content-types|global-fields|entries|extensions|workflows>
<options: content-types|global-fields|entries|extensions|workflows|custom-roles>
--report-path=<value> Path to store the audit reports

TABLE FLAGS
Expand Down Expand Up @@ -182,8 +184,8 @@ Perform audits and fix possible errors in the exported Contentstack data.

```
USAGE
$ csdx cm:stacks:audit:fix [--report-path <value>] [--modules content-types|global-fields|entries|extensions|workflows]
[--copy-path <value> --copy-dir] [--fix-only
$ csdx cm:stacks:audit:fix [--report-path <value>] [--modules
content-types|global-fields|entries|extensions|workflows|custom-roles] [--copy-path <value> --copy-dir] [--fix-only
reference|global_field|json:rte|json:extension|blocks|group|content_types] [--columns <value> | ] [--sort <value>]
[--filter <value>] [--csv | --no-truncate]

Expand All @@ -193,7 +195,7 @@ FLAGS
--fix-only=<option>... Provide the list of fix options
<options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
--modules=<option>... Provide the list of modules to be audited
<options: content-types|global-fields|entries|extensions|workflows>
<options: content-types|global-fields|entries|extensions|workflows|custom-roles>
--report-path=<value> Path to store the audit reports

TABLE FLAGS
Expand Down Expand Up @@ -267,7 +269,7 @@ EXAMPLES
$ csdx plugins
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/index.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/src/commands/plugins/index.ts)_

## `csdx plugins:add PLUGIN`

Expand Down Expand Up @@ -341,7 +343,7 @@ EXAMPLES
$ csdx plugins:inspect myplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/inspect.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/src/commands/plugins/inspect.ts)_

## `csdx plugins:install PLUGIN`

Expand Down Expand Up @@ -390,7 +392,7 @@ EXAMPLES
$ csdx plugins:install someuser/someplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/install.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/src/commands/plugins/install.ts)_

## `csdx plugins:link PATH`

Expand Down Expand Up @@ -420,7 +422,7 @@ EXAMPLES
$ csdx plugins:link myplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/link.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/src/commands/plugins/link.ts)_

## `csdx plugins:remove [PLUGIN]`

Expand Down Expand Up @@ -461,7 +463,7 @@ FLAGS
--reinstall Reinstall all plugins after uninstalling.
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/reset.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/src/commands/plugins/reset.ts)_

## `csdx plugins:uninstall [PLUGIN]`

Expand Down Expand Up @@ -489,7 +491,7 @@ EXAMPLES
$ csdx plugins:uninstall myplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/uninstall.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/src/commands/plugins/uninstall.ts)_

## `csdx plugins:unlink [PLUGIN]`

Expand Down Expand Up @@ -533,5 +535,5 @@ DESCRIPTION
Update installed plugins.
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/update.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/src/commands/plugins/update.ts)_
<!-- commandsstop -->
4 changes: 2 additions & 2 deletions 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.6.5",
"version": "1.7.0",
"description": "Contentstack audit plugin",
"author": "Contentstack CLI",
"homepage": "https://github.com/contentstack/cli",
Expand All @@ -19,7 +19,7 @@
],
"dependencies": {
"@contentstack/cli-command": "~1.3.0",
"@contentstack/cli-utilities": "~1.7.1",
"@contentstack/cli-utilities": "~1.7.2",
"@oclif/plugin-help": "^5",
"@oclif/plugin-plugins": "^5.0.0",
"chalk": "^4.1.2",
Expand Down
30 changes: 26 additions & 4 deletions packages/contentstack-audit/src/audit-base-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
RefErrorReturnType,
WorkflowExtensionsRefErrorReturnType,
} from './types';
import CustomRoles from './modules/custom-roles';

export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseCommand> {
private currentCommand!: CommandNames;
Expand Down Expand Up @@ -56,6 +57,8 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
missingCtRefsInWorkflow,
missingSelectFeild,
missingMandatoryFields,
missingTitleFields,
missingRefInCustomRoles
} = await this.scanAndFix();

this.showOutputOnScreen([
Expand All @@ -69,13 +72,19 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
this.showOutputOnScreenWorkflowsAndExtension([
{ module: 'Entries Mandatory Field', missingRefs: missingMandatoryFields },
]);
this.showOutputOnScreenWorkflowsAndExtension([
{ module: 'Entries Title Field', missingRefs: missingTitleFields },
]);
this.showOutputOnScreenWorkflowsAndExtension([{ module: 'Custom Roles', missingRefs: missingRefInCustomRoles }]);
if (
!isEmpty(missingCtRefs) ||
!isEmpty(missingGfRefs) ||
!isEmpty(missingEntryRefs) ||
!isEmpty(missingCtRefsInWorkflow) ||
!isEmpty(missingCtRefsInExtensions) ||
!isEmpty(missingSelectFeild)
!isEmpty(missingSelectFeild) ||
!isEmpty(missingTitleFields) ||
!isEmpty(missingRefInCustomRoles)
) {
if (this.currentCommand === 'cm:stacks:audit') {
this.log(this.$t(auditMsg.FINAL_REPORT_PATH, { path: this.sharedConfig.reportPath }), 'warn');
Expand All @@ -102,7 +111,8 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
!isEmpty(missingEntryRefs) ||
!isEmpty(missingCtRefsInWorkflow) ||
!isEmpty(missingCtRefsInExtensions) ||
!isEmpty(missingSelectFeild)
!isEmpty(missingSelectFeild) ||
!isEmpty(missingRefInCustomRoles)
);
}

Expand All @@ -121,7 +131,9 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
missingCtRefsInWorkflow,
missingSelectFeild,
missingEntry,
missingMandatoryFields;
missingMandatoryFields,
missingTitleFields,
missingRefInCustomRoles;

for (const module of this.sharedConfig.flags.modules || this.sharedConfig.modules) {
print([
Expand Down Expand Up @@ -154,11 +166,15 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
missingEntryRefs = missingEntry.missingEntryRefs ?? {};
missingSelectFeild = missingEntry.missingSelectFeild ?? {};
missingMandatoryFields = missingEntry.missingMandatoryFields ?? {};
missingTitleFields = missingEntry.missingTitleFields ?? {};
await this.prepareReport(module, missingEntryRefs);

await this.prepareReport(`Entries_Select_feild`, missingSelectFeild);

await this.prepareReport('Entries_Mandatory_feild', missingMandatoryFields);

await this.prepareReport('Entries_Title_feild', missingTitleFields);

break;
case 'workflows':
missingCtRefsInWorkflow = await new Workflows({
Expand All @@ -174,6 +190,10 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
missingCtRefsInExtensions = await new Extensions(cloneDeep(constructorParam)).run();
await this.prepareReport(module, missingCtRefsInExtensions);
break;
case 'custom-roles':
missingRefInCustomRoles = await new CustomRoles(cloneDeep(constructorParam)).run();
await this.prepareReport(module, missingRefInCustomRoles);
break;
}

print([
Expand All @@ -198,6 +218,8 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
missingCtRefsInWorkflow,
missingSelectFeild,
missingMandatoryFields,
missingTitleFields,
missingRefInCustomRoles,
};
}

Expand Down Expand Up @@ -416,7 +438,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
moduleName: keyof typeof config.moduleConfig | keyof typeof config.ReportTitleForEntries,
listOfMissingRefs: Record<string, any>,
): Promise<void> {
if (Object.keys(config.moduleConfig).includes(moduleName)) {
if (Object.keys(config.moduleConfig).includes(moduleName) || config.feild_level_modules.includes(moduleName)) {
const csvPath = join(sanitizePath(this.sharedConfig.reportPath), `${sanitizePath(moduleName)}.csv`);
return new Promise<void>((resolve, reject) => {
// file deepcode ignore MissingClose: Will auto close once csv stream end
Expand Down
9 changes: 8 additions & 1 deletion packages/contentstack-audit/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const config = {
showTerminalOutput: true,
skipRefs: ['sys_assets'],
skipFieldTypes: ['taxonomy', 'group'],
modules: ['content-types', 'global-fields', 'entries', 'extensions', 'workflows'],
modules: ['content-types', 'global-fields', 'entries', 'extensions', 'workflows', 'custom-roles'],
'fix-fields': ['reference', 'global_field', 'json:rte', 'json:extension', 'blocks', 'group', 'content_types'],
moduleConfig: {
'content-types': {
Expand Down Expand Up @@ -35,6 +35,11 @@ const config = {
dirName: 'extensions',
fileName: 'extensions.json',
},
'custom-roles': {
name: 'custom-roles',
dirName: 'custom-roles',
fileName: 'custom-roles.json',
},
},
entries: {
systemKeys: [
Expand Down Expand Up @@ -75,7 +80,9 @@ const config = {
ReportTitleForEntries: {
Entries_Select_feild: 'Entries_Select_feild',
Entries_Mandatory_feild: 'Entries_Mandatory_feild',
Entries_Title_feild: 'Entries_Title_feild',
},
feild_level_modules: ['Entries_Title_feild', 'Entries_Mandatory_feild', 'Entries_Select_feild'],
};

export default config;
2 changes: 2 additions & 0 deletions packages/contentstack-audit/src/messages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const commonMsg = {
EXTENSION_FIX_WARN: `The extension associated with UID {uid} and title '{title}' will be removed.`,
EXTENSION_FIX_CONFIRMATION: `Would you like to overwrite existing file?`,
WF_BRANCH_REMOVAL: `Removing the branch '{branch} from workflow with UID {uid} and name {name} will be removed.'`,
CR_BRANCH_REMOVAL: `Removing the branch '{branch} from custom role with UID {uid} and name {name} will be removed.'`,
};

const auditMsg = {
Expand All @@ -35,6 +36,7 @@ const auditMsg = {
SCAN_EXT_SUCCESS_MSG: "Successfully completed scanning the {module} titled '{title}' with UID '{uid}'",
AUDIT_CMD_DESCRIPTION: 'Perform audits and find possible errors in the exported Contentstack data',
SCAN_WF_SUCCESS_MSG: 'Successfully completed the scanning of workflow with UID {uid} and name {name}.',
SCAN_CR_SUCCESS_MSG: 'Successfully completed the scanning of custom role with UID {uid} and name {name}.',
};

const auditFixMsg = {
Expand Down
Loading
Loading