Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
6dbf41b
[DX-2346], added support for AWS-NA and AWS-EU, fixed test cases
Apr 7, 2025
657e091
Refactor rate limit test to include specific output checks for organi…
harshithad0703 Apr 7, 2025
9dd7bd7
Improve error handling in rate limit test to assert specific error me…
harshithad0703 Apr 7, 2025
4e2ff8d
Merge pull request #1851 from contentstack/fix/rate-limit-test-cases
harshithad0703 Apr 7, 2025
74edda5
Merge branch 'development' into feat/DX-2346
Apr 8, 2025
3fcc8be
[DX-2346], added config test cases in pipeline and resolved comment
Apr 8, 2025
fe3c538
[DX-2346], fixed failing test cases
Apr 8, 2025
6bdb2d9
Merge branch 'development' into feat/DX-2346
Apr 8, 2025
86f3a65
[DX-2346], resolved es lint errors
Apr 8, 2025
a345dd3
[DX-2346], fixed lint error
Apr 8, 2025
2f72f94
[DX-2346], removed extra endpoints
Apr 8, 2025
88f4a7a
Merge pull request #1844 from contentstack/feat/DX-2346
naman-contentstack Apr 8, 2025
b227edb
[DX-2346], Added regions in config
Apr 9, 2025
d4e7176
Merge branch 'development' into feat/DX-2346
naman-contentstack Apr 9, 2025
2136682
Merge pull request #1855 from contentstack/feat/DX-2346
naman-contentstack Apr 9, 2025
6fcb13e
Feat: Added a summary view of the audited Data
cs-raj Apr 10, 2025
d3066de
v2
cs-raj Apr 10, 2025
c8c7fcc
Merge branch 'development' into feat/DX-2332
cs-raj Apr 10, 2025
009724d
Lock file update
cs-raj Apr 10, 2025
f01b41d
Fixed PR comments
cs-raj Apr 10, 2025
e69946f
Fixed the build script
cs-raj Apr 10, 2025
b340354
Merge branch 'development' into fix/build
cs-raj Apr 10, 2025
853c76b
Merge pull request #1859 from contentstack/fix/build
cs-raj Apr 10, 2025
1b7721f
Merge branch 'development' into fix/stage2
cs-raj Apr 11, 2025
8221f1f
Merge pull request #1863 from contentstack/fix/stage2
cs-raj Apr 11, 2025
5cb98d7
Merge branch 'development' into feat/DX-2332
cs-raj Apr 11, 2025
668c702
Lock File update
cs-raj Apr 11, 2025
9ce3934
Merge pull request #1856 from contentstack/feat/DX-2332
cs-raj Apr 11, 2025
d4fbf86
Feat: Added Summary for Audit Fix and version bump
cs-raj Apr 14, 2025
ec13a97
Lock File update
cs-raj Apr 14, 2025
5b8ce6e
Merge pull request #1865 from contentstack/main
harshithad0703 Apr 14, 2025
1ee23f2
Merge branch 'development' into fix/back-merge
harshithad0703 Apr 14, 2025
a8b1a0b
Merge pull request #1868 from contentstack/fix/back-merge
harshithad0703 Apr 14, 2025
0995486
Merge branch 'development' into feat/DX-2333
cs-raj Apr 14, 2025
eff6458
Merge pull request #1867 from contentstack/feat/DX-2333
cs-raj Apr 15, 2025
2ecea00
Merge branch 'staging' into fix/back-merge2
harshithad0703 Apr 16, 2025
5c7e9ae
Merge pull request #1873 from contentstack/fix/back-merge2
cs-raj Apr 16, 2025
07257b3
Version Bump
cs-raj Apr 16, 2025
7e20f8d
Merge pull request #1874 from contentstack/fix/development
harshithad0703 Apr 16, 2025
70b3a6e
Merge branch 'staging' into fix/back-merge3
harshithad0703 Apr 16, 2025
d424d6c
Merge pull request #1876 from contentstack/fix/back-merge3
cs-raj Apr 16, 2025
4a2cb0e
Version Bump Fixed
cs-raj Apr 16, 2025
9a60a4b
Merge pull request #1871 from contentstack/development
harshithad0703 Apr 16, 2025
4d8bb8f
Merge branch 'development' into fix/development
harshithad0703 Apr 16, 2025
4e254f5
Merge pull request #1877 from contentstack/fix/development
harshithad0703 Apr 16, 2025
84a5cba
update
cs-raj Apr 16, 2025
8ae1d5d
Merge pull request #1879 from contentstack/fix/dev
cs-raj Apr 16, 2025
d9a93be
Merge branch 'staging' into development
cs-raj Apr 16, 2025
6ad1ab4
Merge pull request #1880 from contentstack/fix/dev2
cs-raj Apr 16, 2025
4e30b9b
Merge pull request #1878 from contentstack/development
cs-raj Apr 16, 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
11 changes: 7 additions & 4 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ jobs:
- name: Install dependencies for all plugins
run: |
npm run setup-repo-old

- name: Run tests for Audit plugin
working-directory: ./packages/contentstack-audit
run: npm run test:unit

- name: Run tests for Contentstack Config
working-directory: ./packages/contentstack-config
run: npm run test
# - name: Fetch latest references
# run: |
# git fetch --prune
Expand All @@ -41,11 +44,11 @@ jobs:
# CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
# echo "Changed files:"
# echo "$CHANGED_FILES"

# # Identify affected plugins
# AFFECTED_PLUGINS=$(echo "$CHANGED_FILES" | grep -oP '(?<=^packages/)([^/]+)' | sort -u | tr '\n' ' ')
# echo "Affected plugins: $AFFECTED_PLUGINS"

# # Set output for the next step
# echo "::set-output name=affected_plugins::$AFFECTED_PLUGINS"

Expand All @@ -59,4 +62,4 @@ jobs:
# else
# echo "contentstack-audit has not changed. Skipping tests."
# fi
# done
# done
35,934 changes: 12,445 additions & 23,489 deletions package-lock.json

Large diffs are not rendered by default.

30 changes: 17 additions & 13 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.11.0 darwin-arm64 node-v22.14.0
@contentstack/cli-audit/1.12.0 darwin-arm64 node-v23.6.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down Expand Up @@ -52,7 +52,7 @@ Perform audits and find possible errors in the exported Contentstack data

```
USAGE
$ csdx audit [-c <value>] [-d <value>] [--report-path <value>] [--modules
$ csdx audit [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--columns <value>]
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]

Expand All @@ -63,8 +63,9 @@ FLAGS
--report-path=<value> Path to store the audit reports

COMMON FLAGS
-c, --config=<value> Path of the external config
-d, --data-dir=<value> Path where the data is stored
-c, --config=<value> Path of the external config
-d, --data-dir=<value> Path where the data is stored
--show-console-output Display the audit and audit fix result for individual modules

TABLE FLAGS
--columns=<value> Specify columns to display, comma-separated.
Expand Down Expand Up @@ -101,7 +102,7 @@ Perform audits and fix possible errors in the exported Contentstack data.

```
USAGE
$ csdx audit:fix [-c <value>] [-d <value>] [--report-path <value>] [--modules
$ csdx audit:fix [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--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] [--no-header] [--output csv|json|yaml]
Expand All @@ -117,8 +118,9 @@ FLAGS
--report-path=<value> Path to store the audit reports

COMMON FLAGS
-c, --config=<value> Path of the external config
-d, --data-dir=<value> Path where the data is stored
-c, --config=<value> Path of the external config
-d, --data-dir=<value> Path where the data is stored
--show-console-output Display the audit and audit fix result for individual modules

TABLE FLAGS
--columns=<value> Specify columns to display, comma-separated.
Expand Down Expand Up @@ -157,7 +159,7 @@ Perform audits and find possible errors in the exported Contentstack data

```
USAGE
$ csdx cm:stacks:audit [-c <value>] [-d <value>] [--report-path <value>] [--modules
$ csdx cm:stacks:audit [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--columns <value>]
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]

Expand All @@ -168,8 +170,9 @@ FLAGS
--report-path=<value> Path to store the audit reports

COMMON FLAGS
-c, --config=<value> Path of the external config
-d, --data-dir=<value> Path where the data is stored
-c, --config=<value> Path of the external config
-d, --data-dir=<value> Path where the data is stored
--show-console-output Display the audit and audit fix result for individual modules

TABLE FLAGS
--columns=<value> Specify columns to display, comma-separated.
Expand Down Expand Up @@ -208,7 +211,7 @@ Perform audits and fix possible errors in the exported Contentstack data.

```
USAGE
$ csdx cm:stacks:audit:fix [-c <value>] [-d <value>] [--report-path <value>] [--modules
$ csdx cm:stacks:audit:fix [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--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] [--no-header] [--output csv|json|yaml]
Expand All @@ -224,8 +227,9 @@ FLAGS
--report-path=<value> Path to store the audit reports

COMMON FLAGS
-c, --config=<value> Path of the external config
-d, --data-dir=<value> Path where the data is stored
-c, --config=<value> Path of the external config
-d, --data-dir=<value> Path where the data is stored
--show-console-output Display the audit and audit fix result for individual modules

TABLE FLAGS
--columns=<value> Specify columns to display, comma-separated.
Expand Down
18 changes: 9 additions & 9 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.11.0",
"version": "1.12.0",
"description": "Contentstack audit plugin",
"author": "Contentstack CLI",
"homepage": "https://github.com/contentstack/cli",
Expand All @@ -19,9 +19,9 @@
],
"dependencies": {
"@contentstack/cli-command": "~1.5.0",
"@oclif/plugin-help": "^6.2.25",
"@oclif/plugin-help": "^6.2.27",
"@contentstack/cli-utilities": "~1.11.0",
"@oclif/plugin-plugins": "^5.4.24",
"@oclif/plugin-plugins": "^5.4.36",
"chalk": "^4.1.2",
"fast-csv": "^4.3.6",
"fs-extra": "^11.3.0",
Expand All @@ -30,23 +30,23 @@
"winston": "^3.17.0"
},
"devDependencies": {
"@oclif/test": "^4.1.11",
"@oclif/test": "^4.1.12",
"@types/chai": "^4.3.20",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.10",
"@types/node": "^20.17.19",
"@types/node": "^20.17.30",
"@types/uuid": "^9.0.8",
"chai": "^4.5.0",
"eslint": "^8.57.1",
"eslint-config-oclif": "^6.0.15",
"eslint-config-oclif": "^6.0.42",
"eslint-config-oclif-typescript": "^3.1.14",
"mocha": "^10.8.2",
"nyc": "^15.1.0",
"oclif": "^4.17.30",
"shx": "^0.3.4",
"oclif": "^4.17.43",
"shx": "^0.4.0",
"sinon": "^19.0.5",
"ts-node": "^10.9.2",
"typescript": "^5.7.3"
"typescript": "^5.8.3"
},
"oclif": {
"bin": "csdx",
Expand Down
Loading
Loading