This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 162ad68ab fix: pagerduty remote scopes missing fullName (#6218)
162ad68ab is described below

commit 162ad68ab353ad1d83b6f2f8f6a803e6c216823d
Author: Klesh Wong <[email protected]>
AuthorDate: Wed Oct 11 15:32:53 2023 +0800

    fix: pagerduty remote scopes missing fullName (#6218)
---
 backend/plugins/pagerduty/api/remote.go | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/backend/plugins/pagerduty/api/remote.go 
b/backend/plugins/pagerduty/api/remote.go
index 21bfa8a4d..056d09e3a 100644
--- a/backend/plugins/pagerduty/api/remote.go
+++ b/backend/plugins/pagerduty/api/remote.go
@@ -39,6 +39,7 @@ type RemoteScopesChild struct {
        Id       string      `json:"id"`
        Name     string      `json:"name"`
        Data     interface{} `json:"data"`
+       FullName string      `json:"fullName"` // temporary fix, to adopt 
remote scope helper
 }
 
 type RemoteScopesOutput struct {
@@ -127,9 +128,10 @@ func RemoteScopes(input *plugin.ApiResourceInput) 
(*plugin.ApiResourceOutput, er
        // append service to output
        for _, service := range response.Services {
                child := RemoteScopesChild{
-                       Type: TypeScope,
-                       Id:   service.Id,
-                       Name: service.Name,
+                       Type:     TypeScope,
+                       Id:       service.Id,
+                       Name:     service.Name,
+                       FullName: service.Name,
                        Data: models.Service{
                                Url:  service.HtmlUrl,
                                Id:   service.Id,

Reply via email to