Skip to content

Commit

Permalink
fix: rename JIRA_JQL_CHANGE_DETECTION to JIRA_JQL_AUTO_FULL_REFRESH
Browse files Browse the repository at this point in the history
  • Loading branch information
abeizn committed Aug 26, 2024
1 parent 4d481f8 commit 1a4bae1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/plugins/jira/tasks/board_filter_begin_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func CollectBoardFilterBegin(taskCtx plugin.SubTaskContext) errors.Error {
// change
if record.Jql != jql {
cfg := taskCtx.GetConfigReader()
flag := cfg.GetBool("JIRA_JQL_CHANGE_DETECTION")
flag := cfg.GetBool("JIRA_JQL_AUTO_FULL_REFRESH")
if flag {
logger.Info("connection_id:%d board_id:%d filter jql has changed, And the previous jql is %s, now jql is %s, run it in fullSync mode", data.Options.ConnectionId, data.Options.BoardId, record.Jql, jql)
// set full sync
Expand Down
2 changes: 1 addition & 1 deletion backend/plugins/jira/tasks/board_filter_end_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func CollectBoardFilterEnd(taskCtx plugin.SubTaskContext) errors.Error {

if record.Jql != jql {
cfg := taskCtx.GetConfigReader()
flag := cfg.GetBool("JIRA_JQL_CHANGE_DETECTION")
flag := cfg.GetBool("JIRA_JQL_AUTO_FULL_REFRESH")
if !flag {
return errors.Default.New(fmt.Sprintf("connection_id:%d board_id:%d filter jql has changed, please use fullSync mode. And the previous jql is %s, now jql is %s", data.Options.ConnectionId, data.Options.BoardId, record.Jql, jql))
}
Expand Down

0 comments on commit 1a4bae1

Please sign in to comment.