summaryrefslogtreecommitdiff
path: root/lib/gitlab.rb
Commit message (Collapse)AuthorAgeFilesLines
* Creates a function to check if repo is EEFilipa Lacerda2019-03-041-0/+4
| | | | | Adds EE information to gon Creates a global vue mixin
* Revert the "What's new" featureBrandon Labuschagne2019-01-291-40/+8
|
* Extract process_name from GitLab::SentryAndrew Newdigate2019-01-161-0/+8
| | | | | | | | GitLab::Sentry has a program_context method to determine whether a Sentry exception occurred in Sidekiq or rails. Since we will need similar functionality for distributed tracing, this change extracts the program_context method into GitLab.process_name for more general consumption.
* Resolve "Add "What's new" menu item in top navigation"Brandon Labuschagne2019-01-141-8/+40
|
* Improve variables supportimprove-variables-supportKamil Trzciński2018-11-191-0/+4
| | | | | | This ensures that variables accept only string, alongside also improves kubernetes_namespace, improving validation and default value being set.
* Enable more frozen string in lib/**/*.rbgfyoung2018-10-061-0/+2
| | | | | | | | | | | | | Enables frozen for the following: * lib/*.rb * lib/banzai/**/*.rb * lib/bitbucket/**/*.rb * lib/constraints/**/*.rb * lib/container_registry/**/*.rb * lib/declarative_policy/**/*.rb Partially addresses #47424.
* Show the commit-sha for pre-release versionsBob Van Landuyt2018-10-021-0/+4
| | | | | | | | | The pre-release tags are set at the beginning of a release, so it would be impossible to figure out which version was running if we're running nightlies. In that case it's better to still link to the SHA. These versions don't get deployed to .com.
* Stop relying on migrations in the CacheableAttributes cache key and cache ↵Rémy Coutable2018-07-051-4/+0
| | | | | | attributes for 1 minute instead Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add installation type to usage ping dataBalasankar C2018-06-071-0/+1
|
* Replace Gitlab::REVISION with Gitlab.revision and handle installations ↵46600-fix-gitlab-revision-when-not-in-git-repoRémy Coutable2018-05-241-1/+16
| | | | | | without a .git directory Signed-off-by: Rémy Coutable <remy@rymai.me>
* Introduce a new CacheableAttributes concernRémy Coutable2018-05-231-0/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'osw-backport-dev-env-check-for-storage-settings-deprecation' ↵Rémy Coutable2018-04-251-1/+1
|\ | | | | | | | | | | | | into 'master' Backport dev env check for storage settings deprecation See merge request gitlab-org/gitlab-ce!18461
| * Backport dev env check for storage settings deprecationOswaldo Ferreira2018-04-241-1/+1
| |
* | Do not preload settingsKamil Trzciński2018-04-241-1/+0
|/
* Get rid of config/initializers/2_app.rb and define Gitlab in lib/gitlab.rbRémy Coutable2018-04-231-1/+7
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Address latest feedbackRémy Coutable2018-04-231-4/+5
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Move Settings to its own file, isolate it from Rails and introduce Gitlab.rootRémy Coutable2018-04-231-0/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add .org? method to Gitlab helperOswaldo Ferreira2018-04-171-1/+5
| | | | dev_env_or_com? now considers dev.gitlab.org
* Backport GitLab domain helper methodsOswaldo Ferreira2018-04-131-10/+7
|
* Deprecate legacy disk pathsZeger-Jan van de Weg2018-04-121-0/+8
| | | | | | | | | | | Direct disk access is impossible on environments where components run in their own container. There for constructing the path should not be done except for exceptional cases. One of the considerations, instead of logging, was to use Sentry. For now I've chosen not to use this as the impact of this change is hard to determine. Getting this in now will allow us to checkout the impact on dev.gitlab.org and staging.
* Include the ee/ directory in backtracesallow-ee-in-backtracesSean McGivern2018-03-121-0/+1
|
* Make the revision on the `/help` page clickabletc-link-to-commit-on-help-pageToon Claes2017-06-091-1/+3
| | | | | For quicker access, add hyperlink to the gitlab.com commits page for the current REVISION of GitLab.
* Update `Gitlab.com?` to support stagingrs-gitalb-com-stagingRobert Speicher2016-06-271-1/+6
|
* Fix a few places where autoloading would failRémy Coutable2016-05-101-1/+1
| | | | | | | | | | | - Fix naming of API::CommitStatuses - Ensure we use require_dependency instead of require - Ensure the namespace is right in lib/api/api.rb, otherwise, we might require Grape::API::Helpers which defines the `#params` method. This is to avoid requiring a file multiple times and getting an "Already initialized constant" error. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add `Gitlab.com?` methodrs-gitlab-com-checkRobert Speicher2016-04-121-0/+3
| | | | | | | | | | To be used as a feature flag for GitLab.com-only features, such as welcome emails. We will be careful to only use this to disable features or functionality that do not make sense for any installations that aren't GitLab.com. We will not use this to restrict features from other installations or keep them "exclusive" to GitLab.com.
* Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets2015-08-111-1/+0
| | | | | This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
* Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets2015-08-111-0/+1
| | | | | | | This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix application initializeDmitriy Zaporozhets2015-07-151-0/+4
|
* Remove satellitesDmitriy Zaporozhets2015-07-151-5/+0
|
* Add lib/gitlab.rb to autoload non-conventional pathsRobert Speicher2015-04-091-0/+5