Skip to content

Enh/dx 737 taxonomy permission #161

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

Merged
merged 257 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
257 commits
Select commit Hold shift + click to select a range
9d982cc
chore: replaced uid and other data
nadeem-cs Jul 7, 2023
a1ff3b7
Merge pull request #57 from contentstack/feat/CS-39614-adds-nrp-audit…
nadeem-cs Jul 10, 2023
38de96f
Merge branch 'master' into next
nadeem-cs Jul 14, 2023
72750a0
refactor: adds and corrects types of ContentstackCollectin and market…
nadeem-cs Jul 14, 2023
195d0eb
Merge pull request #61 from contentstack/feat/CS-39614-adds-nrp-audit…
nadeem-cs Jul 14, 2023
269a7ba
fix: credentials in response fix; bulkOperation types fixes;
nadeem-cs Jul 17, 2023
3e437f3
test: :white_check_mark: improves code coverage
nadeem-cs Jul 17, 2023
c40f512
Merge pull request #62 from contentstack/feat/CS-39614-adds-nrp-audit…
ishaileshmishra Jul 17, 2023
a59abdc
Merge pull request #63 from contentstack/bug/env-type-change
nadeem-cs Jul 18, 2023
feb372d
Merge pull request #60 from contentstack/next
nadeem-cs Jul 19, 2023
c844059
Merge pull request #69 from contentstack/revert/fix-breaking-changes
nadeem-cs Jul 21, 2023
fe557e1
Revert "Feat: NRP support, Audit logs, Type correction for User and C…
nadeem-cs Jul 21, 2023
902a0f6
Merge pull request #71 from contentstack/revert-60-next
nadeem-cs Jul 21, 2023
a46991b
Merge pull request #72 from contentstack/next
nadeem-cs Jul 21, 2023
668932f
fix: users, collection, other fixes, coverage improvements
nadeem-cs Jul 31, 2023
9461b47
build: updates package-lock file
nadeem-cs Jul 31, 2023
d72561e
Merge pull request #74 from contentstack/fix/users-collection-and-oth…
nadeem-cs Jul 31, 2023
d93f4e2
chore: version changes in package file
nadeem-cs Jul 31, 2023
f77c438
ci: removed secrets-scan file and app tests changes
nadeem-cs Jul 31, 2023
a148a27
Merge branch 'master' into next
nadeem-cs Jul 31, 2023
045cf7e
fix: type fix for environment param
nadeem-cs Aug 1, 2023
8c322fa
Merge pull request #75 from contentstack/next
nadeem-cs Aug 1, 2023
5492998
fix: :bug: handles the error in refreshtoken instead of throwing it
nadeem-cs Aug 21, 2023
7feadf4
ci: :fire: removed sast-scan yml file
nadeem-cs Aug 21, 2023
d856b4d
Merge pull request #77 from contentstack/fix/CS-40346-Uncaught-Except…
nadeem-cs Aug 22, 2023
87d3fa8
fix: :bug: handles workflow response in object format
nadeem-cs Aug 22, 2023
e304f0b
feat: :sparkles: allows overwrite flag param in import of contenttype…
nadeem-cs Aug 22, 2023
c73a287
test: :white_check_mark: adds CT and GF import test for overwrite flag
nadeem-cs Aug 22, 2023
8e7ae31
refactor: :recycle: adds type support for overwrite flag param
nadeem-cs Aug 22, 2023
9ee8f50
Merge pull request #78 from contentstack/fix/workflow-and-CT-GF-overw…
nadeem-cs Aug 22, 2023
bebd717
chore: :package: version changes and package updates
nadeem-cs Aug 22, 2023
0c4b967
Merge branch 'master' into next
nadeem-cs Aug 22, 2023
8caa08d
perf: :package: packages update
nadeem-cs Aug 23, 2023
f89d6dc
docs: :memo: Updates README
nadeem-cs Aug 23, 2023
9c4695f
Merge pull request #79 from contentstack/next
nadeem-cs Aug 23, 2023
8f19e16
feat: :sparkles: Taxonomy Implementation with docs, unit and api test…
harshithad0703 Sep 13, 2023
aff9588
test: :white_check_mark: changes made in taxonomy function in stack c…
harshithad0703 Sep 13, 2023
c6788f2
test: uncommented 'detele' api test case
harshithad0703 Sep 14, 2023
09e168f
Merge pull request #80 from contentstack/feat/cs-41208-taxonomy-support
harshithad0703 Sep 14, 2023
5cd1ec9
feat: :sparkles: create, fetch, find, update, delete , ancestors and …
harshithad0703 Sep 25, 2023
a0e855e
test: :white_check_mark: added api test cases for terms implementation
harshithad0703 Sep 25, 2023
5ffdd9b
feat: :sparkles: allows content-type for asset upload
nadeem-cs Sep 28, 2023
4219098
Merge pull request #82 from contentstack/fix/CS-41307-contenttype-whi…
nadeem-cs Sep 28, 2023
96ba089
test: :white_check_mark: unit test cases for terms implementation (ex…
harshithad0703 Sep 28, 2023
716afe5
changes done in passing data to create function in api test case
harshithad0703 Sep 29, 2023
56cccff
feat: :sparkles: added move and search functions for terms implementa…
harshithad0703 Sep 29, 2023
3e1a329
test: :white_check_mark: updated and added search and move unit test …
harshithad0703 Sep 29, 2023
8a1d475
test: :white_check_mark: updated and added search and move api test c…
harshithad0703 Sep 29, 2023
6986875
docs: :memo: updated api reference docs for search, ancestors, descen…
harshithad0703 Sep 29, 2023
d643001
Merge pull request #84 from contentstack/feat/cs-41208-taxonomy-support
harshithad0703 Sep 29, 2023
7730b50
Merge pull request #81 from contentstack/feat/cs-41463-terms-support
harshithad0703 Sep 29, 2023
ca51c74
build: :package: updated axios module and version number
nadeem-cs Sep 29, 2023
1843502
Merge branch 'master' into next
nadeem-cs Sep 29, 2023
c6daba3
chore: :loud_sound: update changelog file
nadeem-cs Oct 3, 2023
8539f09
Merge pull request #85 from contentstack/next
nadeem-cs Oct 4, 2023
555987d
feat: :sparkles: taxonomy and terms implementation for typescript
harshithad0703 Oct 6, 2023
851dd36
fix: :bug: taxonomy bug fix
harshithad0703 Oct 9, 2023
35ae017
feat: :sparkles: terms implementaion with descendants and move function
harshithad0703 Oct 9, 2023
e383a94
fix: :bug: taxonomy bug fix in query unit test case
harshithad0703 Oct 9, 2023
ee4ffed
fix: taxonomy and terms fixes
harshithad0703 Oct 9, 2023
0abd950
fix: :bug: error message fix on refresh token error
nadeem-cs Oct 11, 2023
ea04684
refactor: uncommented unit test cases
nadeem-cs Oct 11, 2023
c2c80d4
Merge pull request #87 from contentstack/fix/CS-41164-Refresh-Token-E…
nadeem-cs Oct 11, 2023
dff07de
test: :white_check_mark: taxonomy API test cases
harshithad0703 Oct 11, 2023
fb363c4
test: :white_check_mark: terms api test cases and search implementation
harshithad0703 Oct 12, 2023
b0d85b1
test: :white_check_mark: changes in search unit test in terms
harshithad0703 Oct 12, 2023
f4642c4
changed default host name
harshithad0703 Oct 12, 2023
55672af
Merge pull request #86 from contentstack/feat/taxonomy-term-for-types…
harshithad0703 Oct 13, 2023
aac5cf4
Merge branch 'master' into next
nadeem-cs Oct 13, 2023
85fd19b
added entry on changelog file and changed version
harshithad0703 Oct 17, 2023
62e8e28
Merge pull request #88 from contentstack/next
harshithad0703 Oct 17, 2023
dba8f48
feat: :sparkles: teams implementation with unit and api tests
harshithad0703 Oct 27, 2023
393d8c0
docs: added teams documentation
harshithad0703 Nov 1, 2023
c575b4b
test: :white_check_mark: updated api and unit test cases for teams su…
harshithad0703 Nov 1, 2023
797ba45
feat: :sparkles: teams users implementation and api test cases
harshithad0703 Nov 1, 2023
fec3852
test: :white_check_mark: added unit test cases for team users
harshithad0703 Nov 2, 2023
99fc8c1
feat: :sparkles: stackrolemapping implementation and api test cases
harshithad0703 Nov 6, 2023
c8425fb
test: changes made in update implementation and its test case
harshithad0703 Nov 6, 2023
cd9dea7
test: update stackrolemapping implementation and api test cases
harshithad0703 Nov 6, 2023
864db84
added assertions to check the response
harshithad0703 Nov 7, 2023
231711f
added unit test cases for stack role mapping
harshithad0703 Nov 7, 2023
4fcf217
replaced query with fetchAll function
harshithad0703 Nov 7, 2023
95d5f86
changing folder name to be same as class name
harshithad0703 Nov 7, 2023
59827bf
ci: :green_heart: fix unit test github action
nadeem-cs Nov 7, 2023
e79409f
ci: fix unit test github action
nadeem-cs Nov 7, 2023
83c136c
feat: types support for teams
harshithad0703 Nov 7, 2023
e66b74e
chore: :arrow_up: update axios lib
nadeem-cs Nov 7, 2023
9e59400
added valid assertions for the test
harshithad0703 Nov 7, 2023
46c0976
teams test cases for types support
harshithad0703 Nov 7, 2023
e5b0807
types support for team Users and api test cases
harshithad0703 Nov 9, 2023
e85be9f
interface changed from User to TeamUser in types
harshithad0703 Nov 9, 2023
0aa565d
types support for stackRoleMapping and test cases
harshithad0703 Nov 9, 2023
8098385
stackRoleMapping test cases in types support
harshithad0703 Nov 10, 2023
a582e8a
stackRoleMapping update test case on types support
harshithad0703 Nov 10, 2023
322f9af
Merge pull request #91 from contentstack/feat/cs-42021-teams-support-…
harshithad0703 Nov 10, 2023
05b005f
Merge branch 'master' into next
harshithad0703 Nov 10, 2023
a3ec18a
docs: :memo: updated version and changeLog
harshithad0703 Nov 10, 2023
9344c09
test: added test cases to improve coverage report
harshithad0703 Nov 10, 2023
9ecb16f
feat: :sparkles: early access headers implementation
harshithad0703 Nov 16, 2023
3d0c78a
Merge pull request #94 from contentstack/feat/early-access-headers
harshithad0703 Nov 16, 2023
2b04ac2
types support for earlyaccess and update changeLog
harshithad0703 Nov 16, 2023
83b90aa
fix: :bug: early_access made optional
nadeem-cs Nov 16, 2023
496735a
fix: :bug: added api_version param which is to be passed in headers
harshithad0703 Nov 20, 2023
78a3c18
test: :white_check_mark: updated response fetchAll unit test case
harshithad0703 Nov 20, 2023
5cdd59d
fix: :bug: create function response data update
harshithad0703 Nov 20, 2023
5251aef
refactor: :recycle: changes users in teams to teamUsers
harshithad0703 Nov 20, 2023
53d7458
Merge pull request #95 from contentstack/fix/api-version-bug-fix
harshithad0703 Nov 20, 2023
1bddeee
Merge pull request #92 from contentstack/next
harshithad0703 Nov 21, 2023
d98b470
fix: fixed issue while updating entries with assets
abhinav-from-contentstack Dec 12, 2023
b17a988
feat: added api test
abhinav-from-contentstack Dec 13, 2023
39ea129
Merge pull request #96 from contentstack/bug/CS-42703-updating-entry-…
abhinav-from-contentstack Dec 13, 2023
db6b879
fix: updated changelog and package lock file
abhinav-from-contentstack Dec 13, 2023
04f5d26
Merge pull request #98 from contentstack/bug/CS-43088-update-changelog
abhinav-from-contentstack Dec 13, 2023
9ed7a91
Implemented Management token support (#99)
sunil-lakshman Dec 15, 2023
701bc1e
test: added sanity tests for user and contenttype
harshithad0703 Dec 18, 2023
508aa7a
added a script in package.json
harshithad0703 Dec 18, 2023
52c8786
Merge pull request #100 from contentstack/test/cs-43014-cms-sanity-re…
harshithad0703 Dec 18, 2023
5f6878c
Next (#97)
abhinav-from-contentstack Dec 18, 2023
211773e
test: added entries, assets, organization and stack tests in sanity
harshithad0703 Dec 18, 2023
ce0e53b
changed the decription for it in testcases
harshithad0703 Dec 18, 2023
cfb7ea1
Merge pull request #101 from contentstack/test/cs-43131-basic-sanity-…
harshithad0703 Dec 19, 2023
d56c5eb
test: added taxonomy and terms tests in sanity folder
harshithad0703 Dec 20, 2023
67f2a62
removed const stack as the api is read from env
harshithad0703 Dec 20, 2023
3c4ba30
Merge pull request #102 from contentstack/test/cs-43154-sanity-test-t…
harshithad0703 Dec 20, 2023
2f32924
fix: changed the url in transferOwnership
harshithad0703 Jan 5, 2024
2e38341
test: removed the skipped test case from organization test suit
harshithad0703 Jan 5, 2024
258b3a9
test: added branches and aliases test suits to sanity folder
harshithad0703 Jan 5, 2024
ca58beb
test: commented out the test case instead or removing
harshithad0703 Jan 5, 2024
941b9e9
test: updated url path in unit test case
harshithad0703 Jan 5, 2024
f7128e7
Merge pull request #105 from contentstack/test/cs-43284-sanity-tests-…
harshithad0703 Jan 5, 2024
11c4d74
test: added 1 more test case to branch test suit
harshithad0703 Jan 5, 2024
122b4db
test: added create branch test after stack creation test
harshithad0703 Jan 9, 2024
ef3995d
Merge pull request #108 from contentstack/test/add-sanity-tests
harshithad0703 Jan 9, 2024
4bfd437
fix: :package: updates axios version
nadeem-cs Jan 11, 2024
b73e856
chore: update package version in package.json
nadeem-cs Jan 11, 2024
adfadb1
Merge branch 'master' into next
nadeem-cs Jan 11, 2024
45698d0
chore: :hammer: updates prerelease hook script
nadeem-cs Jan 11, 2024
6b160a2
chore: :package: added a package for slack message integeration and s…
harshithad0703 Jan 11, 2024
a9398ad
chore: slack integeration for sending test report summary on the channel
harshithad0703 Jan 11, 2024
a0ed39d
test: added environment test to sanity and changes done in branch test
harshithad0703 Jan 11, 2024
7ca1911
chore: :package: updated slack/bolt package to devDependencies
harshithad0703 Jan 11, 2024
d68ea49
Revert "chore: :package: updated slack/bolt package to devDependencies"
harshithad0703 Jan 11, 2024
dbd1934
updated slack/bolt package dependency
harshithad0703 Jan 11, 2024
6b3efbb
chore: added alldependencies required for slack/bolt package
harshithad0703 Jan 11, 2024
1e16d98
Merge pull request #111 from contentstack/test/sanity-test
harshithad0703 Jan 11, 2024
5b13208
chore: updates LICENSE file
nadeem-cs Jan 16, 2024
8fb3ef7
Merge pull request #110 from contentstack/next
nadeem-cs Jan 16, 2024
010f950
test: Added locale test suit and delete test suit to sanity folder
harshithad0703 Jan 19, 2024
0c4641c
chore: updated package-lock file
harshithad0703 Jan 19, 2024
4699571
Merge pull request #113 from contentstack/test/cs-43465-environment-d…
harshithad0703 Jan 22, 2024
bf8d05f
Added taxonomy import/export support (#112)
sunil-lakshman Jan 22, 2024
7b4bb83
Validating the object when update the entries with assets (#114)
sunil-lakshman Jan 22, 2024
786fa6d
test: added delivery token test sanity folder
harshithad0703 Jan 23, 2024
08e79f6
test: added extension test suit to sanity
harshithad0703 Jan 24, 2024
a1f1866
test: updated test msg
harshithad0703 Jan 24, 2024
e49185e
Next (#115)
sunil-lakshman Jan 24, 2024
f4a52d6
Merge pull request #116 from contentstack/test/cs-43491-sanity-test-d…
harshithad0703 Jan 24, 2024
9427708
cleared assertion error
harshithad0703 Jan 24, 2024
9098484
test: added assertions for failing tests
harshithad0703 Jan 25, 2024
2802b79
Merge pull request #117 from contentstack/test/cs-43492-sanity-test-e…
harshithad0703 Jan 25, 2024
6938c0d
Feat/cs 43619 taxonomy import export testcases (#118)
sunil-lakshman Jan 25, 2024
4d20885
Merge branch 'master' into next
sunil-lakshman Jan 25, 2024
3489d88
test: added global field test suit to sanity
harshithad0703 Jan 25, 2024
ff8dd65
Merge branch 'next' into test/cs-43493-sanity-test-global-fields
harshithad0703 Jan 25, 2024
3f57256
Merge pull request #120 from contentstack/test/cs-43493-sanity-test-g…
harshithad0703 Jan 25, 2024
4a07c8a
test: add sanity test for label
harshithad0703 Jan 29, 2024
c01d3a0
Merge pull request #121 from contentstack/test/cs-43494-sanity-test-f…
harshithad0703 Jan 29, 2024
2d13ee5
Next (#119)
sunil-lakshman Jan 30, 2024
18317ee
test: added sanity test for workflow-webhook-release
harshithad0703 Jan 31, 2024
27a36ee
updated sanity.js file
harshithad0703 Jan 31, 2024
9f4bb15
test: added basic sanity for role
harshithad0703 Jan 31, 2024
8b8e2a5
test: added basic sanity for management token test suit
harshithad0703 Jan 31, 2024
f84ce58
Merge pull request #122 from contentstack/test/cs-43497-sanity-test-r…
harshithad0703 Feb 1, 2024
5a3606c
Merge pull request #123 from contentstack/test/cs-43498-basic-sanity-…
harshithad0703 Feb 1, 2024
60c1b95
Merge pull request #124 from contentstack/test/cs-43496-basic-sanity-…
harshithad0703 Feb 1, 2024
9634594
fix: upgrade @slack/bolt from 3.17.0 to 3.17.1
snyk-bot Feb 2, 2024
39a1680
feat: :sparkles: adds params support in taxonomy export function
nadeem-cs Feb 2, 2024
39f7b8d
Merge branch 'next' into fix/CS-43764-Params-in-Taxonomy-export
nadeem-cs Feb 2, 2024
45b3e76
Merge pull request #126 from contentstack/fix/CS-43764-Params-in-Taxo…
nadeem-cs Feb 2, 2024
b55ac30
test: added teams and stack share test suit to sanity
harshithad0703 Feb 6, 2024
86a5ca2
test: changed uids of branches and aliases
harshithad0703 Feb 6, 2024
6444453
fix: fixed teams implementation according to the object received
harshithad0703 Feb 6, 2024
b70849b
Merge pull request #128 from contentstack/test/cs-43501-sanity-test-t…
harshithad0703 Feb 6, 2024
a4f2120
changes the flow of sanity test
harshithad0703 Feb 6, 2024
59a2e85
Update sca-scan.yml
aravindbuilt Feb 8, 2024
e7926c3
Merge pull request #127 from contentstack/next
nadeem-cs Feb 9, 2024
176d60c
fix: upgrade axios from 1.6.5 to 1.6.6
snyk-bot Feb 15, 2024
aea5991
fix: :bug: fixed update entry which was failing
harshithad0703 Feb 16, 2024
419f294
test: removed organization name in assertion
harshithad0703 Feb 16, 2024
8dff896
chore: updated changeLog and version
harshithad0703 Feb 16, 2024
e70c0e4
Merge pull request #130 from contentstack/fix/cs-43956-entry-update-f…
harshithad0703 Feb 16, 2024
167e8b3
Merge branch 'next' into snyk-upgrade-4c53c9494c3474d7ffde53de29fde41e
harshithad0703 Feb 16, 2024
24c322e
Merge branch 'next' into snyk-upgrade-d6ff5dd9aa34013e8d34f694960a55b7
harshithad0703 Feb 16, 2024
1436dfb
Merge pull request #125 from contentstack/snyk-upgrade-d6ff5dd9aa3401…
harshithad0703 Feb 16, 2024
79c13a7
Merge branch 'master' into next
harshithad0703 Feb 16, 2024
f17a8f3
Merge branch 'next' into snyk-upgrade-4c53c9494c3474d7ffde53de29fde41e
harshithad0703 Feb 16, 2024
a96ec14
Merge pull request #131 from contentstack/next
harshithad0703 Feb 19, 2024
b0365ab
Merge branch 'master' into snyk-upgrade-4c53c9494c3474d7ffde53de29fde41e
Mar 1, 2024
f6a167a
fix: resolved undefined stack in error issue
Mar 4, 2024
9ec95a9
Merge pull request #129 from contentstack/snyk-upgrade-4c53c9494c3474…
harshithad0703 Mar 18, 2024
7527d49
test: sanity test for bulk operation
harshithad0703 Mar 22, 2024
ba7d477
chore: :package: update package version and changeLog
harshithad0703 Mar 22, 2024
761636a
chore: :package: upgraded axios package to 1.6.8
harshithad0703 Mar 22, 2024
fd3dd62
Merge pull request #134 from contentstack/test/cs-43466-bulk-operatio…
harshithad0703 Mar 22, 2024
f3ea904
Merge pull request #135 from contentstack/snyk/cs-44440-upgrade-axios
harshithad0703 Mar 22, 2024
a82cc05
fix: added delete stack method
harshithad0703 Mar 26, 2024
6ea8232
chore: updated changeLog and package version
harshithad0703 Mar 26, 2024
281e8ec
chore: :package: updated internal dependencies
harshithad0703 Mar 27, 2024
896381d
Merge pull request #137 from contentstack/fix/cs-44541-stack-delete-f…
harshithad0703 Mar 27, 2024
1aa58d8
chore: :package: updated sdk version to 1.15.4 and changelog update
harshithad0703 Mar 28, 2024
37998e0
Merge pull request #138 from contentstack/fix/version-bump
harshithad0703 Mar 28, 2024
e9788af
Merge pull request #136 from contentstack/next
abhinav-from-contentstack Mar 28, 2024
be34b52
feat: :sparkles: get languages of an entry implementation
harshithad0703 Apr 3, 2024
51767f1
test: :white_check_mark: added unit and api test cases
harshithad0703 Apr 3, 2024
0e69248
docs: :memo: added docs for get locales
harshithad0703 Apr 3, 2024
165cd66
chore: updated package version and changeLog
harshithad0703 Apr 3, 2024
a2033e9
Merge pull request #139 from contentstack/feat/cs-44545-get-languages…
harshithad0703 Apr 3, 2024
3df19c3
feat: get locales types support
harshithad0703 Apr 3, 2024
fba2183
Merge pull request #140 from contentstack/feat/cs-44545-get-languages…
harshithad0703 Apr 3, 2024
577d0b5
Merge pull request #141 from contentstack/next
harshithad0703 Apr 15, 2024
fdb98ff
test: changes done in branches deletion error message
harshithad0703 Apr 29, 2024
960f79a
Merge pull request #143 from contentstack/fix/error-message-changes
harshithad0703 Apr 29, 2024
28cd0ae
fix: added fix for missing fs error
abhinav-from-contentstack May 8, 2024
c2db081
fix: updated package version
abhinav-from-contentstack May 8, 2024
5a5c4a0
fix: updated CHANGELOG.md
abhinav-from-contentstack May 8, 2024
c7444c4
Merge pull request #144 from contentstack/fix/dx-174
abhinav-from-contentstack May 9, 2024
5b08df5
assertions corrections for webhooks sanity tests
harshithad0703 May 9, 2024
079e4ce
Merge pull request #146 from contentstack/fix/dx-561-webhook-assertions
harshithad0703 May 9, 2024
afbb1f2
build: upgraded qs package
harshithad0703 May 14, 2024
f5b81be
test: changed the order of test suites in sanity
harshithad0703 May 14, 2024
6e9f8bf
Merge branch 'master' into fix/dx-561-sanity-test
harshithad0703 May 14, 2024
e50d1ae
reorder test suites
harshithad0703 May 14, 2024
28bd854
Merge pull request #148 from contentstack/fix/dx-561-sanity-test
harshithad0703 May 14, 2024
3af0d13
reorder test suites
harshithad0703 May 14, 2024
488f22e
Merge pull request #149 from contentstack/fix/dx-561-sanity-test
harshithad0703 May 15, 2024
8ce2b2a
Merge pull request #147 from contentstack/next
abhinav-from-contentstack May 17, 2024
502c454
sca-scan.yml
aravindbuilt May 17, 2024
f83946f
jira.yml
aravindbuilt May 17, 2024
232eaa7
sast-scan.yml
aravindbuilt May 17, 2024
5fa84a4
codeql-analysis.yml
aravindbuilt May 17, 2024
6d063b9
fix: adding delay to check the issue with taxonomy
harshithad0703 May 21, 2024
07c0250
Merge pull request #152 from contentstack/fix/sanity-issues-taxonomy
harshithad0703 May 21, 2024
77c61a4
Added updateCT method for update an content type without fetch method…
sunil-lakshman Jun 23, 2024
7956f36
Merge branch 'master' into next
aravindbuilt Jun 23, 2024
1ae4463
Fixed merge conflits
sunil-lakshman Jun 26, 2024
7c4f427
Merge branch 'next' into enh/DX-737-taxonomy-permission
sunil-lakshman Jun 26, 2024
5c5b052
Added taxonomy permission test cases
sunil-lakshman Jun 26, 2024
00b144d
Fixed merge conflits
sunil-lakshman Jun 26, 2024
a2c8477
Package publish issue fixed
sunil-lakshman Jun 26, 2024
11ad9b5
Merge branch 'next' into enh/DX-737-taxonomy-permission
sunil-lakshman Jun 28, 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
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '12.x'
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@contentstack'
- run: npm ci
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog
## [v1.17.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.17.0) (2024-07-02)
- Enhancement
- Fixed package publish issue in github workflow
- Added Taxonomy permission roles test cases
- SNYK issues - Upgraded axios and slack/bolt packages version

## [v1.16.2](https://github.com/contentstack/contentstack-management-javascript/tree/v1.16.2) (2024-06-24)
- Enhancement
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/management",
"version": "1.16.2",
"version": "1.17.0",
"description": "The Content Management API is used to manage the content of your Contentstack account",
"main": "./dist/node/contentstack-management.js",
"browser": "./dist/web/contentstack-management.js",
Expand Down Expand Up @@ -52,7 +52,7 @@
"author": "Contentstack",
"license": "MIT",
"dependencies": {
"axios": "^1.6.8",
"axios": "^1.7.2",
"form-data": "^3.0.1",
"lodash": "^4.17.21",
"qs": "^6.12.1"
Expand All @@ -69,7 +69,7 @@
"@babel/preset-env": "^7.18.2",
"@babel/register": "^7.17.7",
"@babel/runtime": "^7.18.3",
"@slack/bolt": "^3.18.0",
"@slack/bolt": "^3.19.0",
"@types/chai": "^4.3.11",
"@types/jest": "^28.1.0",
"@types/lodash": "^4.14.202",
Expand Down
30 changes: 30 additions & 0 deletions test/api/mock/role.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,36 @@ const role = {
module: 'locale',
locales: [],
acl: { read: true }
},
{
module: "taxonomy",
taxonomies: ["taxonomy_testing1"],
terms: ["taxonomy_testing1.term_test1"],
content_types: [
{
uid: "$all",
acl: {
read: true,
sub_acl: {
read: true,
create: true,
update: true,
delete: true,
publish: true
}
}
}
],
acl: {
read: true,
sub_acl: {
read: true,
create: true,
update: true,
delete: true,
publish: true
}
}
}
],
uid: 'role_uid'
Expand Down
23 changes: 12 additions & 11 deletions test/sanity-check/api/contentType-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { contentstackClient } from '../utility/ContentstackClient.js'

let client = {}
let multiPageCTUid = ''
let multiPageUpdateCTUid = 'multi_page'

describe('Content Type api Test', () => {
setup(() => {
Expand Down Expand Up @@ -93,17 +94,17 @@ describe('Content Type api Test', () => {
})
.catch(done)
})
// it('should update Multi page ContentType Schema without fetch', done => {
// makeContentType()
// .updateCT(multiPageCT)
// .then((contentType) => {
// multiPageCTUid = contentType.uid
// expect(contentType.uid).to.be.equal(multiPageCT.content_type.uid)
// expect(contentType.title).to.be.equal(multiPageCT.content_type.title)
// done()
// })
// .catch(done)
// })

it('should update Multi page ContentType Schema without fetch', done => {
makeContentType(multiPageCT.content_type.uid)
.updateCT(multiPageCT)
.then((contentType) => {
expect(contentType.content_type.schema.length).to.be.equal(2)
done()
})
.catch(done)
})


it('should import content type', done => {
makeContentType().import({
Expand Down
46 changes: 46 additions & 0 deletions test/sanity-check/api/role-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ dotenv.config()
let client = {}
let roleUID = ''

const taxonomy = {
uid: 'taxonomy_testing1',
name: 'taxonomy testing1',
description: 'Description for Taxonomy testing'
}
const term = {
term: {
uid: 'term_test1',
name: 'Term test1',
parent_uid: null
}
}

describe('Role api test', () => {
setup(() => {
const user = jsonReader('loggedinuser.json')
Expand Down Expand Up @@ -49,6 +62,19 @@ describe('Role api test', () => {
.catch(done)
})

it('should create taxonomy', async () => {
await client.stack({ api_key: process.env.API_KEY }).taxonomy().create({ taxonomy })
})

it('should create term', done => {
makeTerms(taxonomy.uid).create(term)
.then((response) => {
expect(response.uid).to.be.equal(term.term.uid)
done()
})
.catch(done)
})

it('should create new role in stack', done => {
getRole()
.create(role)
Expand Down Expand Up @@ -141,8 +167,28 @@ describe('Role api test', () => {
})
.catch(done)
})
it('should delete of the term uid passed', done => {
makeTerms(taxonomy.uid, term.term.uid).delete({ force: true })
.then((response) => {
expect(response.status).to.be.equal(204)
done()
})
.catch(done)
})

it('should delete taxonomy', async () => {
const taxonomyResponse = await client.stack({ api_key: process.env.API_KEY }).taxonomy(taxonomy.uid).delete({ force: true })
expect(taxonomyResponse.status).to.be.equal(204)
})

})

function getRole (uid = null) {
return client.stack({ api_key: process.env.API_KEY }).role(uid)
}


function makeTerms (taxonomyUid, termUid = null) {
return client.stack({ api_key: process.env.API_KEY }).taxonomy(taxonomyUid).terms(termUid)
}

30 changes: 30 additions & 0 deletions test/sanity-check/mock/role.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,36 @@ const role = {
acl: {
read: true
}
},
{
module: "taxonomy",
taxonomies: ["taxonomy_testing1"],
terms: ["taxonomy_testing1.term_test1"],
content_types: [
{
uid: "$all",
acl: {
read: true,
sub_acl: {
read: true,
create: true,
update: true,
delete: true,
publish: true
}
}
}
],
acl: {
read: true,
sub_acl: {
read: true,
create: true,
update: true,
delete: true,
publish: true
}
}
}
]
}
Expand Down
86 changes: 85 additions & 1 deletion test/unit/mock/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,89 @@ const roleMock = {
...adminRoleMock,
admin: false
}
const roleMockWithTaxonomy = {
...systemFieldsMock,
...systemFieldsUserMock,
name: "Admin",
description: "Admin Role",
rules: [
{
module: "branch",
branches: [
"main"
],
acl: {
read: true
}
},
{
module: "environment",
environments: ["env_uid1", "env_uid2"],
acl: {
read: true
}
},
{
module: "locale",
locales: ["locales"],
acl: {
read: true
}
},
{
module: "taxonomy",
taxonomies: ["taxonomy_1"],
terms: ["taxonomy_1.term_1"],
content_types: [
{
uid: "$all",
acl: {
read: true,
sub_acl: {
read: true,
create: true,
update: true,
delete: true,
publish: true
}
}
}
],
acl: {
read: true,
sub_acl: {
read: true,
create: true,
update: true,
delete: true,
publish: true
}
}
},
{
module: "content_type",
content_types: ["ct_1"],
acl: {
read: true,
sub_acl: {
read: true,
create: true,
update: true,
delete: true,
publish: true
}
}
}
],
org_uid: "org_uid",
api_key: "api_key",
admin: false,
default: true,
users: [
'user_uid'
]
}

const branchMock = {
...systemFieldsMock,
...systemFieldsUserMock,
Expand Down Expand Up @@ -897,5 +980,6 @@ export {
mockCollection,
entryMockCollection,
checkSystemFields,
managementTokenMock
managementTokenMock,
roleMockWithTaxonomy
}
18 changes: 17 additions & 1 deletion test/unit/role-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { expect } from 'chai'
import { describe, it } from 'mocha'
import MockAdapter from 'axios-mock-adapter'
import { Role, RoleCollection } from '../../lib/stack/roles'
import { systemUidMock, stackHeadersMock, roleMock, noticeMock } from './mock/objects'
import { systemUidMock, stackHeadersMock, roleMock, noticeMock, roleMockWithTaxonomy} from './mock/objects'

describe('Contentstack Role test', () => {
it('Role test without uid', done => {
Expand Down Expand Up @@ -88,6 +88,22 @@ describe('Contentstack Role test', () => {
.catch(done)
})

it('Role create test with taxonomy permission', done => {
var mock = new MockAdapter(Axios)
mock.onPost('/roles').reply(200, {
role: {
...roleMockWithTaxonomy
}
})
makeRole()
.create()
.then((role) => {
checkRole(role)
done()
})
.catch(done)
})

it('Role Fetch all without Stack Headers test', done => {
var mock = new MockAdapter(Axios)
mock.onGet('/roles').reply(200, {
Expand Down
Loading