go-rules temporarily disabled
This commit is contained in:
@@ -362,34 +362,41 @@ func InitAISummarizerStorage(conf AISummarizerConfig, log logger.Logger) *ai_sum
|
||||
}
|
||||
|
||||
// InitGoRulesClient initializes the GoRules SDK client.
|
||||
func InitGoRulesClient(conf GoRulesConfig, log logger.Logger) gorules.Client {
|
||||
if conf.BaseURL == "" || conf.Token == "" || conf.RuleID == "" {
|
||||
log.Warn("GoRules client not configured, falling back to static Kanban statuses", map[string]interface{}{})
|
||||
return nil
|
||||
}
|
||||
func InitGoRulesClient(_ GoRulesConfig, log logger.Logger) gorules.Client {
|
||||
// GoRules SDK temporarily disabled — gorulessdk private repo unreachable from server.
|
||||
// Kanban falls back to built-in bid workflow columns when client is nil.
|
||||
log.Warn("GoRules client disabled; Kanban uses built-in bid workflow columns", map[string]interface{}{})
|
||||
return nil
|
||||
|
||||
timeout := conf.Timeout
|
||||
if timeout <= 0 {
|
||||
timeout = 10 * time.Second
|
||||
}
|
||||
/*
|
||||
if conf.BaseURL == "" || conf.Token == "" || conf.RuleID == "" {
|
||||
log.Warn("GoRules client not configured, falling back to static Kanban statuses", map[string]interface{}{})
|
||||
return nil
|
||||
}
|
||||
|
||||
client, err := gorules.New(gorules.Config{
|
||||
BaseURL: conf.BaseURL,
|
||||
Token: conf.Token,
|
||||
Timeout: timeout,
|
||||
}, log)
|
||||
if err != nil {
|
||||
log.Error("Failed to initialize GoRules client", map[string]interface{}{
|
||||
"error": err.Error(),
|
||||
timeout := conf.Timeout
|
||||
if timeout <= 0 {
|
||||
timeout = 10 * time.Second
|
||||
}
|
||||
|
||||
client, err := gorules.New(gorules.Config{
|
||||
BaseURL: conf.BaseURL,
|
||||
Token: conf.Token,
|
||||
Timeout: timeout,
|
||||
}, log)
|
||||
if err != nil {
|
||||
log.Error("Failed to initialize GoRules client", map[string]interface{}{
|
||||
"error": err.Error(),
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
log.Info("GoRules client initialized successfully", map[string]interface{}{
|
||||
"base_url": conf.BaseURL,
|
||||
"timeout": timeout,
|
||||
"rule_id": conf.RuleID,
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
log.Info("GoRules client initialized successfully", map[string]interface{}{
|
||||
"base_url": conf.BaseURL,
|
||||
"timeout": timeout,
|
||||
"rule_id": conf.RuleID,
|
||||
})
|
||||
|
||||
return client
|
||||
return client
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user