Stored formats#
Everything NeuralUI stores, where, and how its format is versioned. When a format changes, bump its version, add a migration for the older version, and note it in the changelog.
What |
Where |
Version |
Migration |
|---|---|---|---|
Query history |
NeuralUI service: |
|
|
Share links |
the same slab, db |
|
as above; version 1 → 2 builds the |
Background jobs |
the same slab, dbs |
|
version 2 → 3 adds the (empty) dbs. A job running when the service stops is loaded as |
Admin action settings |
the same slab, db |
the record’s shape |
Settings naming the built-in actions by position ( |
Preferences |
Cortex user profile, |
|
|
Open tabs |
Cortex user profile, |
|
as above |
Saved queries |
|
|
|
Scrape sessions |
|
the note type |
|
HTTP sessions |
NeuralUI service (Synapse cell sessions) |
Synapse |
NeuralUI adds |
Records#
history key: user iden (16 bytes) + time (8 bytes, big endian ms) + 4 random bytes. Value (msgpack):
{query, mode, view, count, took, error, time}
shares key: the share id (11 url safe characters). Value (msgpack):
{kind: query|node, user, username, time, view, query, mode, title} # kind query
{kind: node, user, username, time, view, iden} # kind node
jobs key: the job iden (16 bytes). Value (msgpack):
{iden, user, label, query, batch, opts, status, started, finished, done, count, dropped, counts, error, resumed, saves}
status is running, done, cancelled, failed or interrupted; done is the batches finished.
jobdata key: the job iden (16 bytes) + a kind (1 byte) + a number (8 bytes, big endian). Kind i (number 0):
the inbound node idens. Kind n: [[iden, form], ...], the nodes first yielded since the last save; kind
m: [[kind, text], ...], its messages since then. The number is the job’s saves count at that save.
neuralui:tabs profile value:
{v, rev, writer, active, tabs: [{id, title, query, mode, kind, stormMode, limit, saved, scrape, view}]}
rev and writer detect two windows saving at once; view is the remembered table and graph state
(filter, collapsed sections, sorts, scroll, selection, graph positions).
neuralui:prefs profile value: {v, theme, view, time:zone, results:cap, colwidths, hiddencols, tagcols, tagcolors, notify, ...}.
Exports#
Exports are not stored by NeuralUI; their formats belong to Synapse (.nodes: the exportStorm
msgpack stream) and STIX 2.1.