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
842b1d74
Commit
842b1d74
authored
Jul 13, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Proc to model translation
parent
46484c6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
298 additions
and
487 deletions
+298
-487
app/models/alert_management/alert.rb
app/models/alert_management/alert.rb
+1
-1
db/structure.sql
db/structure.sql
+297
-486
No files found.
app/models/alert_management/alert.rb
View file @
842b1d74
...
...
@@ -58,7 +58,7 @@ module AlertManagement
validates
:fingerprint
,
allow_blank:
true
,
uniqueness:
{
scope: :project
,
conditions:
->
{
where
.
not
(
status:
STATUSES
[
:resolved
])
},
message:
_
(
'Cannot have multiple unresolved alerts'
)
message:
->
(
object
,
data
)
{
_
(
'Cannot have multiple unresolved alerts'
)
}
},
unless: :resolved?
validate
:hosts_length
...
...
db/structure.sql
View file @
842b1d74
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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