{"format_version":1,"id":"copy","list_route":"/lists/copy","setup":true,"name":"Copy","plural":"Copies","picture":null,"builtin":true,"engine":"sync","columns":[ {"key":"not_answering","name":"Sync","type":"text","readonly":true,"fact":false}, {"key": "database", "name": "Database", "type": "text", "readonly": true, "fact": false}, {"key": "name", "name": "Device", "type": "text", "required": true, "readonly": true}, {"key": "kind", "name": "Kind", "type": "choice", "choices": ["phone", "tablet", "mac", "linux", "windows", "other"], "readonly": true, "labels": {"phone": "Phone", "tablet": "Tablet", "mac": "Mac", "linux": "Linux machine", "windows": "Windows machine", "other": "A device"}}, {"key": "role", "name": "Role", "type": "choice", "choices": ["this_device", "serving", "copy"], "readonly": true, "labels": {"this_device": "This device", "serving": "Serves this database", "copy": "Holds a copy"}}, {"key": "keeps", "name": "Keeps", "type": "choice", "choices": ["records_only", "records_and_media", "whole_file"], "readonly": true, "labels": {"records_only": "Keeps the records; pictures when opened", "records_and_media": "Keeps the records and pictures", "whole_file": "Keeps the whole database"}}, {"key": "behind", "name": "Behind", "type": "number", "readonly": true, "units": {"one": "1 change not yet here", "other": "{n} changes not yet here", "zero": "Up to date"}}, {"key": "behind_at_least", "name": "Behind", "type": "number", "readonly": true, "units": {"one": "at least 1 change not yet here", "other": "at least {n} changes not yet here"}}, {"key": "doing_now", "name": "Now", "type": "choice", "choices": ["idle", "pulling_changes", "fetching_bytes", "sending", "catching_up", "paused"], "readonly": true, "labels": {"idle": "Idle", "pulling_changes": "Reading changes", "fetching_bytes": "Fetching pictures", "sending": "Sending changes", "catching_up": "Catching up", "paused": "Waiting for the Mac"}}, {"key": "reach", "name": "Reachable", "type": "choice", "choices": ["reachable", "unreachable"], "readonly": true, "red_when": ["unreachable"], "labels": {"reachable": "Reachable", "unreachable": "Not reachable"}}, {"key": "unreachable_since", "name": "Not reachable since", "type": "date", "readonly": true, "fact": true, "reading": "not reachable since {datetime}"}, {"key": "last_heard_at", "name": "Last heard", "type": "date", "readonly": true, "format": "ago", "units": {"one": "heard {n}", "other": "heard {n}"}}, {"key": "synced_at", "name": "Synced", "type": "date", "readonly": true, "format": "ago", "units": {"one": "synced {n}", "other": "synced {n}"}, "shown_when": {"column": "role", "values": ["this_device"]}}, {"key": "changes_waiting", "name": "Waiting to send", "type": "number", "readonly": true, "units": {"one": "1 change waiting to send", "other": "{n} changes waiting to send"}, "shown_when": {"column": "role", "values": ["this_device"]}}, {"key": "storage_bytes", "name": "On this device", "type": "bytes", "readonly": true, "fact": true, "reading": "{value} on this device", "shown_when": {"column": "role", "values": ["this_device"]}}, {"key": "bytes_wanted", "name": "Not fetched yet", "type": "bytes", "readonly": true, "fact": true, "reading": "{value} of pictures not fetched yet", "shown_when": {"column": "role", "values": ["this_device"]}} ],"title":"name","date":null,"project":null,"order":null, "slip":{"title":"name","title_fallback":"kind","subtitle":["not_answering","behind","behind_at_least","changes_waiting","doing_now"],"with_names":false,"trailing":null,"photo":null,"toggle":null, "caption":{"columns":["role","synced_at","unreachable_since","last_heard_at"]}}, "tile":{"face":"slip-list"}, "page":[{"heading":null,"columns":["name","not_answering","role","keeps","behind","behind_at_least","doing_now","reach","unreachable_since","last_heard_at","synced_at","changes_waiting","storage_bytes","bytes_wanted"]}], "add":false,"empty":{"title":"No device holds a copy yet"},"delete":false, "instructions":"Every device holding a copy of this database, one line each: the Mac that serves it, this device, and each member's devices. A line says what the device keeps (the records only, the records and pictures, or the whole database), how far behind it is (changes the serving Mac has that it has not read yet), what it is doing now, whether it can be reached and when it was last heard from. This device's line also says when it last synced, how many of its own changes wait to send and what it holds. Everything is read from this device's own copy, so it answers offline; a fact this device has not observed is left unsaid, never guessed. The list is read only; Sync now on this device's line asks the serving Mac at once.", "parts": { "shape": "sheet", "head": {"facts": ["role", "kind"], "state": "reach"}, "links": [], "lists": [], "acts": {"main": "sync_now", "more": []}, "cards": [ {"column": "not_answering"}, {"column": "behind"}, {"column": "behind_at_least"}, {"column": "synced_at"}, {"column": "changes_waiting"}, {"column": "doing_now", "when": {"column": "doing_now", "values": ["pulling_changes", "fetching_bytes", "sending", "catching_up", "paused"]}}, {"column": "keeps", "object": "archive"}, {"column": "unreachable_since"}, {"column": "last_heard_at"}, {"column": "storage_bytes", "object": "figure"}, {"column": "bytes_wanted", "object": "figure"} ] }, "tables": [], "commands": [ {"id": "sync_now", "label": "Sync now", "object": "repeat", "kind": "update", "method": "sync.now", "when": {"role": "this_device"}, "receipt": "Syncing"} ]}