@bakers-build/addon-remote-drupal 0.11.1-next.3 → 0.11.1-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.js +10 -1
- package/package.json +5 -5
package/dist/src/index.js
CHANGED
|
@@ -172,7 +172,7 @@ export class DrupalBbRemote {
|
|
|
172
172
|
// workspace_id` include resolves the ticket's project AND its workspace
|
|
173
173
|
// in the SAME request — a `bb_project` belongs to a `bb_group` (the
|
|
174
174
|
// OG group), and a `bb_group` belongs to a `bb_workspace`.
|
|
175
|
-
const doc = (await this.api.get(`bb_ticket/bb_ticket/${uuid}?include=labels,environments,ticket_type,recipe,project_id.group_id.workspace_id`));
|
|
175
|
+
const doc = (await this.api.get(`bb_ticket/bb_ticket/${uuid}?include=labels,environments,ticket_type,recipe,project_id.group_id.workspace_id,conductor_id.owner_user_id`));
|
|
176
176
|
const attrs = doc.data?.attributes ?? {};
|
|
177
177
|
const issueUrl = typeof attrs.origin === 'string' ? attrs.origin : undefined;
|
|
178
178
|
const included = Array.isArray(doc.included) ? doc.included : [];
|
|
@@ -224,8 +224,17 @@ export class DrupalBbRemote {
|
|
|
224
224
|
const workspaceName = typeof workspace?.attributes?.name === 'string'
|
|
225
225
|
? workspace.attributes.name
|
|
226
226
|
: undefined;
|
|
227
|
+
const owner = ref((() => {
|
|
228
|
+
const c = ref(doc.data, 'conductor_id');
|
|
229
|
+
return c ? byId.get(`${c.type}:${c.id}`) : undefined;
|
|
230
|
+
})(), 'owner_user_id');
|
|
231
|
+
const ownerAttrs = owner
|
|
232
|
+
? byId.get(`${owner.type}:${owner.id}`)?.attributes
|
|
233
|
+
: undefined;
|
|
234
|
+
const conductorOwner = [ownerAttrs?.display_name, ownerAttrs?.name].find((n) => typeof n === 'string' && n !== '');
|
|
227
235
|
return {
|
|
228
236
|
uuid: doc.data?.id ?? uuid,
|
|
237
|
+
...(conductorOwner ? { conductorOwner } : {}),
|
|
229
238
|
identifier: typeof attrs.identifier === 'string' ? attrs.identifier : uuid,
|
|
230
239
|
title: typeof attrs.title === 'string' ? attrs.title : '',
|
|
231
240
|
state: typeof attrs.state === 'string' ? attrs.state : '',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-remote-drupal",
|
|
3
|
-
"version": "0.11.1-next.
|
|
3
|
+
"version": "0.11.1-next.5",
|
|
4
4
|
"description": "bakers.build conductor remote addon: the Drupal/JSON:API control-plane remote.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"dropsh": "^0.8.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@bakers-build/conductor": "^0.11.1-next.
|
|
28
|
-
"@bakers-build/core": "^0.11.1-next.
|
|
29
|
-
"@bakers-build/message": "^0.11.1-next.
|
|
27
|
+
"@bakers-build/conductor": "^0.11.1-next.5",
|
|
28
|
+
"@bakers-build/core": "^0.11.1-next.5",
|
|
29
|
+
"@bakers-build/message": "^0.11.1-next.5"
|
|
30
30
|
},
|
|
31
31
|
"bakersBuild": {
|
|
32
|
-
"commit": "
|
|
32
|
+
"commit": "d7535c4db571b4de2a9929185070384a00907595",
|
|
33
33
|
"channel": "next"
|
|
34
34
|
}
|
|
35
35
|
}
|