Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
c5a16f45
Commit
c5a16f45
authored
Nov 17, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Undo last commit
parent
d411a979
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
236 deletions
+0
-236
app/assets/javascripts/environments/stores/environments_store.js.es6
...javascripts/environments/stores/environments_store.js.es6
+0
-236
No files found.
app/assets/javascripts/environments/stores/environments_store.js.es6
View file @
c5a16f45
...
...
@@ -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');
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment