summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfr33domlover <fr33domlover@riseup.net>2019-07-11 19:23:35 +0300
committerfr33domlover <fr33domlover@riseup.net>2019-07-11 19:23:35 +0300
commitda47cf633b24af2314c63173c2f25afa171aac59 (patch)
tree17d1e8241ef13e83068779d7bafe7affb8aaec6d
parentdb71ba72afe1cbd3736800d59a41a19c85ac5dcf (diff)
Add TicketDependency type and properties dependencies and dependants
-rw-r--r--specification/forgefed-vocabulary.md66
1 files changed, 66 insertions, 0 deletions
diff --git a/specification/forgefed-vocabulary.md b/specification/forgefed-vocabulary.md
index 9bb9ee1..b5a5d1c 100644
--- a/specification/forgefed-vocabulary.md
+++ b/specification/forgefed-vocabulary.md
@@ -135,6 +135,36 @@ A Repository actor can use this Activity to notify followers of new changes.
}
```
+### TicketDependency
+
+**URI:** `https://forgefed.peers.community/ns#TicketDependency`
+
+**Notes:** Represents a relationship between 2 tickets, in which the resolution
+of one ticket requires the other ticket to be resolved too. It MUST specify the
+subject, object and relationship properties, and the relationship property MUST
+be "dependsOn".
+
+**Extends:** `Relationship`
+
+**Example:**
+
+```json
+{
+ "@context": [
+ "https://www.w3.org/ns/activitystreams",
+ "https://forgefed.peers.community/ns"
+ ],
+ "type": ["Relationship", "TicketDependency"],
+ "id": "https://example.dev/ticket-deps/2342593",
+ "attributedTo": "https://example.dev/alice",
+ "summary": "Alice's ticket depends on Bob's ticket",
+ "published": "2019-07-11T12:34:56Z",
+ "subject": "https://example.dev/alice/myproj/issues/42",
+ "relationship": "dependsOn",
+ "object": "https://dev.community/bob/coolproj/issues/85"
+}
+```
+
### Ticket
**URI:** `https://forgefed.peers.community/ns#Ticket`
@@ -235,3 +265,39 @@ they can't be resolved without this tickets being resolved too.
**Inverse of:** [dependsOn](#dependson)
**Example:**
+
+## dependencies
+
+**URI:** `https://forgefed.peers.community/ns#dependencies`
+
+**Notes:** Identifies a `Collection` of `TicketDependency` which specify
+tickets that this ticket depends on, i.e. this ticket is the `subject` of the
+`dependsOn` relationship.
+
+**Domain:** `Ticket`
+
+**Range:** `Collection` (of items of type `TicketDependency`)
+
+**Functional:** Yes
+
+**Inverse of:** (None)
+
+**Example:**
+
+## dependants
+
+**URI:** `https://forgefed.peers.community/ns#dependants`
+
+**Notes:** Identifies a `Collection` of `TicketDependency` which specify
+tickets that depends on this ticket, i.e. this ticket is the `object` of the
+`dependsOn` relationship. Often called "reverse dependencies".
+
+**Domain:** `Ticket`
+
+**Range:** `Collection` (of items of type `TicketDependency`)
+
+**Functional:** Yes
+
+**Inverse of:** (None)
+
+**Example:**