Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
919339e4
Commit
919339e4
authored
Jun 25, 2019
by
Peter Leitzen
Committed by
Andreas Brandl
Jun 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert to `id: :integer`"
This reverts commit 51340f9b47e8339cdabce11d0a17ac724278bff0.
parent
34df0b30
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
db/migrate/20190513174947_enable_create_incident_issues_by_default.rb
...0190513174947_enable_create_incident_issues_by_default.rb
+19
-0
db/schema.rb
db/schema.rb
+3
-3
doc/user/project/integrations/prometheus.md
doc/user/project/integrations/prometheus.md
+1
-1
No files found.
db/migrate/20190513174947_enable_create_incident_issues_by_default.rb
0 → 100644
View file @
919339e4
# frozen_string_literal: true
class
EnableCreateIncidentIssuesByDefault
<
ActiveRecord
::
Migration
[
5.1
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
change_default_for
:create_issue
,
from:
false
,
to:
true
change_default_for
:send_email
,
from:
true
,
to:
false
end
private
def
change_default_for
(
column
,
from
:,
to
:)
change_column_default
:project_incident_management_settings
,
column
,
from:
from
,
to:
to
end
end
db/schema.rb
View file @
919339e4
...
...
@@ -2503,9 +2503,9 @@ ActiveRecord::Schema.define(version: 20190620112608) do
t
.
index
[
"project_id"
],
name:
"index_project_import_data_on_project_id"
,
using: :btree
end
create_table
"project_incident_management_settings"
,
primary_key:
"project_id"
,
id: :
integer
,
default:
ni
l
,
force: :cascade
do
|
t
|
t
.
boolean
"create_issue"
,
default:
fals
e
,
null:
false
t
.
boolean
"send_email"
,
default:
tru
e
,
null:
false
create_table
"project_incident_management_settings"
,
primary_key:
"project_id"
,
id: :
seria
l
,
force: :cascade
do
|
t
|
t
.
boolean
"create_issue"
,
default:
tru
e
,
null:
false
t
.
boolean
"send_email"
,
default:
fals
e
,
null:
false
t
.
text
"issue_template_key"
end
...
...
doc/user/project/integrations/prometheus.md
View file @
919339e4
...
...
@@ -160,7 +160,7 @@ receivers:
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ee/issues/4925) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 11.11.
Alerts can be used to trigger actions, like open an issue automatically. To configure the actions:
Alerts can be used to trigger actions, like open an issue automatically
(enabled by default since
`12.1`
)
. To configure the actions:
1.
Navigate to your project's
**Settings > Operations > Incidents**
.
1.
Enable the option to create issues.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment