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

Merge development to staging #839

Merged
merged 77 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
666720c
bugfix-CS-37275 add the error message showing the content_type UID w…
cs-raj Apr 25, 2023
1fc782d
changed the error message
cs-raj Apr 27, 2023
166f1d6
removed stray console.log from /contentstack-import/src/lib/util/inde…
cs-raj May 5, 2023
32e4ca3
fixed error when when content_type uid is not there in error message …
cs-raj May 5, 2023
f1a67eb
Merge branch 'development' into bugfix-CS-37275
cs-raj May 15, 2023
149ceb6
fix: export & import error logs
aman19K May 18, 2023
3ee1647
Merge branch 'development' into bugfix/CS-34294-error-logs
aman19K May 19, 2023
8d902d9
fix(import): added warning messages for non existing content-types re…
vkalta May 22, 2023
f0de6ae
Merge branch 'development' into bugfix-CS-37275
cs-raj May 23, 2023
fac4e1c
Merge branch 'development' into bugfix/CS-34294-error-logs
aman19K May 24, 2023
2586d98
Changed the error message to display the content type due to which er…
cs-raj May 24, 2023
f6c0257
Merge branch 'development' into bugfix-CS-37275
cs-raj May 24, 2023
a2cb30d
WIP: added stack-api-key flag
abhinav-from-contentstack May 25, 2023
4fd68c8
fix: Merged 38247
abhinav-from-contentstack May 25, 2023
36233f1
WIP: adding stack-api-key flag
abhinav-from-contentstack May 25, 2023
4da8a1a
Merge remote-tracking branch 'origin/development' into fix/import_glo…
vkalta May 31, 2023
1466643
added stack-api-key, made alias or stack-api-key required
abhinav-from-contentstack Jun 1, 2023
4775451
Merge branch 'development' into feat/CS-38249
abhinav-from-contentstack Jun 1, 2023
9c37dad
Merge pull request #806 from contentstack/fix/import_global_field_ref…
netrajpatel Jun 1, 2023
129edf4
added branch flag
akashbhosale97 Jun 1, 2023
d4038db
added a check for stacks with no branch
akashbhosale97 Jun 1, 2023
09758d5
added logs folder to gitignore
akashbhosale97 Jun 1, 2023
4b7f9ad
added validations
akashbhosale97 Jun 2, 2023
5f3e1a7
added error message to appear red
akashbhosale97 Jun 2, 2023
f024e95
added example command with branch flag
akashbhosale97 Jun 2, 2023
56b5e39
fix: added isAuthenticated
abhinav-from-contentstack Jun 5, 2023
3fba13e
Merge branch 'development' into feat/CS-38249
abhinav-from-contentstack Jun 5, 2023
e28235d
Merge branch 'development' into bugfix/CS-34294-error-logs
aman19K Jun 5, 2023
0348ac4
refactor: export & import config example
aman19K Jun 5, 2023
a66f339
updated export & import readme file
aman19K Jun 5, 2023
1232e0e
fix: added branch validation
abhinav-from-contentstack Jun 5, 2023
a7f4794
added changes to errors messages as per doc review
akashbhosale97 Jun 5, 2023
d0f0bfa
removed error thrown if branch was not passed then branches plan does…
akashbhosale97 Jun 5, 2023
7626a0c
added changes for branch flag validation
akashbhosale97 Jun 5, 2023
8f1dc21
fix: handled case where branch flag is not passed
abhinav-from-contentstack Jun 5, 2023
f8b7754
fix: added fix for a case with management token and oauth
abhinav-from-contentstack Jun 5, 2023
f5b705d
changed choose to enter
akashbhosale97 Jun 5, 2023
1aa17ca
fixed throwing full error when user does not have permissions to expo…
akashbhosale97 Jun 5, 2023
9ac0240
refactor: stack dummy value
aman19K Jun 6, 2023
0f79671
Merge pull request #825 from contentstack/feat/export-import-config-e…
netrajpatel Jun 6, 2023
a6a687f
changed the logic to have utility to check if branch exists
akashbhosale97 Jun 6, 2023
066fb89
Merge branch 'development' into feat/branch-support-export-to-csv
akashbhosale97 Jun 6, 2023
f7ad119
auth-handler unit tests
Jun 6, 2023
e38557f
Merge branch 'development' into oauth-unit-test
Jun 6, 2023
458bd92
version bump
akashbhosale97 Jun 6, 2023
9aee02d
changes to resolve comments
akashbhosale97 Jun 6, 2023
bbb0588
Merge pull request #824 from contentstack/feat/branch-support-export-…
netrajpatel Jun 6, 2023
6a81e3a
latest development changes
Jun 7, 2023
85a51ba
Merge pull request #826 from contentstack/oauth-unit-test
netrajpatel Jun 7, 2023
109611e
Merge branch 'development' into feat/CS-38249
abhinav-from-contentstack Jun 7, 2023
02f68c9
fix: updated http call with sdk method
abhinav-from-contentstack Jun 7, 2023
01b65a4
Merge branch 'development' into feat/CS-31208
abhinav-from-contentstack Jun 7, 2023
c371de9
Merge pull request #827 from contentstack/feat/CS-38249
netrajpatel Jun 7, 2023
baecdc3
Oauth screen UI update
Jun 7, 2023
5486b3d
latest code from development branch
Jun 7, 2023
69bff58
Merge branch 'development' into bugfix-CS-37275
cs-raj Jun 7, 2023
99d4913
fix: replaced http client with sdk method for update config
abhinav-from-contentstack Jun 8, 2023
5693713
Merge pull request #828 from contentstack/oauth-window-updates
netrajpatel Jun 8, 2023
19db4d6
removed error log code from index to import content_type file
cs-raj Jun 8, 2023
7ab686b
Merge branch 'development' into bugfix/CS-34294-error-logs
aman19K Jun 13, 2023
ce33ffc
version bump
aman19K Jun 13, 2023
42cedef
Merge pull request #833 from contentstack/bugfix/CS-34294-error-logs
netrajpatel Jun 13, 2023
d1ac3b3
Merge branch 'development' into bugfix-CS-37275
netrajpatel Jun 13, 2023
211c168
Merge pull request #816 from contentstack/bugfix-CS-37275
netrajpatel Jun 13, 2023
1fdff9b
Merge branch 'development' into feat/CS-31208
abhinav-from-contentstack Jun 13, 2023
1ca5b4f
Merge branch 'development' into feat/CS-31209
abhinav-from-contentstack Jun 13, 2023
690a21c
Merge pull request #835 from contentstack/feat/CS-31208
netrajpatel Jun 13, 2023
a8be7ad
Merge branch 'development' into feat/CS-31209
netrajpatel Jun 13, 2023
16236e8
Merge pull request #834 from contentstack/feat/CS-31209
netrajpatel Jun 13, 2023
bb558d9
Merge branch 'staging' into development
aman19K Jun 13, 2023
90ddef3
version bump
aman19K Jun 13, 2023
cb7aea2
Merge pull request #836 from contentstack/feat/merge-staging
netrajpatel Jun 13, 2023
e1fc17c
fix: entries publish
aman19K Jun 13, 2023
1d2bc9d
Merge pull request #837 from contentstack/bugfix/CS-39527
netrajpatel Jun 14, 2023
a2ede36
fix(clone): fixed target branches issue
vkalta Jun 14, 2023
a3eac95
Merge branch 'development' into fix/clone_issues
aman19K Jun 14, 2023
b82e53d
Merge pull request #838 from contentstack/fix/clone_issues
netrajpatel Jun 15, 2023
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
214 changes: 107 additions & 107 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/contentstack-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-auth/1.3.8 darwin-x64 node-v18.16.0
@contentstack/cli-auth/1.3.9 darwin-arm64 node-v18.16.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
6 changes: 3 additions & 3 deletions packages/contentstack-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-auth",
"description": "Contentstack CLI plugin for authentication activities",
"version": "1.3.8",
"version": "1.3.9",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"scripts": {
Expand All @@ -21,8 +21,8 @@
"test:unit": "mocha --forbid-only \"test/unit/*.test.ts\""
},
"dependencies": {
"@contentstack/cli-command": "^1.2.8",
"@contentstack/cli-utilities": "^1.4.4",
"@contentstack/cli-command": "^1.2.9",
"@contentstack/cli-utilities": "^1.4.5",
"chalk": "^4.0.0",
"debug": "^4.1.1",
"inquirer": "8.2.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-bootstrap/1.4.8 darwin-x64 node-v18.16.0
@contentstack/cli-cm-bootstrap/1.4.9 darwin-arm64 node-v18.16.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
8 changes: 4 additions & 4 deletions packages/contentstack-bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-bootstrap",
"description": "Bootstrap contentstack apps",
"version": "1.4.8",
"version": "1.4.9",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"scripts": {
Expand All @@ -17,9 +17,9 @@
"test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
},
"dependencies": {
"@contentstack/cli-cm-seed": "^1.4.8",
"@contentstack/cli-command": "^1.2.8",
"@contentstack/cli-utilities": "^1.4.4",
"@contentstack/cli-cm-seed": "^1.4.9",
"@contentstack/cli-command": "^1.2.9",
"@contentstack/cli-utilities": "^1.4.5",
"inquirer": "8.2.4",
"mkdirp": "^1.0.4",
"tar": "^6.1.13"
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-branches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $ npm install -g @contentstack/cli-cm-branches
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-branches/1.0.5 darwin-x64 node-v18.16.0
@contentstack/cli-cm-branches/1.0.6 darwin-arm64 node-v18.16.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
6 changes: 3 additions & 3 deletions packages/contentstack-branches/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@contentstack/cli-cm-branches",
"description": "Contentstack CLI plugin to do branches operations",
"version": "1.0.5",
"version": "1.0.6",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
"@contentstack/cli-command": "^1.2.8",
"@contentstack/cli-utilities": "^1.4.4",
"@contentstack/cli-command": "^1.2.9",
"@contentstack/cli-utilities": "^1.4.5",
"@oclif/command": "^1.8.16",
"@oclif/config": "^1.18.3",
"@oclif/core": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-bulk-publish/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-bulk-publish/1.3.7 darwin-x64 node-v18.16.0
@contentstack/cli-cm-bulk-publish/1.3.8 darwin-arm64 node-v18.16.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
6 changes: 3 additions & 3 deletions packages/contentstack-bulk-publish/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@contentstack/cli-cm-bulk-publish",
"description": "Contentstack CLI plugin for bulk publish actions",
"version": "1.3.7",
"version": "1.3.8",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
"@contentstack/cli-command": "^1.2.8",
"@contentstack/cli-utilities": "^1.4.4",
"@contentstack/cli-command": "^1.2.9",
"@contentstack/cli-utilities": "^1.4.5",
"bluebird": "^3.7.2",
"chalk": "^4.1.2",
"inquirer": "8.2.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-clone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-clone
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-clone/1.4.8 darwin-x64 node-v18.16.0
@contentstack/cli-cm-clone/1.4.9 darwin-arm64 node-v18.16.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
10 changes: 5 additions & 5 deletions packages/contentstack-clone/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@contentstack/cli-cm-clone",
"description": "Contentstack stack clone plugin",
"version": "1.4.8",
"version": "1.4.9",
"author": "Contentstack",
"bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues",
"dependencies": {
"@colors/colors": "^1.5.0",
"@contentstack/cli-cm-export": "^1.5.8",
"@contentstack/cli-cm-import": "^1.5.8",
"@contentstack/cli-command": "^1.2.8",
"@contentstack/cli-utilities": "^1.4.4",
"@contentstack/cli-cm-export": "^1.5.9",
"@contentstack/cli-cm-import": "^1.5.9",
"@contentstack/cli-command": "^1.2.9",
"@contentstack/cli-utilities": "^1.4.5",
"async": "^3.2.4",
"chalk": "^4.1.0",
"child_process": "^1.0.2",
Expand Down
32 changes: 16 additions & 16 deletions packages/contentstack-clone/src/lib/util/clone-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class CloneHandler {
let spinner;
try {
const stackAPIClient = client.stack({
api_key: config.source_stack,
api_key: config.target_stack ? config.target_stack : config.source_stack,
management_token: config.management_token,
});

Expand Down Expand Up @@ -337,12 +337,17 @@ class CloneHandler {

const orgMsgExistingStack = 'Choose an organization where the destination stack exists: ';
const orgMsgNewStack = 'Choose an organization where you want to create a stack: ';
const org = await cloneCommand.execute(new HandleOrgCommand({
msg: !canCreateStack.stackCreate ? orgMsgExistingStack : orgMsgNewStack
}, this));

let self = this;
if (org) {
let org;
if (!config.target_stack) {
org = await cloneCommand.execute(new HandleOrgCommand({
msg: !canCreateStack.stackCreate ? orgMsgExistingStack : orgMsgNewStack
}, this));
}

const params = { org, canCreateStack };
if (!config.target_stack) {
let self = this;
keyPressHandler = async function (_ch, key) {
if (key.name === 'left' && key.shift) {
if (self.executingCommand === 1) {
Expand All @@ -363,10 +368,9 @@ class CloneHandler {
};
process.stdin.addListener('keypress', keyPressHandler);
this.setBackKeyPressHandler(keyPressHandler);

await this.executeStackDestinationPrompt({ org, canCreateStack });
await this.executeStackDestinationPrompt(params);
} else {
return reject('Org not found.');
await this.executeBranchDestinationPrompt(params);
}

return resolve();
Expand All @@ -381,13 +385,9 @@ class CloneHandler {
this.setExectingCommand(1);
const { org, canCreateStack } = params;
if (!canCreateStack.stackCreate) {
if (!config.target_stack) {
const stackMsg = 'Choose the destination stack:';
await cloneCommand.execute(new HandleDestinationStackCommand({ org, msg: stackMsg, isSource: false }, this));
}
if (config.target_stack) {
this.executeBranchDestinationPrompt(params);
}
const stackMsg = 'Choose the destination stack:';
await cloneCommand.execute(new HandleDestinationStackCommand({ org, msg: stackMsg, isSource: false }, this));
this.executeBranchDestinationPrompt(params);
} else {
const orgUid = orgUidList[org.Organization];
await cloneCommand.execute(new CreateNewStackCommand({ orgUid }, this));
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack-command/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-command",
"description": "Contentstack CLI plugin for configuration",
"version": "1.2.8",
"version": "1.2.9",
"author": "Contentstack",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand All @@ -17,7 +17,7 @@
"format": "eslint src/**/*.ts --fix"
},
"dependencies": {
"@contentstack/cli-utilities": "^1.4.4",
"@contentstack/cli-utilities": "^1.4.5",
"contentstack": "^3.10.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-config/1.4.6 darwin-x64 node-v18.16.0
@contentstack/cli-config/1.4.7 darwin-arm64 node-v18.16.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
6 changes: 3 additions & 3 deletions packages/contentstack-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-config",
"description": "Contentstack CLI plugin for configuration",
"version": "1.4.6",
"version": "1.4.7",
"author": "Contentstack",
"scripts": {
"build": "npm run clean && npm run compile",
Expand All @@ -21,8 +21,8 @@
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
},
"dependencies": {
"@contentstack/cli-command": "^1.2.8",
"@contentstack/cli-utilities": "^1.4.4",
"@contentstack/cli-command": "^1.2.9",
"@contentstack/cli-utilities": "^1.4.5",
"chalk": "^4.0.0",
"debug": "^4.1.1",
"inquirer": "8.2.4",
Expand Down
2 changes: 2 additions & 0 deletions packages/contentstack-export-to-csv/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
/yarn.lock
coverage
node_modules
data
logs
6 changes: 3 additions & 3 deletions packages/contentstack-export-to-csv/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@contentstack/cli-cm-export-to-csv",
"description": "Export entities to csv",
"version": "1.3.8",
"version": "1.3.9",
"author": "Abhinav Gupta @abhinav-from-contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
"@contentstack/cli-command": "^1.2.8",
"@contentstack/cli-utilities": "^1.4.4",
"@contentstack/cli-command": "^1.2.9",
"@contentstack/cli-utilities": "^1.4.5",
"chalk": "^4.1.0",
"fast-csv": "^4.3.6",
"inquirer": "8.2.4",
Expand Down
Loading