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

Make it possible to skip more information when exporting a space #2117

Open
pellebjerkestrand opened this issue Jun 12, 2023 · 0 comments
Open

Comments

@pellebjerkestrand
Copy link

Expected Behavior

When running contentful space export, having configured

  • "skipEditorInterfaces": true should skip downloading editor interfaces
  • "skipLocales": true should skip downloading locales

Actual Behavior

The program prints, on the last line

Unknown arguments: skipEditorInterfaces, skipLocales

Possible Solution

Support these options, so we don't have to download information we aren't going to use.

Steps to Reproduce

To a working configuration file, add

"skipEditorInterfaces": true,
"skipLocales": true,

Then run contentful space export --config [path to configuration file].

Context

We're generating types from the downloaded schema file's contentTypes array, and don't need the extra information.

Downloading editor interfaces always results in rate limiting, making updating the schema needlessly slow.

  ✔ Initialize client (1s)
  ✔ Fetching data from space
    ✔ Connecting to space (1s)
    ✔ Fetching content types data (1s)
    ↓ Fetching tags data [skipped]
    ✔ Fetching editor interfaces data (13s)
    ↓ Fetching content entries data [skipped]
    ↓ Fetching assets data [skipped]
    ✔ Fetching locales data (1s)
    ↓ Fetching webhooks data [skipped]
    ↓ Fetching roles data [skipped]
  ↓ Download assets [skipped]
  ✔ Write export log file
    ✔ Lookup directory to store the logs
    ✔ Create log directory
    ✔ Writing data to file
┌────────────────────────┐
│ Exported entities      │
├───────────────────┬────┤
│ Content Types     │ 94 │
├───────────────────┼────┤
│ Editor Interfaces │ 94 │
├───────────────────┼────┤
│ Locales           │ 5  │
└───────────────────┴────┘
The export took less than a minute (13s)

Stored space data to json file at: [redacted]


The following 0 errors and 27 warnings occurred:

11:59:04 - Rate limit error occurred. Waiting for 1643 ms before retrying...
11:59:04 - Rate limit error occurred. Waiting for 1502 ms before retrying...
11:59:05 - Rate limit error occurred. Waiting for 1682 ms before retrying...
11:59:05 - Rate limit error occurred. Waiting for 1517 ms before retrying...
11:59:05 - Rate limit error occurred. Waiting for 1531 ms before retrying...
11:59:06 - Rate limit error occurred. Waiting for 1692 ms before retrying...
11:59:07 - Rate limit error occurred. Waiting for 1580 ms before retrying...
11:59:07 - Rate limit error occurred. Waiting for 1549 ms before retrying...
11:59:07 - Rate limit error occurred. Waiting for 1592 ms before retrying...
11:59:07 - Rate limit error occurred. Waiting for 1521 ms before retrying...
11:59:07 - Rate limit error occurred. Waiting for 1620 ms before retrying...
11:59:09 - Rate limit error occurred. Waiting for 1567 ms before retrying...
11:59:09 - Rate limit error occurred. Waiting for 1646 ms before retrying...
11:59:09 - Rate limit error occurred. Waiting for 1679 ms before retrying...
11:59:09 - Rate limit error occurred. Waiting for 1536 ms before retrying...
11:59:09 - Rate limit error occurred. Waiting for 1561 ms before retrying...
11:59:11 - Rate limit error occurred. Waiting for 1661 ms before retrying...
11:59:11 - Rate limit error occurred. Waiting for 1646 ms before retrying...
11:59:11 - Rate limit error occurred. Waiting for 1544 ms before retrying...
11:59:11 - Rate limit error occurred. Waiting for 1662 ms before retrying...
11:59:11 - Rate limit error occurred. Waiting for 1642 ms before retrying...
11:59:13 - Rate limit error occurred. Waiting for 1614 ms before retrying...
11:59:13 - Rate limit error occurred. Waiting for 1515 ms before retrying...
11:59:13 - Rate limit error occurred. Waiting for 1611 ms before retrying...
11:59:13 - Rate limit error occurred. Waiting for 1632 ms before retrying...
11:59:13 - Rate limit error occurred. Waiting for 1608 ms before retrying...
11:59:14 - Rate limit error occurred. Waiting for 1653 ms before retrying...
The export was successful.
✨ Done

Environment

  • Package Version: 2.6.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant