summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-11-17 17:35:27 +0000
committerFilipa Lacerda <filipa@gitlab.com>2016-11-17 17:35:27 +0000
commitc5a16f45d599bb9b97136b01558fcffc449b1a2a (patch)
treebc18d4788756666eb20282e9000534430885c73d
parentd411a979e2bf5b54cfc85592286b951d73cf68ac (diff)
downloadgitlab-ce-c5a16f45d599bb9b97136b01558fcffc449b1a2a.tar.gz
Undo last commit
-rw-r--r--app/assets/javascripts/environments/stores/environments_store.js.es6236
1 files changed, 0 insertions, 236 deletions
diff --git a/app/assets/javascripts/environments/stores/environments_store.js.es6 b/app/assets/javascripts/environments/stores/environments_store.js.es6
index 0ef0d99e38d..928786f0741 100644
--- a/app/assets/javascripts/environments/stores/environments_store.js.es6
+++ b/app/assets/javascripts/environments/stores/environments_store.js.es6
@@ -47,242 +47,6 @@
* @returns {Array} Tree structured array with the received environments.
*/
storeEnvironments(environments = []) {
- environments = [{
- "id": 31,
- "name": "production",
- "state": "stopped",
- "external_url": null,
- "environment_type": null,
- "last_deployment": {
- "id": 66,
- "iid": 6,
- "sha": "500aabcb17c97bdcf2d0c410b70cb8556f0362dd",
- "ref": {
- "name": "master",
- "ref_path": "/root/ci-folders/tree/master"
- },
- "tag": false,
- "last?": true,
- "user": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon",
- "web_url": "http://localhost:3000/root"
- },
- "commit": {
- "id": "500aabcb17c97bdcf2d0c410b70cb8556f0362dd",
- "short_id": "500aabcb",
- "title": "Update .gitlab-ci.yml",
- "author_name": "Administrator",
- "author_email": "admin@example.com",
- "created_at": "2016-11-07T18:28:13.000+00:00",
- "message": "Update .gitlab-ci.yml",
- "author": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon",
- "web_url": "http://localhost:3000/root"
- },
- "commit_path": "/root/ci-folders/tree/500aabcb17c97bdcf2d0c410b70cb8556f0362dd"
- },
- "deployable": {
- "id": 1279,
- "name": "deploy",
- "build_path": "/root/ci-folders/builds/1279",
- "retry_path": "/root/ci-folders/builds/1279/retry"
- },
- "manual_actions": []
- },
- "stoppable?": false,
- "environment_path": "/root/ci-folders/environments/31",
- "created_at": "2016-11-07T11:11:16.525Z",
- "updated_at": "2016-11-10T15:55:58.778Z"
-}, {
- "id": 33,
- "name": "folder/foo",
- "state": "available",
- "external_url": "http://bar.filipa.com",
- "environment_type": "folder",
- "last_deployment": {
- "id": 66,
- "iid": 6,
- "sha": "500aabcb17c97bdcf2d0c410b70cb8556f0362dd",
- "ref": {
- "name": "master",
- "ref_path": "/root/ci-folders/tree/master"
- },
- "tag": false,
- "last?": true,
- "user": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon",
- "web_url": "http://localhost:3000/root"
- },
- "commit": {
- "id": "500aabcb17c97bdcf2d0c410b70cb8556f0362dd",
- "short_id": "500aabcb",
- "title": "Real big commi message adasdasdas asdasd sd sdsdfdsf Update .gitlab-ci.yml",
- "author_name": "Administrator",
- "author_email": "admin@example.com",
- "created_at": "2016-11-07T18:28:13.000+00:00",
- "message": "Update .gitlab-ci.yml",
- "author": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon",
- "web_url": "http://localhost:3000/root"
- },
- "commit_path": "/root/ci-folders/tree/500aabcb17c97bdcf2d0c410b70cb8556f0362dd"
- },
- "deployable": {
- "id": 1279,
- "name": "deploy",
- "build_path": "/root/ci-folders/builds/1279",
- "retry_path": "/root/ci-folders/builds/1279/retry"
- },
- "manual_actions": []
- },
- "stoppable?": false,
- "environment_path": "/root/ci-folders/environments/33",
- "created_at": "2016-11-07T11:17:20.604Z",
- "updated_at": "2016-11-07T11:17:20.604Z"
-}, {
- "id": 34,
- "name": "folder/bar",
- "last_deployment": {
- "id": 66,
- "iid": 6,
- "sha": "500aabcb17c97bdcf2d0c410b70cb8556f0362dd",
- "ref": {
- "name": "master",
- "ref_path": "/root/ci-folders/tree/master"
- },
- "tag": false,
- "last?": true,
- "user": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon",
- "web_url": "http://localhost:3000/root"
- },
- "commit": {
- "id": "500aabcb17c97bdcf2d0c410b70cb8556f0362dd",
- "short_id": "500aabcb",
- "title": "Update .gitlab-ci.yml",
- "author_name": "Administrator",
- "author_email": "admin@example.com",
- "created_at": "2016-11-07T18:28:13.000+00:00",
- "message": "Update .gitlab-ci.yml",
- "author": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon",
- "web_url": "http://localhost:3000/root"
- },
- "commit_path": "/root/ci-folders/tree/500aabcb17c97bdcf2d0c410b70cb8556f0362dd"
- },
- "deployable": {
- "id": 1279,
- "name": "deploy",
- "build_path": "/root/ci-folders/builds/1279",
- "retry_path": "/root/ci-folders/builds/1279/retry"
- },
- "manual_actions": []
- },
- "state": "available",
- "external_url": null,
- "environment_type": "folder",
-
- "stoppable?": false,
- "environment_path": "/root/ci-folders/environments/34",
- "created_at": "2016-11-07T11:31:59.481Z",
- "updated_at": "2016-11-07T11:31:59.481Z"
-}, {
- "id": 35,
- "name": "review",
- "state": "available",
- "external_url": null,
- "environment_type": null,
- "last_deployment": {
- "id": 67,
- "iid": 7,
- "sha": "9dcecbafd2514b555ad2ef9be1f40c6b46009613",
- "ref": {
- "name": "master",
- "ref_path": "/root/ci-folders/tree/master"
- },
- "tag": false,
- "last?": true,
- "user": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon",
- "web_url": "http://localhost:3000/root"
- },
- "commit": {
- "id": "9dcecbafd2514b555ad2ef9be1f40c6b46009613",
- "short_id": "9dcecbaf",
- "title": "aa Update .gitlab-ci.yml",
- "author_name": "Administrator",
- "author_email": "admin@example.com",
- "created_at": "2016-11-09T15:53:06.000+00:00",
- "message": "aa Update .gitlab-ci.yml",
- "author": {
- "name": "Administrator",
- "username": "root",
- "id": 1,
- "state": "active",
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon",
- "web_url": "http://localhost:3000/root"
- },
- "commit_path": "/root/ci-folders/tree/9dcecbafd2514b555ad2ef9be1f40c6b46009613"
- },
- "deployable": {
- "id": 1283,
- "name": "test",
- "build_path": "/root/ci-folders/builds/1283",
- "retry_path": "/root/ci-folders/builds/1283/retry"
- },
- "manual_actions": [{
- "id": 1292,
- "name": "stop_review_app",
- "build_path": "/root/ci-folders/builds/1292",
- "retry_path": "/root/ci-folders/builds/1292/retry",
- "play_path": "/root/ci-folders/builds/1292/play"
- }]
- },
- "stoppable?": true,
- "environment_path": "/root/ci-folders/environments/35",
- "created_at": "2016-11-09T15:53:45.108Z",
- "updated_at": "2016-11-09T15:53:45.108Z"
-}, {
- "id": 36,
- "name": "review",
- "state": "stopped",
- "external_url": null,
- "environment_type": null,
- "last_deployment": null,
- "stoppable?": false,
- "environment_path": "/root/ci-folders/environments/36",
- "created_at": "2016-11-09T15:53:45.220Z",
- "updated_at": "2016-11-09T15:53:45.273Z"
-}];
-
this.state.stoppedCounter = this.countByState(environments, 'stopped');
this.state.availableCounter = this.countByState(environments, 'available');