@madewithremy/admin 0.1.16 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/prod.js CHANGED
@@ -3202,7 +3202,8 @@ function create2(ctx, params) {
3202
3202
  function move(ctx, params) {
3203
3203
  return call(ctx, "POST", `${base(ctx.appId)}/move`, {
3204
3204
  slug: params.slug,
3205
- placement: params.placement
3205
+ placement: params.placement,
3206
+ ...params.restart ? { restart: true } : {}
3206
3207
  });
3207
3208
  }
3208
3209
  async function waitForMove(ctx, params) {
@@ -4737,9 +4738,9 @@ Bulk ingestion (jobs):
4737
4738
  with its documents left mid-build; \`jobs status\` shows the batch's error.
4738
4739
  Once the cause is fixed (capacity that was restoring, a provider outage),
4739
4740
  \`jobs retry <id>\` puts the job back to running over just those batches and
4740
- finishes it again. A source with documents mid-build refuses to move or
4741
- re-vectorize (data_source_busy) until they finish, so retry is what clears
4742
- that.
4741
+ finishes it again, and works on a cancelled job too. Documents stranded that
4742
+ way do not block a move: \`jobs retry\` builds them onto wherever the source
4743
+ lives now.
4743
4744
 
4744
4745
  One bulk operation per source: a job refuses to start during a move or while
4745
4746
  a candidate version exists, and moves, re-vectorizes and deletes refuse while
@@ -5231,10 +5232,11 @@ var dataSourcesSpecs = {
5231
5232
  }
5232
5233
  },
5233
5234
  "datasources move": {
5234
- usage: "Usage: remy-admin datasources move [--source <slug>] --to <resource-id|shared> [--wait] [--timeout <sec>]",
5235
+ usage: "Usage: remy-admin datasources move [--source <slug>] --to <resource-id|shared> [--restart] [--wait] [--timeout <sec>]",
5235
5236
  flags: {
5236
5237
  source: { type: "string" },
5237
5238
  to: { type: "string" },
5239
+ restart: { type: "boolean" },
5238
5240
  wait: { type: "boolean" },
5239
5241
  timeout: { type: "string" }
5240
5242
  },
@@ -5598,7 +5600,11 @@ async function dataSourcesMove(ctx, a) {
5598
5600
  const slug = sourceOf(a);
5599
5601
  const to = a.str("to");
5600
5602
  const placement = to === "shared" ? "shared" : { resourceId: to };
5601
- const started = await move(ctx, { slug, placement });
5603
+ const started = await move(ctx, {
5604
+ slug,
5605
+ placement,
5606
+ ...a.bool("restart") ? { restart: true } : {}
5607
+ });
5602
5608
  if (!started.migration || !a.bool("wait")) {
5603
5609
  out({
5604
5610
  dataSource: slug,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madewithremy/admin",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Admin SDK + CLI for managing production Remy apps",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",