Commit d3ff1e07 authored by Lucas Charles's avatar Lucas Charles Committed by Evan Read

Add section to dev docs on accessing chatops

closes 62127
parent 02aee270
---
title: Add section to dev docs on accessing chatops
merge_request: 28623
author:
type: other
...@@ -20,6 +20,7 @@ description: 'Learn how to contribute to GitLab.' ...@@ -20,6 +20,7 @@ description: 'Learn how to contribute to GitLab.'
- [Automatic CE->EE merge](automatic_ce_ee_merge.md) - [Automatic CE->EE merge](automatic_ce_ee_merge.md)
- [Guidelines for implementing Enterprise Edition features](ee_features.md) - [Guidelines for implementing Enterprise Edition features](ee_features.md)
- [Security process for developers](https://gitlab.com/gitlab-org/release/docs/blob/master/general/security/developer.md#security-releases-critical-non-critical-as-a-developer) - [Security process for developers](https://gitlab.com/gitlab-org/release/docs/blob/master/general/security/developer.md#security-releases-critical-non-critical-as-a-developer)
- [Requesting access to Chatops on GitLab.com](chatops_on_gitlabcom.md#requesting-access) (for GitLabbers)
## UX and frontend guides ## UX and frontend guides
......
# Chatops on GitLab.com
Chatops on GitLab.com allows GitLabbers to run various automation tasks on GitLab.com using Slack.
## Requesting access
GitLabbers may need access to Chatops on GitLab.com for administration tasks such as:
- Configuring feature flags on staging.
- Running `EXPLAIN` queries against the GitLab.com production replica.
To request access to Chatops on GitLab.com:
1. Log into <https://ops.gitlab.net/users/sign_in> using the same username as for GitLab.com.
1. Ask [anyone in the `chatops` project](https://gitlab.com/gitlab-com/chatops/project_members) to add you by running `/chatops run member add <username> gitlab-com/chatops --ops`.
## See also
- [Chatops Usage](https://docs.gitlab.com/ee/ci/chatops/README.html)
- [Understanding EXPLAIN plans](understanding_explain_plans.md)
- [Feature Groups](feature_flags.md#feature-groups)
...@@ -20,7 +20,7 @@ dynamic (querying the DB etc.). ...@@ -20,7 +20,7 @@ dynamic (querying the DB etc.).
Once defined in `lib/feature.rb`, you will be able to activate a Once defined in `lib/feature.rb`, you will be able to activate a
feature for a given feature group via the [`feature_group` param of the features API](../api/features.md#set-or-create-a-feature) feature for a given feature group via the [`feature_group` param of the features API](../api/features.md#set-or-create-a-feature)
For GitLab.com, team members have access to feature flags through chatops. Only For GitLab.com, [team members have access to feature flags through Chatops](chatops_on_gitlabcom.md). Only
percentage gates are supported at this time. Setting a feature to be used 50% of percentage gates are supported at this time. Setting a feature to be used 50% of
the time, you should execute `/chatops run feature set my_feature_flag 50`. the time, you should execute `/chatops run feature set my_feature_flag 50`.
......
...@@ -654,6 +654,7 @@ and related tools such as: ...@@ -654,6 +654,7 @@ and related tools such as:
- <https://explain.depesz.com/> - <https://explain.depesz.com/>
- <http://tatiyants.com/postgres-query-plan-visualization/> - <http://tatiyants.com/postgres-query-plan-visualization/>
## Producing query plans ## Producing query plans
There are a few ways to get the output of a query plan. Of course you There are a few ways to get the output of a query plan. Of course you
...@@ -683,9 +684,9 @@ Execution time: 0.113 ms ...@@ -683,9 +684,9 @@ Execution time: 0.113 ms
### Chatops ### Chatops
GitLab employees can also use our chatops solution, available in Slack using the [GitLab employees can also use our chatops solution, available in Slack using the
`/chatops` slash command. You can use chatops to get a query plan by running the `/chatops` slash command](chatops_on_gitlabcom.md).
following: You can use chatops to get a query plan by running the following:
``` ```
/chatops run explain SELECT COUNT(*) FROM projects WHERE visibility_level IN (0, 20) /chatops run explain SELECT COUNT(*) FROM projects WHERE visibility_level IN (0, 20)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment