Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Added changesets for maintenance tasks (#14982)

Damian Legawiec348c5bbeb94e
diff --git a/.changeset/maintenance-tasks-admin-sdk.md b/.changeset/maintenance-tasks-admin-sdk.md
new file mode 100644
index 0000000000..d66c92a6d5
--- /dev/null
+++ b/.changeset/maintenance-tasks-admin-sdk.md
@@ -0,0 +1,5 @@
+---
+"@spree/admin-sdk": minor
+---
+
+Added maintenance task runs and upgrade steps. `upgradeSteps.list()` returns the data steps a Spree upgrade still needs, in the order they must run, each with its last run. `maintenanceTaskRuns` lists, gets and starts runs, and `maintenanceTaskRuns.cancel()` stops one. Runs belong to the whole installation, and a task is named by its short name (`capture_methods`), never a Ruby class name.
diff --git a/.changeset/maintenance-tasks-core.md b/.changeset/maintenance-tasks-core.md
new file mode 100644
index 0000000000..59c7090128
--- /dev/null
+++ b/.changeset/maintenance-tasks-core.md
@@ -0,0 +1,5 @@
+---
+"@spree/core": minor
+---
+
+Added `MaintenanceTaskRunStatus` and `MAINTENANCE_TASK_RUN_STATUSES`, the statuses a maintenance task run moves through.
diff --git a/.changeset/maintenance-tasks-dashboard-core.md b/.changeset/maintenance-tasks-dashboard-core.md
new file mode 100644
index 0000000000..d8ed26b526
--- /dev/null
+++ b/.changeset/maintenance-tasks-dashboard-core.md
@@ -0,0 +1,5 @@
+---
+"@spree/dashboard-core": minor
+---
+
+Added `Subject.MaintenanceTaskRun`, the permission subject for maintenance task runs.
diff --git a/.changeset/maintenance-tasks-dashboard-ui.md b/.changeset/maintenance-tasks-dashboard-ui.md
new file mode 100644
index 0000000000..c605947766
--- /dev/null
+++ b/.changeset/maintenance-tasks-dashboard-ui.md
@@ -0,0 +1,5 @@
+---
+"@spree/dashboard-ui": minor
+---
+
+`TabsTrigger` takes a `count` to show a tally next to the tab's label. `StatusBadge` colors the maintenance task run statuses, and `WrenchIcon` is exported from `@spree/dashboard-ui/icons`.
diff --git a/.changeset/maintenance-tasks-dashboard.md b/.changeset/maintenance-tasks-dashboard.md
new file mode 100644
index 0000000000..b91ea46d7c
--- /dev/null
+++ b/.changeset/maintenance-tasks-dashboard.md
@@ -0,0 +1,5 @@
+---
+"@spree/dashboard": minor
+---
+
+Added Settings → Maintenance tasks. The Upgrade tab lists the data steps a Spree upgrade needs, in order, and runs them one at a time; a store with nothing to convert is told it is up to date. The History tab records every run, from the dashboard or the command line, and each run opens a sheet with its progress, results and a Cancel button. The page is hidden when `SPREE_MAINTENANCE_TASKS_DASHBOARD_ENABLED=false`.
diff --git a/.changeset/maintenance-tasks-sdk.md b/.changeset/maintenance-tasks-sdk.md
new file mode 100644
index 0000000000..5af616190b
--- /dev/null
+++ b/.changeset/maintenance-tasks-sdk.md
@@ -0,0 +1,5 @@
+---
+"@spree/sdk": minor
+---
+
+Added the `maintenance_task_run.*` webhook events (`created`, `started`, `interrupted`, `succeeded`, `errored`, `cancelled`, `updated` and `deleted`) to the typed webhook event catalog.