This is an automated email from the ASF dual-hosted git repository.
mappjzc 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 2fbaa4825 fix(comment): revert some ProjectKey to Key (#4445)
2fbaa4825 is described below
commit 2fbaa482562151d42f23b115c387eb4869ce6381
Author: Warren Chen <[email protected]>
AuthorDate: Fri Feb 17 19:23:31 2023 +0800
fix(comment): revert some ProjectKey to Key (#4445)
---
backend/helpers/e2ehelper/data_flow_tester.go | 2 +-
.../helpers/pluginhelper/api/apihelperabstract/connection_abstract.go | 2 +-
backend/helpers/pluginhelper/api/connection_auths.go | 2 +-
backend/plugins/bitbucket/tasks/deployment_extractor.go | 2 +-
backend/plugins/sonarqube/api/scope.go | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/backend/helpers/e2ehelper/data_flow_tester.go
b/backend/helpers/e2ehelper/data_flow_tester.go
index 380a8e1b2..7727c3273 100644
--- a/backend/helpers/e2ehelper/data_flow_tester.go
+++ b/backend/helpers/e2ehelper/data_flow_tester.go
@@ -368,7 +368,7 @@ func (t *DataFlowTester) VerifyTableWithRawData(dst
schema.Tabler, csvRelPath st
}
// VerifyTable reads rows from csv file and compare with records from database
one by one. You must specify the
-// Primary ProjectKey Fields with `pkFields` so DataFlowTester could select
the exact record from database, as well as which
+// Primary Key Fields with `pkFields` so DataFlowTester could select the exact
record from database, as well as which
// fields to compare with by specifying `targetFields` parameter. Leaving
`targetFields` empty/nil will compare all fields.
func (t *DataFlowTester) VerifyTable(dst schema.Tabler, csvRelPath string,
targetFields []string) {
t.VerifyTableWithOptions(dst, TableOptions{
diff --git
a/backend/helpers/pluginhelper/api/apihelperabstract/connection_abstract.go
b/backend/helpers/pluginhelper/api/apihelperabstract/connection_abstract.go
index baa59fe84..39feaad0d 100644
--- a/backend/helpers/pluginhelper/api/apihelperabstract/connection_abstract.go
+++ b/backend/helpers/pluginhelper/api/apihelperabstract/connection_abstract.go
@@ -77,7 +77,7 @@ type AccessTokenAuthenticator interface {
GetAccessTokenAuthenticator() ApiAuthenticator
}
-// AppKeyAuthenticator represents the API ProjectKey and Secret authentication
mechanism
+// AppKeyAuthenticator represents the API Key and Secret authentication
mechanism
type AppKeyAuthenticator interface {
GetAppKeyAuthenticator() ApiAuthenticator
}
diff --git a/backend/helpers/pluginhelper/api/connection_auths.go
b/backend/helpers/pluginhelper/api/connection_auths.go
index 5ff321caa..50c0973bb 100644
--- a/backend/helpers/pluginhelper/api/connection_auths.go
+++ b/backend/helpers/pluginhelper/api/connection_auths.go
@@ -69,7 +69,7 @@ func (at *AccessToken) GetAccessTokenAuthenticator()
apihelperabstract.ApiAuthen
return at
}
-// AppKey implements the API ProjectKey and Secret authentication mechanism
+// AppKey implements the API Key and Secret authentication mechanism
type AppKey struct {
AppId string `mapstructure:"appId" validate:"required" json:"appId"`
SecretKey string `mapstructure:"secretKey" validate:"required"
json:"secretKey" gorm:"serializer:encdec"`
diff --git a/backend/plugins/bitbucket/tasks/deployment_extractor.go
b/backend/plugins/bitbucket/tasks/deployment_extractor.go
index f3215a990..1b5fa12ea 100644
--- a/backend/plugins/bitbucket/tasks/deployment_extractor.go
+++ b/backend/plugins/bitbucket/tasks/deployment_extractor.go
@@ -29,7 +29,7 @@ import (
type bitbucketApiDeploymentsResponse struct {
Type string `json:"type"`
UUID string `json:"uuid"`
- //ProjectKey string `json:"key"`
+ //Key string `json:"key"`
//Step struct {
// UUID string `json:"uuid"`
//} `json:"step"`
diff --git a/backend/plugins/sonarqube/api/scope.go
b/backend/plugins/sonarqube/api/scope.go
index 57818c9d9..063020133 100644
--- a/backend/plugins/sonarqube/api/scope.go
+++ b/backend/plugins/sonarqube/api/scope.go
@@ -80,7 +80,7 @@ func PutScope(input *plugin.ApiResourceInput)
(*plugin.ApiResourceOutput, errors
// @Tags plugins/sonarqube
// @Accept application/json
// @Param connectionId path int false "connection ID"
-// @Param projectKey path string false "project ProjectKey"
+// @Param projectKey path string false "project Key"
// @Param scope body models.SonarqubeProject true "json"
// @Success 200 {object} models.SonarqubeProject
// @Failure 400 {object} shared.ApiBody "Bad Request"