narrowizard commented on code in PR #2182:
URL: https://github.com/apache/incubator-devlake/pull/2182#discussion_r896869878
##########
plugins/jira/models/connection.go:
##########
@@ -45,19 +45,27 @@ type JiraConnection struct {
RemotelinkCommitShaPattern string
`gorm:"type:varchar(255);comment='golang regexp, the first group will be
recognized as commit sha, ref https://github.com/google/re2/wiki/Syntax'"
json:"remotelinkCommitShaPattern"`
}
+func (JiraConnection) TableName() string {
+ return "_tool_jira_connections"
+}
+
type JiraIssueTypeMapping struct {
ConnectionID uint64 `gorm:"primaryKey" json:"jiraConnectionId"
validate:"required"`
UserType string `gorm:"type:varchar(50);primaryKey" json:"userType"
validate:"required"`
StandardType string `gorm:"type:varchar(50)" json:"standardType"
validate:"required"`
}
+func (JiraIssueTypeMapping) TableName() string {
Review Comment:
It reports an error that cannot find table `jira_issue_type_mappings` when
running issue extractor.
https://github.com/apache/incubator-devlake/blob/04e4a01d94c13a98b240628205f3ce3123f2a3ab/plugins/jira/tasks/issue_extractor.go#L44
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]