syasonik
25f957711d
Remove extra space
2019-04-24 18:23:04 +08:00
syasonik
131494f26f
Refactor metrics_dashboard response conditionals
2019-04-24 18:23:04 +08:00
syasonik
c1c0fb6693
Make EE interactions and transformations cleaner
2019-04-24 18:23:04 +08:00
syasonik
655fae4242
Reduce cognitivty complexity more
2019-04-24 18:23:04 +08:00
syasonik
1edbf97e25
Try to reduce complexity again
2019-04-24 18:23:04 +08:00
syasonik
57e0d474c2
Reduce congnitive complexity
2019-04-24 18:23:03 +08:00
syasonik
671f698845
Bring in line with EE needs
2019-04-24 18:23:03 +08:00
rpereira2
4a9002cee3
Inherit from BaseService
...
Change MetricsDashboard::Service to inherit from BaseService so that
it can reuse methods like initialize, success, error.
2019-04-24 18:23:03 +08:00
syasonik
35c412327c
Refactor dashboard proccesing into stages
2019-04-24 18:23:03 +08:00
syasonik
c9253c3eeb
Rubocop cleanup
2019-04-24 18:23:03 +08:00
syasonik
3d302879f4
Add unit tests and fix broken endpoint
2019-04-24 18:23:03 +08:00
syasonik
18183f404e
Use existing common metrics
2019-04-24 18:23:03 +08:00
syasonik
185ec80751
Save multi-dashboard logic for another MR
2019-04-24 18:23:03 +08:00
syasonik
a2920682ec
Add inital dashboard endpoint support
2019-04-24 18:23:03 +08:00
Sarah Yasonik
193e660291
Resolve Environments#additional_metrics TypeError, ensure unix format
2019-04-09 09:54:17 +00:00
Francisco Javier López
8a134f4c65
Renamed terminal_specification to channel_specification
...
We're moving from using terminology related to terminals when
we refer to Websockets connections in Workhorse.
It's more appropiate a concept like channel.
2019-04-04 18:32:02 +00:00
syasonik
ab1e1b55a8
Specify time window for additional metrics api
...
Adds support for start and end parameters in the #additional_metrics
endpoint of the EnvironmentsController. start and end are meant to be
unix timestamps, per the Prometheus API (as the consumer of this
endpoint will eventually be transitioned to a prometheus endpoint).
This functionality is behind the :metrics_time_window feature flag
for development.
2019-04-03 17:21:56 +08:00
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
Filipa Lacerda
235213dc68
Modifies controller to format data to json
2016-11-16 11:57:51 +00:00
Kamil Trzcinski
1494abe982
Allow to stop any environment
2016-11-10 13:59:26 +01:00
Kamil Trzcinski
ad85928752
Add logical validation to gitlab-ci.yml
2016-10-18 12:22:51 +02:00
Kamil Trzcinski
0aa232704c
Add `stop!` to `environment`
2016-10-18 12:02:50 +02:00
Kamil Trzcinski
34e19b9b8d
Fix specs
2016-10-17 22:01:56 +02:00
Kamil Trzcinski
e988072207
Fix environments specs
2016-10-17 21:06:10 +02:00
Kamil Trzcinski
9b790f1cf9
Improve after code review
2016-10-17 16:13:19 +02:00
Kamil Trzcinski
50d3cc2b67
Remove destroy from environments [ci skip]
2016-10-17 15:40:18 +02:00
Kamil Trzcinski
6cdbb27ec3
Refactor code to use available and stopped statuses and refactor views to use separate renders
2016-10-17 12:45:31 +02:00
Kamil Trzcinski
db9c03bf44
Add environment stop action [ci skip]
2016-10-17 11:38:43 +02:00
Kamil Trzcinski
c319cc5ab5
Make environments to be close able
2016-10-06 13:45:45 +02:00
Filipa Lacerda
b60e8309c5
Adds variables to controller
2016-10-06 13:16:14 +02:00
Z.J. van de Weg
34c1c8a3b1
Minor fixes in the Env API endpoints
2016-08-01 08:42:09 +02:00
Z.J. van de Weg
be9aa7f194
Add an URL field to Environments
...
This MR adds a string (thus max 255 chars) field to the enviroments
table to expose it later in other features.
2016-07-29 13:54:45 +02:00
Kamil Trzcinski
0052644009
Improve forms and specs
2016-06-15 12:07:06 +02:00
Kamil Trzcinski
14a02a6a95
Improve design after review
2016-06-14 18:34:48 +02:00
Kamil Trzcinski
bb6f246790
Authorize environments controller actions
2016-06-14 14:43:45 +02:00
Kamil Trzcinski
4f00b93ddd
Add deployment views
2016-06-11 00:15:53 +02:00
Kamil Trzcinski
907c0e6796
Added initial version of deployments
2016-06-10 23:36:54 +02:00
Kamil Trzcinski
cf7da039be
commit status
2016-06-10 22:38:40 +02:00