@coignite/directus-extension-flows-manager 1.9.1 → 1.10.0
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/README.md +16 -2
- package/dist/api.js +1 -1
- package/dist/app.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,14 +10,28 @@ the source's.
|
|
|
10
10
|
| Entry | Type | What it does |
|
|
11
11
|
|---|---|---|
|
|
12
12
|
| `fm-module` | module | The Flows Manager screen. Administrators only (`preRegisterCheck`). |
|
|
13
|
-
| `fm-bootstrap` | hook | At `app.after`, creates and converges every table below through `ensureSchema` (`src/libs/directus-schema`), then runs the one-shot below. The only place the bundle makes schema. |
|
|
13
|
+
| `fm-bootstrap` | hook | At `app.after`, creates and converges every table below through `ensureSchema` (`src/libs/directus-schema`), then runs the one-shot below. The only place the bundle makes schema. The pass waits its turn behind the other bundles' schema passes in the same process (one at a time, 120 s before it hands the queue on; #1006); that only takes effect once all seven bundles are updated, until then raise `DB_POOL__MAX` (e.g. 20). |
|
|
14
14
|
| `fm-fence` | hook | Refuses every `items.query/create/update/delete` on the tables below to anyone but Directus itself and administrators: 403 `FLOWS_MANAGER_OWNED_TABLE`. |
|
|
15
15
|
| `fm-backup` | hook | Writes a backup row on every flow create, update and delete; drops a deleted flow's folder assignment. Creates nothing. Its `routes.before` middleware reads the operation links of a flow a REST delete names, before Directus nulls them (below). |
|
|
16
|
-
| `fm-endpoints` | endpoint | `/flows-manager/*`: the diff against the source, create/apply/duplicate/delete flows, operations by flow. Runs Directus' services with the caller's own accountability; only the source instance is reached over HTTP. |
|
|
16
|
+
| `fm-endpoints` | endpoint | `/flows-manager/*`: the diff against the source, create/apply/duplicate/delete flows, operations by flow, each flow's last logged run. Runs Directus' services with the caller's own accountability; only the source instance is reached over HTTP. |
|
|
17
17
|
|
|
18
18
|
Settings, read from the environment: `SOURCE_DIRECTUS_URL` and `SOURCE_ACCESS_TOKEN` (the instance to
|
|
19
19
|
compare with; without them the diff views are empty), `ENV`, and Directus' own `PUBLIC_URL`.
|
|
20
20
|
|
|
21
|
+
## The flow list
|
|
22
|
+
|
|
23
|
+
Each flow row shows:
|
|
24
|
+
|
|
25
|
+
- **Links:** "N flows" beside an outgoing arrow (the flows it runs with a Trigger Flow operation) and beside an incoming one (the flows
|
|
26
|
+
that run it). Each linked flow counts once, and both come from every flow, whatever the search
|
|
27
|
+
shows. Click one to list the flows and open them.
|
|
28
|
+
- **Last run:** "Last run 3 days ago", the full time in the admin's locale in the tooltip. Read from
|
|
29
|
+
`directus_activity` (the newest `run` row per flow, one aggregated read with the caller's
|
|
30
|
+
accountability). Directus logs a run only for a flow with tracking on (accountability "activity" or
|
|
31
|
+
"all"), so a flow with tracking off says **Not tracked**, and a tracked flow with no run in the log
|
|
32
|
+
says **No run logged** — it may still have run before tracking was on, or its runs were removed by
|
|
33
|
+
`FLOW_LOGS_RETENTION`.
|
|
34
|
+
|
|
21
35
|
## Tables
|
|
22
36
|
|
|
23
37
|
All under the data-model folder `dx_flows_manager`, all hidden from the Content module, all
|