Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm

Bikeshed: many-to-many small follow-up #16

merged opened by bad-example.com targeting main from m2m-bikeshed

the derives came in from base64 in tangled#7, whic was removed.

the cursor is a composite, but we might have other composite cursors that are different -- renaming this one to reflect its specific purpose.

Labels

None yet.

Participants 1
AT URI
at://did:plc:hdhoaan3xa3jiuq4fg4mefid/sh.tangled.repo.pull/3mfk27yrzww22
+10 -7
Interdiff #1 #2
+1
constellation/src/lib.rs
··· 59 } 60 61 #[derive(Debug, Serialize, PartialEq)] 62 pub struct ManyToManyItem { 63 link_record: RecordId, 64 other_subject: String,
··· 59 } 60 61 #[derive(Debug, Serialize, PartialEq)] 62 + #[serde(rename_all = "camelCase")] 63 pub struct ManyToManyItem { 64 link_record: RecordId, 65 other_subject: String,
constellation/src/server/mod.rs

This file has not been changed.

constellation/src/storage/mem_store.rs

This file has not been changed.

constellation/src/storage/mod.rs

This file has not been changed.

constellation/src/storage/rocks_store.rs

This file has not been changed.

constellation/templates/get-many-to-many.html.j2

This file has not been changed.

constellation/templates/hello.html.j2

This file has not been changed.

+9 -7
lexicons/blue.microcosm/links/getManyToMany.json
··· 4 "defs": { 5 "main": { 6 "type": "query", 7 - "description": "Get records that link to a primary subject along with the secondary subjects they also reference", 8 "parameters": { 9 "type": "params", 10 "required": ["subject", "source", "pathToOther"], ··· 22 "type": "string", 23 "description": "path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')" 24 }, 25 - "did": { 26 "type": "array", 27 - "description": "filter links to those from specific users", 28 "items": { 29 "type": "string", 30 "format": "did" ··· 68 }, 69 "item": { 70 "type": "object", 71 - "required": ["link", "subject"], 72 "properties": { 73 - "link": { 74 "type": "ref", 75 - "ref": "#linkRecord" 76 }, 77 - "subject": { 78 "type": "string" 79 } 80 }
··· 4 "defs": { 5 "main": { 6 "type": "query", 7 + "description": "Get records that link out to both a primary and secondary subject", 8 "parameters": { 9 "type": "params", 10 "required": ["subject", "source", "pathToOther"], ··· 22 "type": "string", 23 "description": "path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')" 24 }, 25 + "linkDid": { 26 "type": "array", 27 + "description": "filter linking records from specific users", 28 "items": { 29 "type": "string", 30 "format": "did" ··· 68 }, 69 "item": { 70 "type": "object", 71 + "required": ["linkRecord", "otherSubject"], 72 "properties": { 73 + "linkRecord": { 74 "type": "ref", 75 + "ref": "#linkRecord", 76 + "description": "reference to the link record itself" 77 }, 78 + "otherSubject": { 79 + "description": "the secondary subject from the link record", 80 "type": "string" 81 } 82 }

History

5 rounds 0 comments
sign up or login to add to the discussion
6 commits
expand
clean up dervive traits, specific cursor name
bikeshed did filter name for m2m queries
remove some prints
ManyToManyItem and set default "try-it": listitems
update lexicon
add _idx suffix for clarity (thanks maxh!) +fwd->o
expand 0 comments
pull request successfully merged
5 commits
expand
clean up dervive traits, specific cursor name
bikeshed did filter name for m2m queries
remove some prints
ManyToManyItem and set default "try-it": listitems
update lexicon
expand 0 comments
5 commits
expand
clean up dervive traits, specific cursor name
bikeshed did filter name for m2m queries
remove some prints
ManyToManyItem and set default "try-it": listitems
update lexicon
expand 0 comments
4 commits
expand
clean up dervive traits, specific cursor name
bikeshed did filter name for m2m queries
remove some prints
ManyToManyItem and set default "try-it": listitems
expand 0 comments
2 commits
expand
clean up dervive traits, specific cursor name
bikeshed did filter name for m2m queries
expand 0 comments