Commit graph

22 commits

Author SHA1 Message Date
Balasankar C
9f76632d80 Add installation type to usage ping data 2018-06-07 15:01:20 +00:00
Rémy Coutable
d50a80a282
Replace Gitlab::REVISION with Gitlab.revision and handle installations without a .git directory
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-24 10:14:01 +02:00
Rémy Coutable
02f17a0988
Introduce a new CacheableAttributes concern
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-23 16:14:43 +02:00
Rémy Coutable
e6f6f8e7a3 Merge branch 'osw-backport-dev-env-check-for-storage-settings-deprecation' into 'master'
Backport dev env check for storage settings deprecation

See merge request gitlab-org/gitlab-ce!18461
2018-04-25 08:31:32 +00:00
Oswaldo Ferreira
132f7d33a9 Backport dev env check for storage settings deprecation 2018-04-24 17:29:44 -03:00
Kamil Trzciński
575302c1b9 Do not preload settings 2018-04-24 19:32:06 +02:00
Rémy Coutable
2afe3a1210
Get rid of config/initializers/2_app.rb and define Gitlab in lib/gitlab.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 16:12:19 +02:00
Rémy Coutable
5b44097cf7
Address latest feedback
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 13:02:07 +02:00
Rémy Coutable
c286c66f57
Move Settings to its own file, isolate it from Rails and introduce Gitlab.root
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 12:20:30 +02:00
Oswaldo Ferreira
f39a7af0f7 Add .org? method to Gitlab helper
dev_env_or_com? now considers dev.gitlab.org
2018-04-17 11:21:03 -03:00
Oswaldo Ferreira
2c8d4f1a45 Backport GitLab domain helper methods 2018-04-13 14:52:33 -03:00
Zeger-Jan van de Weg
a752c56ca8
Deprecate legacy disk paths
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.
2018-04-12 15:23:36 +02:00
Sean McGivern
68f8a798f2 Include the ee/ directory in backtraces 2018-03-12 10:14:52 +00:00
Toon Claes
7188b4d839 Make the revision on the /help page clickable
For quicker access, add hyperlink to the gitlab.com commits page for the current
REVISION of GitLab.
2017-06-09 10:35:42 +02:00
Robert Speicher
d3d0e3dd5d Update Gitlab.com? to support staging 2016-06-27 15:10:36 -04:00
Rémy Coutable
5589dcf8db Fix a few places where autoloading would fail
- 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>
2016-05-10 11:51:19 +02:00
Robert Speicher
2e13f6c326 Add Gitlab.com? method
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.
2016-04-12 17:30:11 -04:00
Dmitriy Zaporozhets
3e259ea8bc Revert "Merge branch 'revert-satellites' into 'master' "
This reverts commit 5daf44b7c8, reversing
changes made to 2f706fbd23.
2015-08-11 14:33:31 +02:00
Dmitriy Zaporozhets
9f10943c1a
Revert "Merge branch 'drop-satellites'"
This reverts commit 957e849f41, reversing
changes made to 6b9dbe9f5a.

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-08-11 10:28:42 +02:00
Dmitriy Zaporozhets
2be3c94925 Fix application initialize 2015-07-15 15:59:38 +02:00
Dmitriy Zaporozhets
a87989fb7d Remove satellites 2015-07-15 15:45:57 +02:00
Robert Speicher
91c39fd8c7 Add lib/gitlab.rb to autoload non-conventional paths 2015-04-09 14:19:25 -04:00