Commit Graph

22 Commits

Author SHA1 Message Date
Sarah Yasonik 552a3d2fd9 Update metrics dashboard API to load yml from repo
Updates the EnvironmentController#metrics_dashboard endpoint
to support a "dashboard" param, which can be used to specify
the filepath of a dashboard configuration from a project
repository. Dashboard configurations are expected to be
stored in .gitlab/dashboards/.

Updates dashboard post-processing steps to exclude custom
metrics, which should only display on the system dashboard.
2019-05-01 10:16:03 +00:00
Rémy Coutable 20f4815ebf Revert "Merge branch..."
This reverts merge request !26183
2019-03-19 09:36:05 +00:00
Rémy Coutable e96b8ef4db
New Repository#insights_config method
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-03-18 10:43:36 +01:00
James Lopez a4ae5411f5
Fix rubocop warning 2018-11-16 12:09:18 +01:00
James Lopez 53b2c3011e
Remove redundant end anchors 2018-11-16 11:27:47 +01:00
James Lopez f837281ff6
Update regex to use union 2018-11-16 11:03:45 +01:00
James Lopez 3cd538c2e9
Fix text rendering of readme/index 2018-11-14 16:07:31 +01:00
Achilleas Pipinellis be0af5e69f
Test type of README file without extension 2018-11-02 12:26:04 +01:00
Jakub Jirutka cb3f851098
Render index.* like README.* when it's present in a directory
Resolves #18933
2018-11-02 12:20:50 +01:00
gfyoung c858f70d07 Enable frozen string for lib/gitlab/*.rb 2018-10-22 07:00:50 +00:00
Stan Hu 656831e173 Remove Koding integration and documentation
This integration no longer works and does not appear to be supported.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39697
2018-10-12 22:18:51 -07:00
J.D. Bean 643c6f31e5 Recognize 'UNLICENSE' license files 2018-09-06 12:36:19 +00:00
Douwe Maan 83cda43a00
Fix Xcode project detection by looking for dirs instead of files 2018-05-22 12:09:53 +02:00
Douwe Maan f6ecb72682
Add Repository#xcode_project? method 2018-05-09 18:49:38 +02:00
Takuya Noguchi 2b6307f6ad Enable RuboCop Style/RegexpLiteral 2018-02-01 02:06:07 +09:00
Sean McGivern b7303b65b1 Cache issuable template names
We were looking these up on each request to an issue page, because the form is
pre-filled, as is the template dropdown. That was unnecessary: we could just
treat these as 'special' repository files (like the rendered README) and cache
them in Redis until they change on a push.
2017-10-12 13:26:03 +01:00
Sean McGivern 218e1f0963 Match full file path in FileDetector
The basename appears to have been a holdover from the past - it doesn't look
necessary now. Some of the regexes were unanchored on one side, so explicitly
ensure that they only match the root.

Apart from that, this means that pushing to foo/README.md will no longer
invalidate the main README cache for a project.
2017-10-12 11:13:37 +01:00
Douwe Maan 24b105e2e1 Add auxiliary blob viewers to dependency files 2017-05-17 14:10:00 -05:00
Douwe Maan 38d84f8360 Select dependency linker based on file type 2017-05-12 19:09:30 -05:00
Douwe Maan 08706f6837 Implement auxiliary blob viewers 2017-05-10 20:07:04 -05:00
Douwe Maan b7d8df503c Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
Yorick Peterse df5548e19e
Unify detecting of special repository files
This moves the logic of detecting special repository files (e.g. a
README or a Koding configuration file) to a single class:
Gitlab::FileDetector. Moving this logic into a single place allows this
to be re-used more easily.

This commit also changes Repository#gitlab_ci_yaml so that its cached
similar to other data (e.g. the Koding configuration file).
2016-11-21 12:51:40 +01:00