Welcome to mirror list, hosted at ThFree Co, Russian Federation.

group.md « actors « activitypub « development « doc - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dad022981704bb7ec74856a193faa337977b76ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
---
stage: Create
group: Source Code
info: "To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments"
---

# Activities for group actor **(EXPERIMENT)**

> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/127023) in GitLab 16.5 [with two flags](../../../administration/feature_flags.md) named `activity_pub` and `activity_pub_project`. Disabled by default. This feature is an [Experiment](../../../policy/experiment-beta-support.md).

FLAG:
On self-managed GitLab, by default this feature is not available. To make it available,
an administrator can [enable the feature flags](../../../administration/feature_flags.md)
named `activity_pub` and `activity_pub_project`.
On GitLab.com, this feature is not available.
The feature is not ready for production use.

This feature requires two feature flags:

- `activity_pub`: Enables or disables all ActivityPub-related features.
- `activity_pub_project`: Enables and disable ActivityPub features specific to
  projects. Requires the `activity_pub` flag to also be enabled.

## Profile

```javascript
{
  "@context": "https://www.w3.org/ns/activitystreams",
  "id": GROUP_URL,
  "type": "Group",
  "name": GROUP_NAME,
  "summary": GROUP_DESCRIPTION,
  "url": GROUP_URL,
  "outbox": GROUP_OUTBOX_URL,
  "inbox": null,
}
```

## Outbox

The various activities for a group are:

- [The group was created](#the-group-was-created).
- All project activities for projects in that group, and its subgroups.
- [A user joined the group](#a-user-joined-the-group).
- [A user left the group](#a-user-left-the-group).
- [The group was deleted](#the-group-was-deleted).
- [A subgroup was created](#a-subgroup-was-created).
- [A subgroup was deleted](#a-subgroup-was-deleted).

### The group was created

```javascript
{
  "id": GROUP_OUTBOX_URL#event_id,
  "type": "Create",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "actor": {
    "id": USER_PROFILE_URL,
    "type": "Person",
    "name": USER_NAME,
    "url": USER_PROFILE_URL,
  },
  "object": {
    "id": GROUP_URL,
    "type": "Group",
    "name": GROUP_NAME,
    "url": GROUP_URL,
  }
}
```

### A user joined the group

```javascript
{
  "id": GROUP_OUTBOX_URL#event_id,
  "type": "Join",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "actor": {
    "id": USER_PROFILE_URL,
    "type": "Person",
    "name": USER_NAME,
    "url": USER_PROFILE_URL,
  },
  "object": {
    "id": GROUP_URL,
    "type": "Group",
    "name": GROUP_NAME,
    "url": GROUP_URL,
  },
}
```

### A user left the group

```javascript
{
  "id": GROUP_OUTBOX_URL#event_id,
  "type": "Leave",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "actor": {
    "id": USER_PROFILE_URL,
    "type": "Person",
    "name": USER_NAME,
    "url": USER_PROFILE_URL,
  },
  "object": {
    "id": GROUP_URL,
    "type": "Group",
    "name": GROUP_NAME,
    "url": GROUP_URL,
  },
}
```

### The group was deleted

```javascript
{
  "id": GROUP_OUTBOX_URL#event_id,
  "type": "Delete",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "actor": {
    "id": USER_PROFILE_URL,
    "type": "Person",
    "name": USER_NAME,
    "url": USER_PROFILE_URL,
  },
  "object": {
    "id": GROUP_URL,
    "type": "Group",
    "name": GROUP_NAME,
    "url": GROUP_URL,
  }
}
```

### A subgroup was created

```javascript
{
  "id": GROUP_OUTBOX_URL#event_id,
  "type": "Create",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "actor": {
    "id": USER_PROFILE_URL,
    "type": "Person",
    "name": USER_NAME,
    "url": USER_PROFILE_URL,
  },
  "object": {
    "id": GROUP_URL,
    "type": "Group",
    "name": GROUP_NAME,
    "url": GROUP_URL,
    "context": {
    "id": PARENT_GROUP_URL,
    "type": "Group",
    "name": PARENT_GROUP_NAME,
    "url": PARENT_GROUP_URL,
    }
  }
}
```

### A subgroup was deleted

```javascript
{
  "id": GROUP_OUTBOX_URL#event_id,
  "type": "Delete",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "actor": {
    "id": USER_PROFILE_URL,
    "type": "Person",
    "name": USER_NAME,
    "url": USER_PROFILE_URL,
  },
  "object": {
    "id": GROUP_URL,
    "type": "Group",
    "name": GROUP_NAME,
    "url": GROUP_URL,
    "context": {
    "id": PARENT_GROUP_URL,
    "type": "Group",
    "name": PARENT_GROUP_NAME,
    "url": PARENT_GROUP_URL,
    }
  }
}
```