Commit Graph

70 Commits

Author SHA1 Message Date
Adriel Santiago 1c4c4ba1d0 Remove ECharts metrics dashboard feature flag 2019-02-07 07:39:24 +00:00
Shinya Maeda e8d9df83a6 Inroduce Internal API for searching environment names
Add changelog

Rename word to query

User hash for limit

Do not allow control limit

Rename pluck names and add more specs
2019-02-06 18:14:18 +09:00
syasonik 5051f65497 Refactor envs helper for clarity 2019-01-29 17:58:04 -08:00
syasonik db054bc166 Support flat response for envs index route
To support environment folders in the UI on the Environments List
page, the environments index route previously returned one environment
per folder, excluding those other than the latest deploy. However, the
environtments dropdown on the metrics dashboard requires that any
environment be selectable.

To accommodate both use cases, support an optional 'nested' parameter
in the index route to return either a flat, complete response or a
nested response based on the use case in question. The new default
response structure is the flat response.
2019-01-21 14:51:16 -06:00
Adriel Santiago f053a02f68
Use GitLab UI area chart
Replace the metrics dashboard graph with
GitLab UI's area chart component
2018-12-07 17:36:17 -05:00
Jasper Maes 1bb4ad9262 Fix deprecation: render :text is deprecated because it does not actually render a text/plain response 2018-11-29 08:05:13 +01:00
gfyoung 12ee2753c1 Enable even more frozen string in app/controllers
Enables frozen string for some vestigial files as
well as the following:

* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb

Partially addresses #47424.
2018-09-25 22:43:49 -07:00
Yorick Peterse 2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Winnie Hellmann d79cef3a9a Support manually stopping any environment from the UI 2018-07-10 08:11:04 +00:00
Lin Jen-Shin 4ee08b77bc Updates from `rubocop -a` 2018-07-09 21:13:08 +08:00
Tiago Botelho 99dea5fa13 Makes production environment the default environment for a project 2018-07-04 09:35:25 +01:00
Tiago Botelho c9a7145a10 Remove GET empty from EnvironmentsController 2018-06-29 10:02:32 +02:00
Tiago Botelho dd467d6c75 Prevents project first environment from being fetched in every project view 2018-06-28 14:25:15 +02:00
Tiago Botelho 91463e5246 Specify environment actions to distinguish between metrics and every other environment related actions 2018-06-26 23:06:25 -05:00
Tiago Botelho 55943872f4 Adds empty environments page 2018-06-26 23:06:25 -05:00
Rémy Coutable 660439e968
Reduce CE/EE diff in spec/controllers/projects/environments_controller_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-24 19:29:29 +02:00
Filipa Lacerda 4563156256 Improve environments performance 2017-11-23 12:04:03 +00:00
Filipa Lacerda 03976c8f62 Re-enable polling for environments 2017-07-06 14:31:24 +01:00
Douwe Maan fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
Pawel Chojnacki 97c42df3b8 Merge remote-tracking branch 'upstream/master' into 28717-additional-metrics-review-branch 2017-06-22 15:05:52 +02:00
Kamil Trzcinski 91a550f583 Disable environment list polling as it breaks deployboard 2017-06-21 14:10:37 +02:00
Pawel Chojnacki 15b7b9ec41 Add rescue_from(ActionController::UnknownFormat) in Application Controller 2017-06-20 15:53:23 +02:00
Pawel Chojnacki dbb3c28088 Merge remote-tracking branch 'upstream/master' into 28717-additional-metrics-review-branch
# Conflicts:
#	app/models/project_services/prometheus_service.rb
#	app/views/projects/services/_form.html.haml
2017-06-07 10:27:52 +02:00
Pawel Chojnacki 2061414054 Additional metrics initial work, with working metrics listing, but without actoual metrics mesurements 2017-05-25 15:05:56 +02:00
Z.J. van de Weg 7ec8969285 Merge branch 'master' into zj-realtime-env-list 2017-05-25 13:57:22 +02:00
Z.J. van de Weg 3be9820da6 Test etag caching router and incorporate review 2017-05-24 10:02:32 +02:00
Z.J. van de Weg ebede2b3ff Use etag caching for environments JSON
For the index view, the environments can now be requested every 15
seconds. Any transition state of a projects environments will trigger a
cache invalidation action.

Fixes gitlab-org/gitlab-ce#31701
2017-05-22 21:55:43 +02:00
Z.J. van de Weg 0385f9efc2 Sort environments folders when opening them
Fixes gitlab-org/gitlab-ce#30814
2017-05-17 13:45:11 +02:00
Fatih Acet 0151325dac Merge request widget redesign 2017-05-09 04:15:34 +00:00
Kamil Trzciński 55f2a5debc Added Prometheus Service and Prometheus graphs 2017-03-07 16:57:42 +00:00
Z.J. van de Weg a254dcf0ed Add count keys to response JSON 2017-02-15 19:59:30 +01:00
Grzegorz Bizon 19bac884c6 Add route for environment folder and expose an API 2017-02-09 14:39:50 +01:00
Filipa Lacerda acb68ae69e Resolve 500 error 2017-02-09 11:16:31 +00:00
Grzegorz Bizon 2aeb45bdb5 Add support for environment scopes in controller 2017-02-09 11:11:12 +00:00
Grzegorz Bizon efa0502386 Enable grouping and pagination in environmnets API 2017-02-09 11:09:16 +00:00
Robert Speicher 58eae0961e Merge branch 'route-map' into 'master'
Add 'View on [env]' link to blobs and individual files in diffs

See merge request !8867
2017-02-07 19:14:19 +00:00
Douwe Maan c8b63a28af Improve performance of finding last deployed environment 2017-02-06 16:12:24 -06:00
Kamil Trzcinski 1664354c65
Update changes 2017-02-06 16:50:03 +01:00
Kamil Trzcinski 3cd17c9430
Merge remote-tracking branch 'origin/master' into 24147-delete-env-button 2017-01-24 17:52:50 +01:00
Fatih Acet 3db5b7033b Add terminal UI and controller actions 2016-12-19 21:27:08 +00:00
Nick Thomas c3d972f4e8 Add terminals to the Kubernetes deployment service 2016-12-19 19:53:04 +00:00
Grzegorz Bizon bd01a5a47c Add EnvironmentSerializer to EnvironmentsController 2016-11-16 11:58:06 +00:00
Filipa Lacerda 9c41191a00 Adds tab behavior to vue component 2016-11-16 11:57:58 +00:00
Filipa Lacerda d697b9c86d Adds link to actions. Cleans spaces 2016-11-16 11:57:57 +00:00
Filipa Lacerda 843e564236 Adds commit links 2016-11-16 11:57:55 +00:00
Filipa Lacerda dc46dc1d5f Adds commit back 2016-11-16 11:57:55 +00:00
Filipa Lacerda d873a3bd55 Adds commit partial for vue component 2016-11-16 11:57:54 +00:00
Filipa Lacerda b31c9f5318 Commit column 2016-11-16 11:57:53 +00:00
Filipa Lacerda 4508f85ab7 Adds user column with avatar url 2016-11-16 11:57:53 +00:00
Filipa Lacerda 2a40dec16d Serialize all needed data 2016-11-16 11:57:53 +00:00