From 14da37ddd47ee625107ff4d0d35bc8ce2c9c2648 Mon Sep 17 00:00:00 2001 From: Macey Baker Date: Tue, 27 Feb 2024 14:21:49 +0000 Subject: [PATCH 1/4] Add incident.io User source to template --- docs/backstage/pipelines/entries.jsonnet | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/backstage/pipelines/entries.jsonnet b/docs/backstage/pipelines/entries.jsonnet index 4434fbe..4e8f787 100644 --- a/docs/backstage/pipelines/entries.jsonnet +++ b/docs/backstage/pipelines/entries.jsonnet @@ -277,6 +277,13 @@ source: 'spec.memberOf', array: true, }, + // Include the below to connect your users within Backstage to users within Incident.io + { + id: 'user', + name: 'incident.io User', + type: 'User', + source: 'spec.profile.email', + }, ], }, From 15f25b4b41c0e179e123e6d7ec44fc3ff6439ec5 Mon Sep 17 00:00:00 2001 From: Macey Baker Date: Tue, 27 Feb 2024 14:23:30 +0000 Subject: [PATCH 2/4] Remove email --- docs/backstage/pipelines/entries.jsonnet | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/backstage/pipelines/entries.jsonnet b/docs/backstage/pipelines/entries.jsonnet index 4e8f787..fb2814f 100644 --- a/docs/backstage/pipelines/entries.jsonnet +++ b/docs/backstage/pipelines/entries.jsonnet @@ -264,12 +264,6 @@ ], }, attributes: [ - { - id: 'email', - name: 'Email', - type: 'String', - source: 'spec.profile.email', - }, { id: 'groups', name: 'Groups', From 7f217a9fad956485b443e19baf0c62ef454b9d4d Mon Sep 17 00:00:00 2001 From: Macey Baker Date: Tue, 27 Feb 2024 14:29:48 +0000 Subject: [PATCH 3/4] lowercase --- docs/backstage/pipelines/entries.jsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/backstage/pipelines/entries.jsonnet b/docs/backstage/pipelines/entries.jsonnet index fb2814f..958c7ac 100644 --- a/docs/backstage/pipelines/entries.jsonnet +++ b/docs/backstage/pipelines/entries.jsonnet @@ -271,7 +271,7 @@ source: 'spec.memberOf', array: true, }, - // Include the below to connect your users within Backstage to users within Incident.io + // Include the below to connect your users within Backstage to users within incident.io { id: 'user', name: 'incident.io User', From 77a2e2f67edb3987059d163d348c5b6032608943 Mon Sep 17 00:00:00 2001 From: Macey Baker Date: Tue, 27 Feb 2024 14:34:13 +0000 Subject: [PATCH 4/4] Update order of attributes --- docs/backstage/pipelines/entries.jsonnet | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/backstage/pipelines/entries.jsonnet b/docs/backstage/pipelines/entries.jsonnet index 958c7ac..eec9f98 100644 --- a/docs/backstage/pipelines/entries.jsonnet +++ b/docs/backstage/pipelines/entries.jsonnet @@ -264,6 +264,13 @@ ], }, attributes: [ + // Include this attribute to connect your users within Backstage to users within incident.io + { + id: 'user', + name: 'incident.io User', + type: 'User', + source: 'spec.profile.email', + }, { id: 'groups', name: 'Groups', @@ -271,13 +278,6 @@ source: 'spec.memberOf', array: true, }, - // Include the below to connect your users within Backstage to users within incident.io - { - id: 'user', - name: 'incident.io User', - type: 'User', - source: 'spec.profile.email', - }, ], },