{"action":"closed","number":26789,"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/26789","id":96889734,"html_url":"https://github.com/owncloud/core/pull/26789","diff_url":"https://github.com/owncloud/core/pull/26789.diff","patch_url":"https://github.com/owncloud/core/pull/26789.patch","issue_url":"https://api.github.com/repos/owncloud/core/issues/26789","number":26789,"state":"closed","locked":false,"title":"Adding computerFileSize in OC.Util","user":{"login":"ppaysant","id":8192056,"avatar_url":"https://avatars.githubusercontent.com/u/8192056?v=3","gravatar_id":"","url":"https://api.github.com/users/ppaysant","html_url":"https://github.com/ppaysant","followers_url":"https://api.github.com/users/ppaysant/followers","following_url":"https://api.github.com/users/ppaysant/following{/other_user}","gists_url":"https://api.github.com/users/ppaysant/gists{/gist_id}","starred_url":"https://api.github.com/users/ppaysant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppaysant/subscriptions","organizations_url":"https://api.github.com/users/ppaysant/orgs","repos_url":"https://api.github.com/users/ppaysant/repos","events_url":"https://api.github.com/users/ppaysant/events{/privacy}","received_events_url":"https://api.github.com/users/ppaysant/received_events","type":"User","site_admin":false},"body":"## Description\r\nAdd a computerFileSize function in js OC.Util.\r\n\r\n## Related Issue\r\n#26788\r\n\r\n## Motivation and Context\r\nThis function may help. For instance, I'm calling the setquota.php in settings/ajax/ from one of my app and the quota size returned is in human readable format. I need the size in bytes.\r\n\r\n## How Has This Been Tested?\r\nUnit tested in coreSpec.js\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [X] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [X] My code follows the code style of this project.\r\n- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n- [X] I have read the **CONTRIBUTING** document.\r\n- [X] I have added tests to cover my changes.\r\n- [X] All new and existing tests passed.\r\n\r\n\r\n","created_at":"2016-12-07T09:49:42Z","updated_at":"2016-12-07T14:20:11Z","closed_at":"2016-12-07T14:20:11Z","merged_at":"2016-12-07T14:20:11Z","merge_commit_sha":"48b946d2476d1c448110a5ab089df86a485920d2","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/76","html_url":"https://github.com/owncloud/core/milestones/9.2","labels_url":"https://api.github.com/repos/owncloud/core/milestones/76/labels","id":1632230,"number":76,"title":"9.2","description":null,"creator":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"open_issues":555,"closed_issues":510,"state":"open","created_at":"2016-03-09T07:18:43Z","updated_at":"2016-12-07T14:20:11Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/owncloud/core/pulls/26789/commits","review_comments_url":"https://api.github.com/repos/owncloud/core/pulls/26789/comments","review_comment_url":"https://api.github.com/repos/owncloud/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/core/issues/26789/comments","statuses_url":"https://api.github.com/repos/owncloud/core/statuses/594e73d30e0808a76557ac6623eb9d88e456a422","head":{"label":"ppaysant:add-js-computerFileSize","ref":"add-js-computerFileSize","sha":"594e73d30e0808a76557ac6623eb9d88e456a422","user":{"login":"ppaysant","id":8192056,"avatar_url":"https://avatars.githubusercontent.com/u/8192056?v=3","gravatar_id":"","url":"https://api.github.com/users/ppaysant","html_url":"https://github.com/ppaysant","followers_url":"https://api.github.com/users/ppaysant/followers","following_url":"https://api.github.com/users/ppaysant/following{/other_user}","gists_url":"https://api.github.com/users/ppaysant/gists{/gist_id}","starred_url":"https://api.github.com/users/ppaysant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppaysant/subscriptions","organizations_url":"https://api.github.com/users/ppaysant/orgs","repos_url":"https://api.github.com/users/ppaysant/repos","events_url":"https://api.github.com/users/ppaysant/events{/privacy}","received_events_url":"https://api.github.com/users/ppaysant/received_events","type":"User","site_admin":false},"repo":{"id":23702654,"name":"core","full_name":"ppaysant/core","owner":{"login":"ppaysant","id":8192056,"avatar_url":"https://avatars.githubusercontent.com/u/8192056?v=3","gravatar_id":"","url":"https://api.github.com/users/ppaysant","html_url":"https://github.com/ppaysant","followers_url":"https://api.github.com/users/ppaysant/followers","following_url":"https://api.github.com/users/ppaysant/following{/other_user}","gists_url":"https://api.github.com/users/ppaysant/gists{/gist_id}","starred_url":"https://api.github.com/users/ppaysant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppaysant/subscriptions","organizations_url":"https://api.github.com/users/ppaysant/orgs","repos_url":"https://api.github.com/users/ppaysant/repos","events_url":"https://api.github.com/users/ppaysant/events{/privacy}","received_events_url":"https://api.github.com/users/ppaysant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ppaysant/core","description":"The ownCloud core","fork":true,"url":"https://api.github.com/repos/ppaysant/core","forks_url":"https://api.github.com/repos/ppaysant/core/forks","keys_url":"https://api.github.com/repos/ppaysant/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppaysant/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppaysant/core/teams","hooks_url":"https://api.github.com/repos/ppaysant/core/hooks","issue_events_url":"https://api.github.com/repos/ppaysant/core/issues/events{/number}","events_url":"https://api.github.com/repos/ppaysant/core/events","assignees_url":"https://api.github.com/repos/ppaysant/core/assignees{/user}","branches_url":"https://api.github.com/repos/ppaysant/core/branches{/branch}","tags_url":"https://api.github.com/repos/ppaysant/core/tags","blobs_url":"https://api.github.com/repos/ppaysant/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppaysant/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppaysant/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppaysant/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppaysant/core/statuses/{sha}","languages_url":"https://api.github.com/repos/ppaysant/core/languages","stargazers_url":"https://api.github.com/repos/ppaysant/core/stargazers","contributors_url":"https://api.github.com/repos/ppaysant/core/contributors","subscribers_url":"https://api.github.com/repos/ppaysant/core/subscribers","subscription_url":"https://api.github.com/repos/ppaysant/core/subscription","commits_url":"https://api.github.com/repos/ppaysant/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppaysant/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppaysant/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppaysant/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppaysant/core/contents/{+path}","compare_url":"https://api.github.com/repos/ppaysant/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppaysant/core/merges","archive_url":"https://api.github.com/repos/ppaysant/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppaysant/core/downloads","issues_url":"https://api.github.com/repos/ppaysant/core/issues{/number}","pulls_url":"https://api.github.com/repos/ppaysant/core/pulls{/number}","milestones_url":"https://api.github.com/repos/ppaysant/core/milestones{/number}","notifications_url":"https://api.github.com/repos/ppaysant/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppaysant/core/labels{/name}","releases_url":"https://api.github.com/repos/ppaysant/core/releases{/id}","deployments_url":"https://api.github.com/repos/ppaysant/core/deployments","created_at":"2014-09-05T12:47:13Z","updated_at":"2016-05-24T08:19:56Z","pushed_at":"2016-12-07T10:44:03Z","git_url":"git://github.com/ppaysant/core.git","ssh_url":"git@github.com:ppaysant/core.git","clone_url":"https://github.com/ppaysant/core.git","svn_url":"https://github.com/ppaysant/core","homepage":null,"size":230782,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"owncloud:master","ref":"master","sha":"c206d4b0361ba8c8583aec3e49d0a9d4d77a08cc","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550552,"name":"core","full_name":"owncloud/core","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/core","description":":cloud: ownCloud web server core (Files, DAV, etc.)","fork":false,"url":"https://api.github.com/repos/owncloud/core","forks_url":"https://api.github.com/repos/owncloud/core/forks","keys_url":"https://api.github.com/repos/owncloud/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/core/teams","hooks_url":"https://api.github.com/repos/owncloud/core/hooks","issue_events_url":"https://api.github.com/repos/owncloud/core/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/core/events","assignees_url":"https://api.github.com/repos/owncloud/core/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/core/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/core/tags","blobs_url":"https://api.github.com/repos/owncloud/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/core/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/core/languages","stargazers_url":"https://api.github.com/repos/owncloud/core/stargazers","contributors_url":"https://api.github.com/repos/owncloud/core/contributors","subscribers_url":"https://api.github.com/repos/owncloud/core/subscribers","subscription_url":"https://api.github.com/repos/owncloud/core/subscription","commits_url":"https://api.github.com/repos/owncloud/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/core/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/core/merges","archive_url":"https://api.github.com/repos/owncloud/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/core/downloads","issues_url":"https://api.github.com/repos/owncloud/core/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/core/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/core/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/core/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/core/releases{/id}","deployments_url":"https://api.github.com/repos/owncloud/core/deployments","created_at":"2012-08-25T10:32:48Z","updated_at":"2016-12-07T08:48:37Z","pushed_at":"2016-12-07T14:20:11Z","git_url":"git://github.com/owncloud/core.git","ssh_url":"git@github.com:owncloud/core.git","clone_url":"https://github.com/owncloud/core.git","svn_url":"https://github.com/owncloud/core","homepage":"https://owncloud.org/","size":330663,"stargazers_count":4974,"watchers_count":4974,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1609,"mirror_url":null,"open_issues_count":1734,"forks":1609,"open_issues":1734,"watchers":4974,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/core/pulls/26789"},"html":{"href":"https://github.com/owncloud/core/pull/26789"},"issue":{"href":"https://api.github.com/repos/owncloud/core/issues/26789"},"comments":{"href":"https://api.github.com/repos/owncloud/core/issues/26789/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/core/pulls/26789/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/core/pulls/26789/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/core/statuses/594e73d30e0808a76557ac6623eb9d88e456a422"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"comments":3,"review_comments":12,"commits":4,"additions":76,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"PVince81"}}