PLAN.md and TEST.md: the Market import filled in from websites

Where things stand records how the import fills entries in and what it
skips; TEST.md gets checks for the "-url:" list and a run stopped by a
restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 07:23:26 -07:00
co-authored by Claude Opus 5.5
parent 32d69c4a80
commit 1bad4deed6
2 changed files with 29 additions and 1 deletions
+23 -1
View File
@@ -29,7 +29,7 @@ running a Federated Core can install as a CoreDesktop sibling.
| Teams and domains | A person can belong to several teams; each team works on **one website domain** (with its subdomains) (2026-11-25) | | Teams and domains | A person can belong to several teams; each team works on **one website domain** (with its subdomains) (2026-11-25) |
| Hosting (multi-tenant) | On a cloud, with **Garage** as the object storage we install, and the cloud's managed Postgres (2026-11-25) | | Hosting (multi-tenant) | On a cloud, with **Garage** as the object storage we install, and the cloud's managed Postgres (2026-11-25) |
## Where things stand (2026-11-30) ## Where things stand (2026-12-01)
**Every phase is built, 0–14**, Phase 12's part 5 (roles from the Core's **Every phase is built, 0–14**, Phase 12's part 5 (roles from the Core's
groups) included, and all of it is merged into `main` and pushed (the user groups) included, and all of it is merged into `main` and pushed (the user
@@ -76,6 +76,24 @@ Stripe data:
- The live data shows yearly Federated - Good renewals at $700 since July - The live data shows yearly Federated - Good renewals at $700 since July
2026 (it was $70, then $190 from March): for the user to confirm. 2026 (it was $70, then $190 from March): for the user to confirm.
**Market: importing a list filled in from the websites (2026-12-01).**
Market → Import takes a list of just websites and relationships (`url:`,
`website:`, or a bare address as the item; `Entry.UnmarshalYAML`) with
*Fill in the empty boxes from each website* ticked. `inventory.FillImport`
runs `Fill` on each, three sites at a time and up to 4 minutes each, and
saves straight into the Market (the user's choice, over drafts to review).
Entries already there, by name or website (`siteKey`: host without
`www.`, and path), and entries listed twice are skipped before their site
is read; a name found only by filling in is checked again before saving.
An entry with no name after filling isn't saved; one with a name whose
fill failed partway is saved, noted "only partly filled in". The plan's
limit on entries (`limitSources`) is kept, which the plain import still
doesn't do. It runs in the background under the lock `market-fill` (one
list at a time per team); its progress is the setting `market:fill`,
polled by the page (`/market/import/status`), and a run left "running"
with its lock free shows as stopped with the app. A hand-typed `-url:`
(no space after the dash) is read as `- url:`.
**Next: testing by hand with TEST.md**, in three passes: local, then **Next: testing by hand with TEST.md**, in three passes: local, then
server with the Core, then multi-tenant (TEST.md's table says which server with the Core, then multi-tenant (TEST.md's table says which
sections go with each pass). What the passes find gets fixed as it comes. sections go with each pass). What the passes find gets fixed as it comes.
@@ -351,6 +369,10 @@ the apps on a Federated Core), and the user re-labels them. The Federated list
ships as an example import file, `examples/federated-inventory.yaml`, not as a ships as an example import file, `examples/federated-inventory.yaml`, not as a
default. default.
A list can also be just websites and relationships: imported with *Fill
in the empty boxes from each website*, each entry is filled in from its
site as on New entry, and saved (2026-12-01; see Where things stand).
## 5. Phases ## 5. Phases
Each phase ends usable and with a release tag (`v0.x.0`). Each phase ends usable and with a release tag (`v0.x.0`).
+6
View File
@@ -188,6 +188,12 @@ Throughout, also notice:
the reason. the reason.
- [ ] Without the AI set up, the box can't be ticked; a list of websites - [ ] Without the AI set up, the box can't be ticked; a list of websites
only, imported without it, says to tick it. only, imported without it, says to tick it.
- [ ] A list typed with no space after the dashes (`-url: https://…`)
imports as if it had them; YAML that still isn't a list says each
entry starts with a dash and a space.
- [ ] Leave a list filling and restart the app (`./update.sh`): the
import page says it stopped after so many, and importing the list
again skips the ones added.
## 5. Content ## 5. Content