strom-research 1.36.0-beta.10 → 1.36.0-beta.11
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/CHANGELOG.cs.md +4 -1
- package/CHANGELOG.de.md +5 -2
- package/CHANGELOG.md +4 -2
- package/CHANGELOG.pl.md +4 -2
- package/dist/core/batches.js +24 -2
- package/dist/core/tree.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.cs.md
CHANGED
|
@@ -7,7 +7,7 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
|
|
|
7
7
|
|
|
8
8
|
## 1.36.0
|
|
9
9
|
|
|
10
|
-
*Připravuje se: bety do 1.36.0-beta.
|
|
10
|
+
*Připravuje se: bety do 1.36.0-beta.11. Oddíl bude úplný s vydáním.*
|
|
11
11
|
|
|
12
12
|
- **Zkouška hromadného ověření hned:** úkoly zkoušky hromadného ověření (`strom verify bulk --try`) stojí na začátku
|
|
13
13
|
fronty – vezme je příští sezení – a aplikace Strom je dá zpracovat hned, každý úkol jedno sezení, odkazem, který úkoly
|
|
@@ -87,6 +87,9 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
|
|
|
87
87
|
jednotlivými částmi. Starší aplikace Strom posílá jako dřív, jen rychleji.
|
|
88
88
|
Soubor dávky, který při jejím uzavření drží jiný program (antivir, synchronizace nebo zálohování), už není chyba:
|
|
89
89
|
nic se neztratí, aplikace Strom chvíli počká a dozví se proč a výzkum soubory dávky za chvíli zapíše sám.
|
|
90
|
+
Dávka uzavřená bez třídění, jejíž soubory se roztřídily v aplikaci Strom (Roztřídit agentem…), už v menu aplikace
|
|
91
|
+
nezůstává „neroztříděná“: soubor, kterým třídění prošlo až do konce, se počítá jako roztříděný – i ve výzkumu
|
|
92
|
+
roztříděném takto dřív, aniž se v něm cokoli změní.
|
|
90
93
|
Aplikace Strom ukáže v Materiálech importované soubory rodokmenu (GEDCOM, JSON
|
|
91
94
|
aplikace) a smaže je natrvalo jako každý soubor materiálu; ten, ze kterého vznikl pramen, jen spolu s tímto pramenem,
|
|
92
95
|
v jednom kroku s jedním potvrzením (`strom input delete … --retract-sources`).
|
package/CHANGELOG.de.md
CHANGED
|
@@ -7,7 +7,7 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
|
|
|
7
7
|
|
|
8
8
|
## 1.36.0
|
|
9
9
|
|
|
10
|
-
*In Vorbereitung: die Betas bis 1.36.0-beta.
|
|
10
|
+
*In Vorbereitung: die Betas bis 1.36.0-beta.11. Der Abschnitt ist mit dem Release vollständig.*
|
|
11
11
|
|
|
12
12
|
- **Ein Versuch der Sammelprüfung sofort:** Die Aufgaben eines Versuchs der Sammelprüfung (`strom verify bulk --try`)
|
|
13
13
|
stehen am Anfang der Warteschlange – die nächste Sitzung nimmt sie –, und die Strom-App lässt sie sofort bearbeiten,
|
|
@@ -101,7 +101,10 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
|
|
|
101
101
|
während ein arbeitender Agent zwischen den Teilen an die Forschung kommt. Eine ältere Strom-App sendet wie bisher, nur
|
|
102
102
|
schneller. Eine Datei eines Stapels, die beim Abschließen ein anderes Programm hält (Virenschutz, Synchronisierung
|
|
103
103
|
oder Sicherung), ist kein Fehler mehr: nichts geht verloren, die Strom-App wartet kurz und erfährt warum, und die
|
|
104
|
-
Forschung schreibt die Dateien des Stapels kurz darauf von selbst.
|
|
104
|
+
Forschung schreibt die Dateien des Stapels kurz darauf von selbst. Ein ohne Sortieren abgeschlossener Stapel, dessen
|
|
105
|
+
Dateien in der Strom-App sortiert wurden („Mit dem Agenten sortieren…“), bleibt im Menü der App nicht mehr
|
|
106
|
+
„unsortiert“: eine Datei, die eine Sortierung bis zum Ende durchlaufen hat, zählt als sortiert – auch in einer so
|
|
107
|
+
früher sortierten Forschung, ohne dass sich darin etwas ändert.
|
|
105
108
|
Die Strom-App zeigt die importierten Stammbaumdateien (GEDCOM, JSON der
|
|
106
109
|
App) im Material und löscht sie endgültig wie jede Datei des Materials; eine, aus der eine Quelle entstand, nur
|
|
107
110
|
zusammen mit dieser Quelle, in einem Schritt mit einer Bestätigung (`strom input delete … --retract-sources`).
|
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ The changes of each version in short. The full notes and the install lines are o
|
|
|
7
7
|
|
|
8
8
|
## 1.36.0
|
|
9
9
|
|
|
10
|
-
*In preparation: the betas up to 1.36.0-beta.
|
|
10
|
+
*In preparation: the betas up to 1.36.0-beta.11. The section is complete with the release.*
|
|
11
11
|
|
|
12
12
|
- **A try of the bulk verification at once:** the tasks of a try of the bulk verification (`strom verify bulk --try`)
|
|
13
13
|
stand first in the queue — the next session takes them — and the Strom app can have them worked on at once, one
|
|
@@ -91,7 +91,9 @@ The changes of each version in short. The full notes and the install lines are o
|
|
|
91
91
|
to the app — while an agent at work gets the research between the parts. An older Strom app sends as before, only
|
|
92
92
|
faster. A file of a batch that another program holds while the batch is closed (an antivirus, a sync or a backup)
|
|
93
93
|
is no longer an error: nothing is lost, the Strom app waits a moment and is told why, and the research writes the
|
|
94
|
-
batch's files by itself a while later.
|
|
94
|
+
batch's files by itself a while later. A batch closed unsorted whose files were sorted in the Strom app (Sort with
|
|
95
|
+
the agent…) no longer stays “not sorted” in the app's menu: a file a sort went through to its end counts as sorted —
|
|
96
|
+
in a research sorted so before too, with nothing in it changed.
|
|
95
97
|
The Strom app shows the imported family tree files (GEDCOM, the app's JSON)
|
|
96
98
|
in Materials and deletes them for good as any file of the material; one a source was made of only together with that
|
|
97
99
|
source, in one step with one confirmation (`strom input delete … --retract-sources`).
|
package/CHANGELOG.pl.md
CHANGED
|
@@ -7,7 +7,7 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
|
|
|
7
7
|
|
|
8
8
|
## 1.36.0
|
|
9
9
|
|
|
10
|
-
*W przygotowaniu: bety do 1.36.0-beta.
|
|
10
|
+
*W przygotowaniu: bety do 1.36.0-beta.11. Sekcja będzie kompletna z wydaniem.*
|
|
11
11
|
|
|
12
12
|
- **Próba zbiorczej weryfikacji od razu:** zadania próby zbiorczej weryfikacji (`strom verify bulk --try`) stoją na
|
|
13
13
|
początku kolejki – weźmie je następna sesja – a aplikacja Strom pozwala przerobić je od razu, każde zadanie w jednej
|
|
@@ -92,7 +92,9 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
|
|
|
92
92
|
powiadomienie aplikacji – a pracujący agent dostaje się do badania między częściami. Starsza aplikacja Strom wysyła
|
|
93
93
|
jak dotąd, tylko szybciej. Plik paczki, który przy jej zamykaniu zajmuje inny program (antywirus, synchronizacja lub
|
|
94
94
|
kopia zapasowa), nie jest już błędem: nic nie ginie, aplikacja Strom chwilę czeka i dowiaduje się dlaczego, a badanie
|
|
95
|
-
samo zapisuje pliki paczki chwilę później.
|
|
95
|
+
samo zapisuje pliki paczki chwilę później. Paczka zamknięta bez porządkowania, której pliki uporządkowano w aplikacji
|
|
96
|
+
Strom, nie pozostaje już w menu aplikacji „nieuporządkowana”: plik, przez który porządkowanie przeszło do końca,
|
|
97
|
+
liczy się jako uporządkowany – także w badaniu uporządkowanym tak wcześniej, bez żadnej zmiany w nim.
|
|
96
98
|
Aplikacja Strom pokazuje w Materiałach zaimportowane pliki drzewa
|
|
97
99
|
genealogicznego (GEDCOM, JSON aplikacji) i usuwa je na stałe jak każdy plik materiałów; ten, z którego powstało
|
|
98
100
|
źródło, tylko razem z tym źródłem, w jednym kroku z jednym potwierdzeniem (`strom input delete … --retract-sources`).
|
package/dist/core/batches.js
CHANGED
|
@@ -12,6 +12,7 @@ import { phrase } from "./phrases.js";
|
|
|
12
12
|
import { actsAsArchive } from "./state.js";
|
|
13
13
|
import { UsageError } from "./errors.js";
|
|
14
14
|
import { costPartial, sessionCost } from "./session.js";
|
|
15
|
+
import { listSorts } from "./sort.js";
|
|
15
16
|
/** A batch's mark, as the app makes it (a UUID, or letters, digits and "-"). */
|
|
16
17
|
export const BATCH_ID = /^[A-Za-z0-9-]{8,64}$/;
|
|
17
18
|
/** Where tasks to sort a batch come from. */
|
|
@@ -263,17 +264,38 @@ export function phoneBatch(root, id, fresh) {
|
|
|
263
264
|
}
|
|
264
265
|
return at;
|
|
265
266
|
}
|
|
266
|
-
/**
|
|
267
|
+
/**
|
|
268
|
+
* The files a sort of the material went through to its end (done, its files read: with a proposal or without one) — a
|
|
269
|
+
* file of a batch closed unsorted that the person had sorted in the Strom app (POST /material/sort) or by
|
|
270
|
+
* `strom material sort` is sorted, though nothing of the sort is written into the research. Found when read, from the
|
|
271
|
+
* sorts kept in .strom/sorts, so a research whose app sorted its batches before says so with no change of its data.
|
|
272
|
+
* A sort queued, at work, failed or cancelled sorted nothing.
|
|
273
|
+
*/
|
|
274
|
+
export function filesSortedBySorts(root) {
|
|
275
|
+
const out = new Set();
|
|
276
|
+
for (const s of listSorts(root))
|
|
277
|
+
if (s.state === "done")
|
|
278
|
+
for (const id of s.files)
|
|
279
|
+
out.add(id);
|
|
280
|
+
return out;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* The batches for the app (/status batches): each with how far it is sorted — the last 30 days', and any not sorted yet.
|
|
284
|
+
* A file is sorted when its batch's sorting (strom input sort, a reading, media) moved it on, or a sort of the material
|
|
285
|
+
* went through it to its end (filesSortedBySorts).
|
|
286
|
+
*/
|
|
267
287
|
export function batchStatus(tree) {
|
|
268
288
|
const month = Date.now() - 30 * 24 * 60 * 60_000;
|
|
269
289
|
// In an archive (or a research waiting for its agent) a batch is kept as it came: nothing sorts it, so it is no
|
|
270
290
|
// batch "waiting to be sorted" — said as `kept`, and gone from the list after a month like a sorted one.
|
|
271
291
|
const kept = actsAsArchive(tree);
|
|
272
292
|
const out = [];
|
|
293
|
+
let bySorts;
|
|
273
294
|
for (const b of listBatches(tree.root)) {
|
|
274
295
|
// a file deleted for good is no file of the batch any more
|
|
275
296
|
const inputs = b.inputs.map((i) => tree.get(i)).filter((i) => !!i && i.retracted?.reason !== "deleted");
|
|
276
|
-
|
|
297
|
+
// the sorts are read only when a batch has a file its own sorting did not move on (once for all batches)
|
|
298
|
+
const sorted = inputs.filter((i) => i.sorted || i.state !== "new" || (bySorts ??= filesSortedBySorts(tree.root)).has(i.id)).length;
|
|
277
299
|
if (Date.parse(b.updated) < month && (kept || sorted === inputs.length))
|
|
278
300
|
continue;
|
|
279
301
|
const persons = [...new Set(inputs.flatMap((i) => [...(i.persons ?? []), ...(i.sorted?.persons ?? [])]))];
|
package/dist/core/tree.js
CHANGED
|
@@ -32,7 +32,7 @@ export const TREE_FILE = "strom.json";
|
|
|
32
32
|
export const SEAL_FOREIGN = "seal.foreign";
|
|
33
33
|
// between releases the candidate being made (a bridge run from the sources says what it is: the Strom app goes by it);
|
|
34
34
|
// at a release the release's own (package.json)
|
|
35
|
-
export const VERSION = "1.36.0-beta.
|
|
35
|
+
export const VERSION = "1.36.0-beta.11";
|
|
36
36
|
/** What a new research is settled with from the start: nothing an older strom counted otherwise to set right in it. */
|
|
37
37
|
export const NEW_TREE_SETTLED = ["readers-1", "proven-originals-1", "origins-1", "verify-originals-1", "origins-tree-1", "name-status-1"];
|
|
38
38
|
const GITIGNORE = `# Strom Research — local state and large files are not versioned
|
package/package.json
CHANGED