Commit fc4618ba authored by GitLab Bot's avatar GitLab Bot

Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-10-10

# Conflicts:
#	app/controllers/admin/health_check_controller.rb
#	app/models/application_setting.rb
#	db/schema.rb
#	doc/administration/monitoring/prometheus/gitlab_metrics.md
#	doc/api/settings.md
#	locale/gitlab.pot

[ci skip]
parents 57e9d641 8f13e071
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
class Admin::HealthCheckController < Admin::ApplicationController class Admin::HealthCheckController < Admin::ApplicationController
def show def show
<<<<<<< HEAD
checks = ['standard'] checks = ['standard']
checks << 'geo' if Gitlab::Geo.secondary? checks << 'geo' if Gitlab::Geo.secondary?
@errors = HealthCheck::Utils.process_checks(checks) @errors = HealthCheck::Utils.process_checks(checks)
=======
@errors = HealthCheck::Utils.process_checks(['standard'])
>>>>>>> upstream/master
end end
end end
...@@ -5,7 +5,10 @@ class ApplicationSetting < ActiveRecord::Base ...@@ -5,7 +5,10 @@ class ApplicationSetting < ActiveRecord::Base
include CacheMarkdownField include CacheMarkdownField
include TokenAuthenticatable include TokenAuthenticatable
include IgnorableColumn include IgnorableColumn
<<<<<<< HEAD
prepend EE::ApplicationSetting prepend EE::ApplicationSetting
=======
>>>>>>> upstream/master
add_authentication_token_field :runners_registration_token add_authentication_token_field :runners_registration_token
add_authentication_token_field :health_check_access_token add_authentication_token_field :health_check_access_token
......
...@@ -177,6 +177,11 @@ ActiveRecord::Schema.define(version: 20181008200441) do ...@@ -177,6 +177,11 @@ ActiveRecord::Schema.define(version: 20181008200441) do
t.boolean "throttle_authenticated_web_enabled", default: false, null: false t.boolean "throttle_authenticated_web_enabled", default: false, null: false
t.integer "throttle_authenticated_web_requests_per_period", default: 7200, null: false t.integer "throttle_authenticated_web_requests_per_period", default: 7200, null: false
t.integer "throttle_authenticated_web_period_in_seconds", default: 3600, null: false t.integer "throttle_authenticated_web_period_in_seconds", default: 3600, null: false
<<<<<<< HEAD
=======
t.boolean "password_authentication_enabled_for_web"
t.boolean "password_authentication_enabled_for_git", default: true
>>>>>>> upstream/master
t.integer "gitaly_timeout_default", default: 55, null: false t.integer "gitaly_timeout_default", default: 55, null: false
t.integer "gitaly_timeout_medium", default: 30, null: false t.integer "gitaly_timeout_medium", default: 30, null: false
t.integer "gitaly_timeout_fast", default: 10, null: false t.integer "gitaly_timeout_fast", default: 10, null: false
......
...@@ -45,7 +45,10 @@ The following metrics are available: ...@@ -45,7 +45,10 @@ The following metrics are available:
| redis_ping_success | Gauge | 9.4 | Whether or not the last redis ping succeeded | | redis_ping_success | Gauge | 9.4 | Whether or not the last redis ping succeeded |
| redis_ping_latency_seconds | Gauge | 9.4 | Round trip time of the redis ping | | redis_ping_latency_seconds | Gauge | 9.4 | Round trip time of the redis ping |
| user_session_logins_total | Counter | 9.4 | Counter of how many users have logged in | | user_session_logins_total | Counter | 9.4 | Counter of how many users have logged in |
<<<<<<< HEAD
| upload_file_does_not_exist | Counter | 10.7 | Number of times an upload record could not find its file | | upload_file_does_not_exist | Counter | 10.7 | Number of times an upload record could not find its file |
=======
>>>>>>> upstream/master
| failed_login_captcha_total | Gauge | 11.0 | Counter of failed CAPTCHA attempts during login | | failed_login_captcha_total | Gauge | 11.0 | Counter of failed CAPTCHA attempts during login |
| successful_login_captcha_total | Gauge | 11.0 | Counter of successful CAPTCHA attempts during login | | successful_login_captcha_total | Gauge | 11.0 | Counter of successful CAPTCHA attempts during login |
......
...@@ -145,7 +145,10 @@ are listed in the descriptions of the relevant settings. ...@@ -145,7 +145,10 @@ are listed in the descriptions of the relevant settings.
| `authorized_keys_enabled` | boolean | no | By default, we write to the `authorized_keys` file to support Git over SSH without additional configuration. GitLab can be optimized to authenticate SSH keys via the database file. Only disable this if you have configured your OpenSSH server to use the AuthorizedKeysCommand. | | `authorized_keys_enabled` | boolean | no | By default, we write to the `authorized_keys` file to support Git over SSH without additional configuration. GitLab can be optimized to authenticate SSH keys via the database file. Only disable this if you have configured your OpenSSH server to use the AuthorizedKeysCommand. |
| `auto_devops_domain` | string | no | Specify a domain to use by default for every project's Auto Review Apps and Auto Deploy stages. | | `auto_devops_domain` | string | no | Specify a domain to use by default for every project's Auto Review Apps and Auto Deploy stages. |
| `auto_devops_enabled` | boolean | no | Enable Auto DevOps for projects by default. It will automatically build, test, and deploy applications based on a predefined CI/CD configuration. | | `auto_devops_enabled` | boolean | no | Enable Auto DevOps for projects by default. It will automatically build, test, and deploy applications based on a predefined CI/CD configuration. |
<<<<<<< HEAD
| `check_namespace_plan` | boolean | no | **(Premium)** Enabling this will make only licensed EE features available to projects if the project namespace's plan includes the feature or if the project is public. | | `check_namespace_plan` | boolean | no | **(Premium)** Enabling this will make only licensed EE features available to projects if the project namespace's plan includes the feature or if the project is public. |
=======
>>>>>>> upstream/master
| `clientside_sentry_dsn` | string | required by: `clientside_sentry_enabled` | Clientside Sentry Data Source Name. | | `clientside_sentry_dsn` | string | required by: `clientside_sentry_enabled` | Clientside Sentry Data Source Name. |
| `clientside_sentry_enabled` | boolean | no | (**If enabled, requires:** `clientside_sentry_dsn`) Enable Sentry error reporting for the client side. | | `clientside_sentry_enabled` | boolean | no | (**If enabled, requires:** `clientside_sentry_dsn`) Enable Sentry error reporting for the client side. |
| `container_registry_token_expire_delay` | integer | no | Container Registry token duration in minutes. | | `container_registry_token_expire_delay` | integer | no | Container Registry token duration in minutes. |
......
...@@ -156,7 +156,7 @@ the feature you contribute through all of these steps. ...@@ -156,7 +156,7 @@ the feature you contribute through all of these steps.
1. Performance/scalability implications have been considered, addressed, and tested 1. Performance/scalability implications have been considered, addressed, and tested
1. [Documented][doc-guidelines] in the `/doc` directory 1. [Documented][doc-guidelines] in the `/doc` directory
1. [Changelog entry added][changelog], if necessary 1. [Changelog entry added][changelog], if necessary
1. Reviewed and any concerns are addressed 1. Reviewed by UX/FE/BE and any concerns are addressed
1. Merged by a project maintainer 1. Merged by a project maintainer
1. Added to the release blog article, if relevant 1. Added to the release blog article, if relevant
1. Added to [the website](https://gitlab.com/gitlab-com/www-gitlab-com/), if relevant 1. Added to [the website](https://gitlab.com/gitlab-com/www-gitlab-com/), if relevant
......
# Style guides and linting # Style guides and linting
See the relevant style guides for our guidelines and for information on linting: See the relevant style guides for our guidelines and for information on linting:
## JavaScript ## JavaScript
We defer to [Airbnb][airbnb-js-style-guide] on most style-related We defer to [Airbnb][airbnb-js-style-guide] on most style-related
conventions and enforce them with eslint. conventions and enforce them with eslint.
See [our current .eslintrc][eslintrc] for specific rules and patterns. See [our current .eslintrc](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/.eslintrc.yml) for specific rules and patterns.
### Common ### Common
...@@ -299,10 +301,12 @@ Do not use them anymore and feel free to remove them when refactoring legacy cod ...@@ -299,10 +301,12 @@ Do not use them anymore and feel free to remove them when refactoring legacy cod
### Vue.js ### Vue.js
#### `eslint-vue-plugin` #### `eslint-vue-plugin`
We default to [eslint-vue-plugin][eslint-plugin-vue], with the `plugin:vue/recommended`. We default to [eslint-vue-plugin][eslint-plugin-vue], with the `plugin:vue/recommended`.
Please check this [rules][eslint-plugin-vue-rules] for more documentation. Please check this [rules][eslint-plugin-vue-rules] for more documentation.
#### Basic Rules #### Basic Rules
1. The service has it's own file 1. The service has it's own file
1. The store has it's own file 1. The store has it's own file
1. Use a function in the bundle file to instantiate the Vue component: 1. Use a function in the bundle file to instantiate the Vue component:
...@@ -387,6 +391,7 @@ Please check this [rules][eslint-plugin-vue-rules] for more documentation. ...@@ -387,6 +391,7 @@ Please check this [rules][eslint-plugin-vue-rules] for more documentation.
[#34371]: https://gitlab.com/gitlab-org/gitlab-ce/issues/34371 [#34371]: https://gitlab.com/gitlab-org/gitlab-ce/issues/34371
#### Alignment #### Alignment
1. Follow these alignment styles for the template method: 1. Follow these alignment styles for the template method:
1. With more than one attribute, all attributes should be on a new line: 1. With more than one attribute, all attributes should be on a new line:
......
...@@ -142,12 +142,15 @@ msgstr "" ...@@ -142,12 +142,15 @@ msgstr ""
msgid "%{name}'s avatar" msgid "%{name}'s avatar"
msgstr "" msgstr ""
<<<<<<< HEAD
msgid "%{nip_domain} can be used as an alternative to a custom domain." msgid "%{nip_domain} can be used as an alternative to a custom domain."
msgstr "" msgstr ""
msgid "%{number_commits_behind} commits behind %{default_branch}, %{number_commits_ahead} commits ahead" msgid "%{number_commits_behind} commits behind %{default_branch}, %{number_commits_ahead} commits ahead"
msgstr "" msgstr ""
=======
>>>>>>> upstream/master
msgid "%{openOrClose} %{noteable}" msgid "%{openOrClose} %{noteable}"
msgstr "" msgstr ""
...@@ -349,9 +352,12 @@ msgstr "" ...@@ -349,9 +352,12 @@ msgstr ""
msgid "Access expiration date" msgid "Access expiration date"
msgstr "" msgstr ""
<<<<<<< HEAD
msgid "Access to '%{classification_label}' not allowed" msgid "Access to '%{classification_label}' not allowed"
msgstr "" msgstr ""
=======
>>>>>>> upstream/master
msgid "Account" msgid "Account"
msgstr "" msgstr ""
...@@ -1548,9 +1554,12 @@ msgstr "" ...@@ -1548,9 +1554,12 @@ msgstr ""
msgid "CiVariable|Validation failed" msgid "CiVariable|Validation failed"
msgstr "" msgstr ""
<<<<<<< HEAD
msgid "ClassificationLabelUnavailable|is unavailable: %{reason}" msgid "ClassificationLabelUnavailable|is unavailable: %{reason}"
msgstr "" msgstr ""
=======
>>>>>>> upstream/master
msgid "Clear search" msgid "Clear search"
msgstr "" msgstr ""
...@@ -2129,9 +2138,12 @@ msgid "Configure push mirrors." ...@@ -2129,9 +2138,12 @@ msgid "Configure push mirrors."
msgstr "" msgstr ""
msgid "Configure storage path settings." msgid "Configure storage path settings."
<<<<<<< HEAD
msgstr "" msgstr ""
msgid "Configure the %{link} integration." msgid "Configure the %{link} integration."
=======
>>>>>>> upstream/master
msgstr "" msgstr ""
msgid "Configure the way a user creates a new account." msgid "Configure the way a user creates a new account."
...@@ -4796,9 +4808,12 @@ msgstr "" ...@@ -4796,9 +4808,12 @@ msgstr ""
msgid "Maven package" msgid "Maven package"
msgstr "" msgstr ""
<<<<<<< HEAD
msgid "Max access level" msgid "Max access level"
msgstr "" msgstr ""
=======
>>>>>>> upstream/master
msgid "Maximum job timeout" msgid "Maximum job timeout"
msgstr "" msgstr ""
...@@ -5416,9 +5431,12 @@ msgstr "" ...@@ -5416,9 +5431,12 @@ msgstr ""
msgid "November" msgid "November"
msgstr "" msgstr ""
<<<<<<< HEAD
msgid "OK" msgid "OK"
msgstr "" msgstr ""
=======
>>>>>>> upstream/master
msgid "Oct" msgid "Oct"
msgstr "" msgstr ""
...@@ -6857,6 +6875,7 @@ msgid "SearchAutocomplete|in this project" ...@@ -6857,6 +6875,7 @@ msgid "SearchAutocomplete|in this project"
msgstr "" msgstr ""
msgid "Secret" msgid "Secret"
<<<<<<< HEAD
msgstr "" msgstr ""
msgid "Security" msgid "Security"
...@@ -6872,6 +6891,8 @@ msgid "SecurityDashboard|Monitor vulnerabilities in your code" ...@@ -6872,6 +6891,8 @@ msgid "SecurityDashboard|Monitor vulnerabilities in your code"
msgstr "" msgstr ""
msgid "SecurityDashboard|Pipeline %{pipelineLink} triggered" msgid "SecurityDashboard|Pipeline %{pipelineLink} triggered"
=======
>>>>>>> upstream/master
msgstr "" msgstr ""
msgid "Select" msgid "Select"
...@@ -7583,9 +7604,12 @@ msgstr "" ...@@ -7583,9 +7604,12 @@ msgstr ""
msgid "The maximum file size allowed is 200KB." msgid "The maximum file size allowed is 200KB."
msgstr "" msgstr ""
<<<<<<< HEAD
msgid "The passphrase required to decrypt the private key. This is optional and the value is encrypted at rest." msgid "The passphrase required to decrypt the private key. This is optional and the value is encrypted at rest."
msgstr "" msgstr ""
=======
>>>>>>> upstream/master
msgid "The path to CI config file. Defaults to <code>.gitlab-ci.yml</code>" msgid "The path to CI config file. Defaults to <code>.gitlab-ci.yml</code>"
msgstr "" msgstr ""
...@@ -7679,12 +7703,15 @@ msgstr "" ...@@ -7679,12 +7703,15 @@ msgstr ""
msgid "There are no unstaged changes" msgid "There are no unstaged changes"
msgstr "" msgstr ""
<<<<<<< HEAD
msgid "There was an error adding a todo." msgid "There was an error adding a todo."
msgstr "" msgstr ""
msgid "There was an error deleting the todo." msgid "There was an error deleting the todo."
msgstr "" msgstr ""
=======
>>>>>>> upstream/master
msgid "There was an error loading users activity calendar." msgid "There was an error loading users activity calendar."
msgstr "" msgstr ""
......
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