Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 signup: the person chooses the password and name on the confirm page 83c7aa6 2 weeks, 5 days ago History
follows.json · 1.9 KB · 45 lines
1{
2 "name": "follows",
3 "title": "Follows",
4 "version": 1,
5 "storage": "append",
6 "description": "A directed follower -> following edge between two accounts. A faithful port of the source system's Follow model, which used a database unique_together(follower, following) constraint. This package does not reconstruct that constraint server-side (no per-collection uniqueness check exists in this codebase's schema validation): the follow button in objects/site/profile.py checks for an existing edge client-side before creating one, but a determined caller of the raw records API could still create a duplicate row. \"storage\": \"append\" because this is a write-hot, never-edited edge log -- same shape as app-catalog's stock_moves and app-thread's thread_comments (docs/append-only-storage-design.md). Unfollow is a delete of the edge row, not a state flag -- the simplest thing that matches the source's directed-edge semantics without inventing a tombstone convention this package doesn't otherwise need.",
7 "fields": [
8 {
9 "name": "id"
10 },
11 {
12 "name": "follower_id",
13 "type": "text",
14 "required": true,
15 "label": "Follower",
16 "help": "The account doing the following."
17 },
18 {
19 "name": "following_id",
20 "type": "text",
21 "required": true,
22 "label": "Following",
23 "help": "The account being followed."
24 },
25 {
26 "name": "created_at",
27 "type": "datetime",
28 "label": "Created",
29 "read_only": true
30 },
31 {
32 "name": "owner_id",
33 "type": "text",
34 "label": "Owner",
35 "help": "Equal to follower_id: the follower owns the edge they created, so they alone can delete it (unfollow). The account being followed has no write access to someone else's follow row."
36 }
37 ],
38 "forms": {
39 "default": {"fields": ["follower_id", "following_id"]}
40 },
41 "views": {
42 "list_mode": "table",
43 "list_fields": ["follower_id", "following_id", "created_at"]
44 }
45}