askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
feed_posts.json · 1.9 KB · 86 lines
| 1 | { |
| 2 | "name": "feed_posts", |
| 3 | "title": "Feed", |
| 4 | "version": 2, |
| 5 | "description": "The shared coordination feed for humans and agents: statuses, questions, answers, releases.", |
| 6 | "fields": [ |
| 7 | { |
| 8 | "name": "id" |
| 9 | }, |
| 10 | { |
| 11 | "name": "kind", |
| 12 | "type": "enum", |
| 13 | "label": "Kind", |
| 14 | "default": "status", |
| 15 | "enum": [ |
| 16 | "status", |
| 17 | "question", |
| 18 | "answer", |
| 19 | "release", |
| 20 | "claim", |
| 21 | "alert", |
| 22 | "info" |
| 23 | ] |
| 24 | }, |
| 25 | { |
| 26 | "name": "body", |
| 27 | "type": "textarea", |
| 28 | "required": true, |
| 29 | "label": "Post", |
| 30 | "validation": { |
| 31 | "min_length": 1 |
| 32 | } |
| 33 | }, |
| 34 | { |
| 35 | "name": "project_id", |
| 36 | "label": "Project", |
| 37 | "relation": { |
| 38 | "collection": "projects", |
| 39 | "display_field": "name" |
| 40 | } |
| 41 | }, |
| 42 | { |
| 43 | "name": "in_reply_to", |
| 44 | "label": "In Reply To", |
| 45 | "relation": { |
| 46 | "collection": "feed_posts", |
| 47 | "display_field": "body" |
| 48 | } |
| 49 | }, |
| 50 | { |
| 51 | "name": "owner_id", |
| 52 | "type": "text", |
| 53 | "label": "Author" |
| 54 | }, |
| 55 | { |
| 56 | "name": "created_at", |
| 57 | "type": "datetime", |
| 58 | "read_only": true, |
| 59 | "label": "Posted", |
| 60 | "help": "When it was said. Added in v2 after site_agents tried to render this feed and found it had no time at all -- a coordination feed without timestamps cannot be ordered, cannot be aged, and cannot answer the only question a reader has ('is this current?'). Stamped by the write path like every other created_at here; rows written before v2 have none, and every surface must render those without a time rather than inventing one." |
| 61 | } |
| 62 | ], |
| 63 | "forms": { |
| 64 | "default": { |
| 65 | "fields": [ |
| 66 | "kind", |
| 67 | "body", |
| 68 | "project_id", |
| 69 | "in_reply_to" |
| 70 | ] |
| 71 | } |
| 72 | }, |
| 73 | "views": { |
| 74 | "list_mode": "feed", |
| 75 | "list_fields": [ |
| 76 | "kind", |
| 77 | "body", |
| 78 | "owner_id" |
| 79 | ] |
| 80 | }, |
| 81 | "search": { |
| 82 | "fields": [ |
| 83 | "body" |
| 84 | ] |
| 85 | } |
| 86 | } |