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

DX | 11-12-2024 | Release #1703

Merged
merged 69 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
c125f6e
import pre setup command base code
shafeeqd959 Sep 3, 2024
c1b5036
Merge branch 'development' into feat/import-setup-command
shafeeqd959 Sep 3, 2024
2afb274
Merge branch 'development' of github.com:contentstack/cli into feat/i…
shafeeqd959 Sep 3, 2024
2524800
Merge branch 'feat/import-setup-command' of github.com:contentstack/c…
shafeeqd959 Sep 3, 2024
de67ada
deleted env
shafeeqd959 Sep 3, 2024
c8df043
changes
shafeeqd959 Sep 3, 2024
6db05e3
content type update
shafeeqd959 Sep 3, 2024
c246db6
Merge pull request #1542 from contentstack/feat/import-setup-command
shafeeqd959 Sep 4, 2024
5b2373d
Merge branch 'development' of github.com:contentstack/cli into feat/i…
shafeeqd959 Oct 9, 2024
93c4a34
content type basic setup
shafeeqd959 Oct 11, 2024
02b9881
Merge branch 'development' of github.com:contentstack/cli into feat/i…
shafeeqd959 Oct 11, 2024
eb000b8
lock file update
shafeeqd959 Oct 11, 2024
ef6afad
feat: added taxonomy mapper file support in import setup
aman19K Oct 23, 2024
574bb3d
Merge pull request #1643 from contentstack/feat/DX-1608
aman19K Oct 23, 2024
ffa4ccf
asset mapper file creation
shafeeqd959 Oct 24, 2024
afa0e11
fixed conflicts
shafeeqd959 Oct 24, 2024
baeaa9f
Merge pull request #1644 from contentstack/feat/import-setup-asset-ma…
shafeeqd959 Oct 25, 2024
93da7af
asset mapper, marketplace
shafeeqd959 Nov 6, 2024
9311979
merged changes
shafeeqd959 Nov 6, 2024
4c35079
Merge branch 'feat/import-setup-command-base' into feat/import-setup-…
shafeeqd959 Nov 6, 2024
dc4db88
Merge pull request #1663 from contentstack/feat/import-setup-asset-ma…
shafeeqd959 Nov 6, 2024
b9506d7
entry integration
shafeeqd959 Nov 7, 2024
478f9be
Merge pull request #1695 from contentstack/main
cs-raj Dec 5, 2024
b5e5fde
import setup command
shafeeqd959 Dec 5, 2024
efdf604
import setup command
shafeeqd959 Dec 5, 2024
cb0cfb6
release pipeline changes
shafeeqd959 Dec 5, 2024
587a9f8
removed tsconfig
shafeeqd959 Dec 5, 2024
2010940
Merge pull request #1696 from contentstack/staging
cs-raj Dec 5, 2024
c8d2651
fixed region
shafeeqd959 Dec 5, 2024
bf6d3ce
[DX-1781] - added consoles to check/reproduce the error
Dec 5, 2024
89c21f8
[DX-1781] - added consoles to check/reproduce the error
Dec 6, 2024
48dc32d
[DX-1781] - added consoles to confirm the error
Dec 6, 2024
f09aea9
review changes added
shafeeqd959 Dec 6, 2024
483e788
Merge branch 'development' of github.com:contentstack/cli into feat/i…
shafeeqd959 Dec 6, 2024
6d66f06
[DX-1781] - added fix and console to check fix is working or not
Dec 6, 2024
ef6fc05
log level update
shafeeqd959 Dec 6, 2024
03c528e
Merge pull request #1627 from contentstack/feat/import-setup-command-…
shafeeqd959 Dec 6, 2024
faec900
[DX-1781] - added consoles to check the error
Dec 6, 2024
ba2962a
[DX-1781] - added consoles to check the error
Dec 6, 2024
697a6fe
DX-648, updated the warning message
Dec 9, 2024
a59c2f0
Merge pull request #1697 from contentstack/DX-648
naman-contentstack Dec 9, 2024
dda1807
Merge branch 'development' into fix/DX-1781
Dec 9, 2024
99324a0
updated mismatching ui docs changes
harshithad0703 Dec 9, 2024
5cec2cf
[DX-1781] - added consoles to check the error
Dec 9, 2024
105866c
[DX-1781] - added consoles to check the error
Dec 9, 2024
c408fd8
removed **
harshithad0703 Dec 9, 2024
893abc0
[DX-1781] - added consoles to check the error
Dec 9, 2024
68d64b0
[DX-1781] - added consoles to check the error
Dec 9, 2024
4153ecf
[DX-1781] - removed consoles
Dec 9, 2024
213e006
version bump
cs-raj Dec 9, 2024
fae16e1
Merge pull request #1700 from contentstack/fix/dev
cs-raj Dec 9, 2024
c9b272a
Merge branch 'development' into fix/DX-1781
Dec 9, 2024
83d973c
Merge branch 'development' into fix/DX-1781
Dec 9, 2024
f4a8030
updated UI texts according to latest docs
harshithad0703 Dec 9, 2024
dd18c70
Merge branch 'development' into fix/dx-1887-ui-docs-mismatch
harshithad0703 Dec 9, 2024
c6be15f
Merge pull request #1701 from contentstack/fix/dx-1887-ui-docs-mismatch
harshithad0703 Dec 9, 2024
95ad942
DX-1781- updated packages
Dec 9, 2024
3e7467c
Merge branch 'development' into fix/DX-1781
Dec 9, 2024
67e116e
Merge pull request #1699 from contentstack/fix/DX-1781
cs-raj Dec 9, 2024
7e9d01d
DX-1781, added optional chaining
Dec 9, 2024
26400aa
Merge pull request #1702 from contentstack/fix/DX-1781
naman-contentstack Dec 9, 2024
f1baeae
Merge pull request #1698 from contentstack/development
cs-raj Dec 10, 2024
232c65e
sanitized path
shafeeqd959 Dec 11, 2024
9d95550
Merge pull request #1704 from contentstack/fix/DX-1908
shafeeqd959 Dec 11, 2024
260ae84
fix: added the check to only unpublish the filtered entries
cs-raj Dec 11, 2024
280ceba
Merge pull request #1705 from contentstack/fix/DX-1911
cs-raj Dec 11, 2024
7223d6a
Merge branch 'staging' into development
cs-raj Dec 11, 2024
097217e
Merge pull request #1707 from contentstack/fix/dev6
cs-raj Dec 11, 2024
b1ab24e
Merge pull request #1706 from contentstack/development
harshithad0703 Dec 11, 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
Prev Previous commit
Next Next commit
fixed region
shafeeqd959 committed Dec 5, 2024
commit c8d2651894e166d2f7dacde0fd8121d2686a0eb2
23 changes: 14 additions & 9 deletions packages/contentstack-import-setup/README.md
Original file line number Diff line number Diff line change
@@ -2,11 +2,12 @@

It is Contentstack’s CLI plugin to import content in the stack. To learn how to export and import content in Contentstack, refer to the [Migration guide](https://www.contentstack.com/docs/developers/cli/migration/).

[![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE)it -m
[![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE)it -m

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)

- [Usage](#usage)
- [Commands](#commands)
<!-- tocstop -->

For switching to EU region update the hosts at config/default.js
@@ -42,6 +43,7 @@ For switching to AZURE-EU region update the hosts at config/default.js
# Usage

<!-- usage -->

```sh-session
$ npm install -g @contentstack/cli-cm-import-setup
$ csdx COMMAND
@@ -53,21 +55,23 @@ USAGE
$ csdx COMMAND
...
```

<!-- usagestop -->

# Commands

<!-- commands -->
* [`csdx cm:stacks:import [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`](#csdx-cmstacksimport--k-value--d-value--a-value---modules-valuevalue)
* [`csdx cm:stacks:import [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`](#csdx-cmstacksimport--k-value--d-value--a-value---modules-valuevalue-1)

## `csdx cm:stacks:import [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`
- [`csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`](#csdx-cmstacksimport--k-value--d-value--a-value---modules-valuevalue)
- [`csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`](#csdx-cmstacksimport--k-value--d-value--a-value---modules-valuevalue-1)

## `csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`

Import content from a stack

```
USAGE
$ csdx cm:stacks:import [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]
$ csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]

FLAGS
-a, --alias=<value> alias of the management token
@@ -86,13 +90,13 @@ EXAMPLES
$ csdx cm:stacks:import-setup --stack-api-key <stack_api_key> --data-dir <path/of/export/destination/dir> --modules <module_name, module_name>
```

## `csdx cm:stacks:import [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`
## `csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`

Import content from a stack

```
USAGE
$ csdx cm:stacks:import [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]
$ csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]

FLAGS
-a, --alias=<value> alias of the management token
@@ -112,4 +116,5 @@ EXAMPLES
```

_See code: [src/commands/cm/stacks/import-setup.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-import-setup/src/commands/cm/stacks/import-setup.ts)_

<!-- commandsstop -->
Original file line number Diff line number Diff line change
@@ -40,14 +40,18 @@ export default class ImportSetupCommand extends Command {
}),
};

static aliases: string[] = ['cm:import'];
static aliases: string[] = ['cm:import-setup'];

static usage: string = 'cm:stacks:import [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]';
static usage: string = 'cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]';

async run(): Promise<void> {
try {
const { flags } = await this.parse(ImportSetupCommand);
let importSetupConfig = await setupImportConfig(flags);
// Note setting host to create cma client
importSetupConfig.host = this.cmaHost;
importSetupConfig.region = this.region;
importSetupConfig.developerHubBaseUrl = this.developerHubUrl;
const managementAPIClient: ContentstackClient = await managementSDKClient(importSetupConfig);
const importSetup = new ImportSetup(importSetupConfig, managementAPIClient);
await importSetup.start();
Original file line number Diff line number Diff line change
@@ -45,6 +45,7 @@ export default interface ImportConfig extends DefaultConfig, ExternalConfig {
useBackedupDir?: string;
backupDir: string;
createBackupDir?: string;
region: any;
}

type branch = {