summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorRomain <romdum@users.noreply.github.com>2021-10-04 00:46:44 +0200
committerGitHub <noreply@github.com>2021-10-03 18:46:44 -0400
commitfc5ee1edf90eb826a67921bb8d5c6b3e8c746225 (patch)
tree92f9987a5ecab529f23f17f07bf52a1cd9a35e08 /modules/setting/setting.go
parent89ddbe9699aa2471af34d0e093e6631711482d89 (diff)
downloadgitea-fc5ee1edf90eb826a67921bb8d5c6b3e8c746225.tar.gz
gitea-fc5ee1edf90eb826a67921bb8d5c6b3e8c746225.zip
Add metrics to get issues by label (#17201)
* Add metrics to get issues by label * Add comment on IssueByLabelCount * Code review - Unify "AS" in SQL (#17201) * Code review - Remove useless join (#17201) * Code review - Disable issue_by_label by default in settings (#17201) * use e * restore empty line * update docs Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index afd1e49aed..bdb3b1fd7b 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -390,11 +390,13 @@ var (
// Metrics settings
Metrics = struct {
- Enabled bool
- Token string
+ Enabled bool
+ Token string
+ EnabledIssueByLabel bool
}{
- Enabled: false,
- Token: "",
+ Enabled: false,
+ Token: "",
+ EnabledIssueByLabel: false,
}
// I18n settings