Skip to content

Commit d8750fd

Browse files
deeebeee3Benj0s
andauthored
feat: publish queue improvements (#226)
* test: update to latest version of jest * feat: adding burstable queue * feat: adding publishing and publishing job services * refactor: update options, command options, modify tests * feat: content item import publish to use new services * feat: pass headers via custom dc http client to match sdk * test: updating import tests to use new publishing service * feat: removing redundant publishing flags * test: updating publish tests to use new publishing service * feat: add publish progress and only log to log file * feat: allow publish checks to occur without user input * test: adding tests for publishing services * fix: improve logging when publishing content * fix: moving publish complete log to correct scope * feat: add min time to burstable queue to spread load * fix: lowering min time to make sure we use the full burst interval reservoir * fix: log immediate children * fix: reintroduce publish content tree child item filtering * feat: bump to latest management sdk * fix: pin specific jest dependency versions --------- Co-authored-by: Ben Pearey <bpearey@amplience.com>
1 parent a9be85b commit d8750fd

46 files changed

Lines changed: 8111 additions & 4925 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ temp/
5353
.LSOverride
5454

5555
# Icon must end with two \r
56-
Icon
56+
Icon
57+
5758

5859
# Thumbnails
5960
._*
@@ -73,3 +74,6 @@ Icon
7374
Network Trash Folder
7475
Temporary Items
7576
.apdisk
77+
78+
# dc-cli outputs
79+
exports

docs/CONTENT-ITEM.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ dc-cli content-item import <dir>
165165
| -v<br />--validate | [boolean] | Only recreate folder structure - content is validated but not imported. |
166166
| --skipIncomplete | [boolean] | Skip any content items that has one or more missing dependancy. |
167167
| --publish | [boolean] | Publish any content items that have an existing publish status in their JSON. |
168-
| --batchPublish | [boolean] | Batch publish requests up to the rate limit. (35/min) |
169168
| --republish | [boolean] | Republish content items regardless of whether the import changed them or not.<br />(--publish not required) |
170169
| --excludeKeys | [boolean] | Exclude delivery keys when importing content items. |
171170
| --media | [boolean] | Detect and rewrite media links to match assets in the target account's Content Hub. Your client must have Content Hub permissions configured. |
@@ -215,7 +214,6 @@ dc-cli content-item copy <dir>
215214
| --skipIncomplete | [boolean] | Skip any content item that has one or more missing dependancy. |
216215
| --lastPublish | [boolean] | When available, export the last published version of a content item rather than its newest version. |
217216
| --publish | [boolean] | Publish any content items that have an existing publish status in their JSON. |
218-
| --batchPublish | [boolean] | Batch publish requests up to the rate limit. (35/min) |
219217
| --republish | [boolean] | Republish content items regardless of whether the import changed them or not.<br />(--publish not required) |
220218
| --excludeKeys | [boolean] | Exclude delivery keys when importing content items. |
221219
| --media | [boolean] | Detect and rewrite media links to match assets in the target account's DAM.<br />Your client must have DAM permissions configured. |
@@ -265,7 +263,6 @@ dc-cli content-item move <dir>
265263
| --skipIncomplete | [boolean] | Skip any content item that has one or more missing dependancy. |
266264
| --lastPublish | [boolean] | When available, export the last published version of a content item rather than its newest version. |
267265
| --publish | [boolean] | Publish any content items that have an existing publish status in their JSON. |
268-
| --batchPublish | [boolean] | Batch publish requests up to the rate limit. (35/min) |
269266
| --republish | [boolean] | Republish content items regardless of whether the import changed them or not.<br />(--publish not required) |
270267
| --excludeKeys | [boolean] | Exclude delivery keys when importing content items. |
271268
| --media | [boolean] | Detect and rewrite media links to match assets in the target account's DAM.<br />Your client must have DAM permissions configured. |
@@ -402,16 +399,14 @@ If no `id` is provided, all content items in all content repositories in the spe
402399

403400
#### Options
404401

405-
| Option | Alias | Description |
406-
| -------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
407-
| `--repoId` | | The ID of a content repository to restrict publishing scope. _(Optional)_ |
408-
| `--folderId` | | The ID of a folder to restrict publishing scope. _(Optional)_ |
409-
| `--facet` | | Filter content using facets. Format: <br>`label:example name,locale:en-GB` <br>Regex supported with `/pattern/`. <br>See README for more examples. |
410-
| `--batchPublish` | | Enable batch publishing up to 35 items per minute. _(Optional)_ |
411-
| `-f`, `--force` | | Skip confirmation prompts before publishing. |
412-
| `-s`, `--silent` | | Disable log file creation. |
413-
| `--logFile` | | Path to write the log file. <br>Default: `(log_filename)` |
414-
| `--publishRateLimit` | | Set the number of publishes per minute (max = 80). <br>Default: `35` |
402+
| Option | Alias | Description |
403+
| ---------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
404+
| `--repoId` | | The ID of a content repository to restrict publishing scope. _(Optional)_ |
405+
| `--folderId` | | The ID of a folder to restrict publishing scope. _(Optional)_ |
406+
| `--facet` | | Filter content using facets. Format: <br>`label:example name,locale:en-GB` <br>Regex supported with `/pattern/`. <br>See README for more examples. |
407+
| `-f`, `--force` | | Skip confirmation prompts before publishing. |
408+
| `-s`, `--silent` | | Disable log file creation. |
409+
| `--logFile` | | Path to write the log file. <br>Default: `(log_filename)` |
415410

416411
---
417412

@@ -434,9 +429,3 @@ dc-cli content-item publish --repoId your-repo-id
434429
```bash
435430
dc-cli content-item publish --facet "locale:en-GB,label:homepage"
436431
```
437-
438-
##### Batch publish all items silently
439-
440-
```bash
441-
dc-cli content-item publish --batchPublish --silent --force
442-
```

docs/HUB.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ dc-cli hub clone <dir>
107107
| --skipIncomplete | [boolean] | Skip any content item that has one or more missing dependancy. |
108108
| --lastPublish | [boolean] | When available, export the last published version of a content item rather than its newest version. |
109109
| --publish | [boolean] | Publish any content items that have an existing publish status in their JSON. |
110-
| --batchPublish | [boolean] | Batch publish requests up to the rate limit. (35/min) |
111110
| --republish | [boolean] | Republish content items regardless of whether the import changed them or not.<br />(--publish not required) |
112111
| --excludeKeys | [boolean] | Exclude delivery keys when importing content items. |
113112
| --media | [boolean] | Detect and rewrite media links to match assets in the target account's DAM.<br />Your client must have DAM permissions configured. |

0 commit comments

Comments
 (0)