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
93711ff4
Commit
93711ff4
authored
May 05, 2020
by
Marcia Ramos
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ewh-update-chtsheet' into 'master'
Update rails cheat sheet See merge request gitlab-org/gitlab!30779
parents
5482eaf7
b6af35d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
...dministration/troubleshooting/gitlab_rails_cheat_sheet.md
+14
-0
No files found.
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
View file @
93711ff4
...
...
@@ -214,6 +214,20 @@ p.each do |project|
end
```
### Bulk update to disable the Slack Notification service
To disable notifications for all projects that have Slack service enabled, do:
```
ruby
# Grab all projects that have the Slack notifications enabled
p
=
Project
.
find_by_sql
(
"SELECT p.id FROM projects p LEFT JOIN services s ON p.id = s.project_id WHERE s.type = 'SlackService' AND s.active = true"
)
# Disable the service on each of the projects that were found.
p
.
each
do
|
project
|
project
.
slack_service
.
update_attribute
(
:active
,
false
)
end
```
## Wikis
### Recreate
...
...
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