Skip to content

Commit b149015

Browse files
authored
Merge pull request #67 from hypercerts-org/fix/remove_projects_from_activities
2 parents 8204197 + b51dd76 commit b149015

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hypercerts-org/lexicon": minor
3+
---
4+
5+
Remove bidirectional project-activity link. Activities no longer include a `project` field reference. Projects continue to reference activities via the `activities` array, making the relationship unidirectional (project → activities only).

ERD.puml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ dataclass activity <<largeBold>> #B4E5D0 {
6565
contributions[]?
6666
locations[]?
6767
rights?
68-
project?
6968
createdAt
7069
!endif
7170
}
@@ -305,7 +304,6 @@ project::location --> location
305304
activity::contributions -l--> contribution
306305
activity::rights --> rights
307306
activity::locations --> location
308-
activity::project --> project
309307

310308
contribution::contributors --> contributor : made by
311309

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ Hypercerts-specific lexicons for tracking impact work and claims.
298298
| `contributions` | `array` || A strong reference to the contributions done to create the impact in the hypercerts | References must conform to `org.hypercerts.claim.contribution` |
299299
| `rights` | `ref` || A strong reference to the rights that this hypercert has | References must conform to `org.hypercerts.claim.rights` |
300300
| `locations` | `ref` || An array of strong references to the locations where the work for done hypercert was located | References must conform to `app.certified.location` |
301-
| `project` | `string` || A reference (AT-URI) to the project record that this activity is part of | References must conform to `org.hypercerts.claim.project` |
302301
| `createdAt` | `string` || Client-declared timestamp when this record was originally created | |
303302

304303
#### Defs
@@ -427,7 +426,7 @@ Hypercerts-specific lexicons for tracking impact work and claims.
427426

428427
**Lexicon ID:** `org.hypercerts.claim.project`
429428

430-
**Description:** A project that can include multiple activities, each of which may be linked to at most one project.
429+
**Description:** A project that can include multiple activities
431430

432431
**Key:** `tid`
433432

lexicons/org/hypercerts/claim/activity.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@
7676
"ref": "com.atproto.repo.strongRef"
7777
}
7878
},
79-
"project": {
80-
"type": "string",
81-
"format": "at-uri",
82-
"description": "A reference (AT-URI) to the project record that this activity is part of. The record referenced must conform with the lexicon org.hypercerts.claim.project. This activity must also be referenced by the project, establishing a bidirectional link."
83-
},
8479
"createdAt": {
8580
"type": "string",
8681
"format": "datetime",

lexicons/org/hypercerts/claim/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"defs": {
55
"main": {
66
"type": "record",
7-
"description": "A project that can include multiple activities, each of which may be linked to at most one project.",
7+
"description": "A project that can include multiple activities",
88
"key": "tid",
99
"record": {
1010
"type": "object",

0 commit comments

Comments
 (0)