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 73a3edb02 fix: jira generated plan having capitalized options (#6610)
73a3edb02 is described below

commit 73a3edb0269ae4beb69ebefd1a452b2a7a4bd5d6
Author: Klesh Wong <[email protected]>
AuthorDate: Mon Dec 11 12:36:45 2023 +0800

    fix: jira generated plan having capitalized options (#6610)
    
    * fix: jira generated plan having capitalized options
    
    * fix: TimeAfter to timeAfter
---
 backend/helpers/pluginhelper/api/api_collector_with_state.go |  2 +-
 backend/plugins/bitbucket/api/blueprint_V200_test.go         |  2 +-
 backend/plugins/jira/tasks/task_data.go                      | 10 +++++-----
 backend/plugins/zentao/api/blueprint_V200_test.go            |  2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/backend/helpers/pluginhelper/api/api_collector_with_state.go 
b/backend/helpers/pluginhelper/api/api_collector_with_state.go
index 47f653ccd..7cb85fa2f 100644
--- a/backend/helpers/pluginhelper/api/api_collector_with_state.go
+++ b/backend/helpers/pluginhelper/api/api_collector_with_state.go
@@ -43,7 +43,7 @@ type ApiCollectorStateManager struct {
 }
 
 type CollectorOptions struct {
-       TimeAfter string `json:"timeAfter,omitempty"`
+       TimeAfter string `json:"timeAfter,omitempty" mapstructure:"timeAfter"`
 }
 
 // NewStatefulApiCollector create a new ApiCollectorStateManager
diff --git a/backend/plugins/bitbucket/api/blueprint_V200_test.go 
b/backend/plugins/bitbucket/api/blueprint_V200_test.go
index b26ae731b..650c63f59 100644
--- a/backend/plugins/bitbucket/api/blueprint_V200_test.go
+++ b/backend/plugins/bitbucket/api/blueprint_V200_test.go
@@ -83,7 +83,7 @@ func TestMakeDataSourcePipelinePlanV200(t *testing.T) {
                                Options: map[string]interface{}{
                                        "fullName":     "likyh/likyhphp",
                                        "connectionId": uint64(1),
-                                       "TimeAfter":    "",
+                                       "timeAfter":    "",
                                },
                        },
                        {
diff --git a/backend/plugins/jira/tasks/task_data.go 
b/backend/plugins/jira/tasks/task_data.go
index 185eb4d43..6d9336e9b 100644
--- a/backend/plugins/jira/tasks/task_data.go
+++ b/backend/plugins/jira/tasks/task_data.go
@@ -26,11 +26,11 @@ import (
 )
 
 type JiraOptions struct {
-       ConnectionId         uint64                  `json:"connectionId"`
-       BoardId              uint64                  `json:"boardId"`
-       ScopeConfig          *models.JiraScopeConfig `json:"scopeConfig"`
-       ScopeConfigId        uint64
-       PageSize             int
+       ConnectionId         uint64                  `json:"connectionId" 
mapstructure:"connectionId"`
+       BoardId              uint64                  `json:"boardId" 
mapstructure:"boardId"`
+       ScopeConfig          *models.JiraScopeConfig `json:"scopeConfig" 
mapstructure:"scopeConfig"`
+       ScopeConfigId        uint64                  `json:"scopeConfigId" 
mapstructure:"scopeConfigId"`
+       PageSize             int                     `json:"pageSize" 
mapstructure:"pageSize"`
        api.CollectorOptions `mapstructure:",squash"`
 }
 
diff --git a/backend/plugins/zentao/api/blueprint_V200_test.go 
b/backend/plugins/zentao/api/blueprint_V200_test.go
index bb2dd7ca8..3830dfd5d 100644
--- a/backend/plugins/zentao/api/blueprint_V200_test.go
+++ b/backend/plugins/zentao/api/blueprint_V200_test.go
@@ -84,7 +84,7 @@ func TestMakeDataSourcePipelinePlanV200(t *testing.T) {
                                Options: map[string]interface{}{
                                        "ConnectionId": uint64(1),
                                        "projectId":    int64(1),
-                                       "TimeAfter":    "",
+                                       "timeAfter":    "",
                                },
                        },
                },

Reply via email to