{"action":"opened","number":362,"pull_request":{"url":"https://api.github.com/repos/haskell/hackage-server/pulls/362","id":35902978,"html_url":"https://github.com/haskell/hackage-server/pull/362","diff_url":"https://github.com/haskell/hackage-server/pull/362.diff","patch_url":"https://github.com/haskell/hackage-server/pull/362.patch","issue_url":"https://api.github.com/repos/haskell/hackage-server/issues/362","number":362,"state":"open","locked":false,"title":"Detailed dependency view","user":{"login":"grayjay","id":4276753,"avatar_url":"https://avatars.githubusercontent.com/u/4276753?v=3","gravatar_id":"","url":"https://api.github.com/users/grayjay","html_url":"https://github.com/grayjay","followers_url":"https://api.github.com/users/grayjay/followers","following_url":"https://api.github.com/users/grayjay/following{/other_user}","gists_url":"https://api.github.com/users/grayjay/gists{/gist_id}","starred_url":"https://api.github.com/users/grayjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grayjay/subscriptions","organizations_url":"https://api.github.com/users/grayjay/orgs","repos_url":"https://api.github.com/users/grayjay/repos","events_url":"https://api.github.com/users/grayjay/events{/privacy}","received_events_url":"https://api.github.com/users/grayjay/received_events","type":"User","site_admin":false},"body":"I started adding a detailed package dependency view as @dcoutts suggested.  This pull request isn't finished, because I wanted to ask for feedback before I got too far.  The detailed dependencies are temporarily displayed under the original dependencies on the main package page.  This view is only a summary of the .cabal file.  For example, it only displays branches that contain a build-depends or buildable field.  I have some questions about future changes:\r\n\r\n* Where should the details go?  Should we add an expander on the main package page so that users can toggle between the short and long dependency views?  I'm not very familiar with generating webpages, so I would need help implementing this.  We could instead link to a new page.\r\n* If the detailed view has its own page, should we modify the flags section, too?  The main page could show only manual flags, and the detailed view could show the full table of flags.\r\n* Should we add any other fields to the detailed view?  I included `buildable` when it is false, because it explains why some branches have no dependencies.\r\n* I copied the formatting from the module tree.  I'm not sure if I handled the html attributes and css correctly, so I would appreciate it if someone reviewed that part.\r\n* Should we omit the detailed view when it is no more informative than the summary?\r\n\r\n### Screenshots:\r\n#### c2hs\r\n![c2hs](https://cloud.githubusercontent.com/assets/4276753/7742361/1ca459f8-ff43-11e4-9fdd-21646d7e4f88.png)\r\n\r\n\r\n\r\n#### directory\r\n![directory](https://cloud.githubusercontent.com/assets/4276753/7742168/6fc7ce06-ff40-11e4-8ae8-b3a96a41d899.png)\r\n\r\n\r\n\r\n#### QuickCheck\r\n![quickcheck](https://cloud.githubusercontent.com/assets/4276753/7742178/8f583d3c-ff40-11e4-90e6-e2a2cebee064.png)\r\n","created_at":"2015-05-21T06:18:33Z","updated_at":"2015-05-21T06:18:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/haskell/hackage-server/pulls/362/commits","review_comments_url":"https://api.github.com/repos/haskell/hackage-server/pulls/362/comments","review_comment_url":"https://api.github.com/repos/haskell/hackage-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/haskell/hackage-server/issues/362/comments","statuses_url":"https://api.github.com/repos/haskell/hackage-server/statuses/ca731b47d4201770bb59202c2921ea131d0353c2","head":{"label":"grayjay:detailed-dependency-view","ref":"detailed-dependency-view","sha":"ca731b47d4201770bb59202c2921ea131d0353c2","user":{"login":"grayjay","id":4276753,"avatar_url":"https://avatars.githubusercontent.com/u/4276753?v=3","gravatar_id":"","url":"https://api.github.com/users/grayjay","html_url":"https://github.com/grayjay","followers_url":"https://api.github.com/users/grayjay/followers","following_url":"https://api.github.com/users/grayjay/following{/other_user}","gists_url":"https://api.github.com/users/grayjay/gists{/gist_id}","starred_url":"https://api.github.com/users/grayjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grayjay/subscriptions","organizations_url":"https://api.github.com/users/grayjay/orgs","repos_url":"https://api.github.com/users/grayjay/repos","events_url":"https://api.github.com/users/grayjay/events{/privacy}","received_events_url":"https://api.github.com/users/grayjay/received_events","type":"User","site_admin":false},"repo":{"id":30723856,"name":"hackage-server","full_name":"grayjay/hackage-server","owner":{"login":"grayjay","id":4276753,"avatar_url":"https://avatars.githubusercontent.com/u/4276753?v=3","gravatar_id":"","url":"https://api.github.com/users/grayjay","html_url":"https://github.com/grayjay","followers_url":"https://api.github.com/users/grayjay/followers","following_url":"https://api.github.com/users/grayjay/following{/other_user}","gists_url":"https://api.github.com/users/grayjay/gists{/gist_id}","starred_url":"https://api.github.com/users/grayjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grayjay/subscriptions","organizations_url":"https://api.github.com/users/grayjay/orgs","repos_url":"https://api.github.com/users/grayjay/repos","events_url":"https://api.github.com/users/grayjay/events{/privacy}","received_events_url":"https://api.github.com/users/grayjay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grayjay/hackage-server","description":"The new Hackage server aka \"Hackage 2\"","fork":true,"url":"https://api.github.com/repos/grayjay/hackage-server","forks_url":"https://api.github.com/repos/grayjay/hackage-server/forks","keys_url":"https://api.github.com/repos/grayjay/hackage-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grayjay/hackage-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grayjay/hackage-server/teams","hooks_url":"https://api.github.com/repos/grayjay/hackage-server/hooks","issue_events_url":"https://api.github.com/repos/grayjay/hackage-server/issues/events{/number}","events_url":"https://api.github.com/repos/grayjay/hackage-server/events","assignees_url":"https://api.github.com/repos/grayjay/hackage-server/assignees{/user}","branches_url":"https://api.github.com/repos/grayjay/hackage-server/branches{/branch}","tags_url":"https://api.github.com/repos/grayjay/hackage-server/tags","blobs_url":"https://api.github.com/repos/grayjay/hackage-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grayjay/hackage-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grayjay/hackage-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/grayjay/hackage-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grayjay/hackage-server/statuses/{sha}","languages_url":"https://api.github.com/repos/grayjay/hackage-server/languages","stargazers_url":"https://api.github.com/repos/grayjay/hackage-server/stargazers","contributors_url":"https://api.github.com/repos/grayjay/hackage-server/contributors","subscribers_url":"https://api.github.com/repos/grayjay/hackage-server/subscribers","subscription_url":"https://api.github.com/repos/grayjay/hackage-server/subscription","commits_url":"https://api.github.com/repos/grayjay/hackage-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/grayjay/hackage-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/grayjay/hackage-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/grayjay/hackage-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/grayjay/hackage-server/contents/{+path}","compare_url":"https://api.github.com/repos/grayjay/hackage-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grayjay/hackage-server/merges","archive_url":"https://api.github.com/repos/grayjay/hackage-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grayjay/hackage-server/downloads","issues_url":"https://api.github.com/repos/grayjay/hackage-server/issues{/number}","pulls_url":"https://api.github.com/repos/grayjay/hackage-server/pulls{/number}","milestones_url":"https://api.github.com/repos/grayjay/hackage-server/milestones{/number}","notifications_url":"https://api.github.com/repos/grayjay/hackage-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grayjay/hackage-server/labels{/name}","releases_url":"https://api.github.com/repos/grayjay/hackage-server/releases{/id}","created_at":"2015-02-12T21:05:38Z","updated_at":"2015-02-12T21:05:39Z","pushed_at":"2015-05-21T05:19:01Z","git_url":"git://github.com/grayjay/hackage-server.git","ssh_url":"git@github.com:grayjay/hackage-server.git","clone_url":"https://github.com/grayjay/hackage-server.git","svn_url":"https://github.com/grayjay/hackage-server","homepage":"hackage.haskell.org","size":5175,"stargazers_count":0,"watchers_count":0,"language":"Haskell","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":"haskell:master","ref":"master","sha":"e7e74c1390b28cf5cfaa0ca542681cadd1959a20","user":{"login":"haskell","id":450574,"avatar_url":"https://avatars.githubusercontent.com/u/450574?v=3","gravatar_id":"","url":"https://api.github.com/users/haskell","html_url":"https://github.com/haskell","followers_url":"https://api.github.com/users/haskell/followers","following_url":"https://api.github.com/users/haskell/following{/other_user}","gists_url":"https://api.github.com/users/haskell/gists{/gist_id}","starred_url":"https://api.github.com/users/haskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haskell/subscriptions","organizations_url":"https://api.github.com/users/haskell/orgs","repos_url":"https://api.github.com/users/haskell/repos","events_url":"https://api.github.com/users/haskell/events{/privacy}","received_events_url":"https://api.github.com/users/haskell/received_events","type":"Organization","site_admin":false},"repo":{"id":12241186,"name":"hackage-server","full_name":"haskell/hackage-server","owner":{"login":"haskell","id":450574,"avatar_url":"https://avatars.githubusercontent.com/u/450574?v=3","gravatar_id":"","url":"https://api.github.com/users/haskell","html_url":"https://github.com/haskell","followers_url":"https://api.github.com/users/haskell/followers","following_url":"https://api.github.com/users/haskell/following{/other_user}","gists_url":"https://api.github.com/users/haskell/gists{/gist_id}","starred_url":"https://api.github.com/users/haskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haskell/subscriptions","organizations_url":"https://api.github.com/users/haskell/orgs","repos_url":"https://api.github.com/users/haskell/repos","events_url":"https://api.github.com/users/haskell/events{/privacy}","received_events_url":"https://api.github.com/users/haskell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/haskell/hackage-server","description":"The new Hackage server aka \"Hackage 2\"","fork":false,"url":"https://api.github.com/repos/haskell/hackage-server","forks_url":"https://api.github.com/repos/haskell/hackage-server/forks","keys_url":"https://api.github.com/repos/haskell/hackage-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haskell/hackage-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haskell/hackage-server/teams","hooks_url":"https://api.github.com/repos/haskell/hackage-server/hooks","issue_events_url":"https://api.github.com/repos/haskell/hackage-server/issues/events{/number}","events_url":"https://api.github.com/repos/haskell/hackage-server/events","assignees_url":"https://api.github.com/repos/haskell/hackage-server/assignees{/user}","branches_url":"https://api.github.com/repos/haskell/hackage-server/branches{/branch}","tags_url":"https://api.github.com/repos/haskell/hackage-server/tags","blobs_url":"https://api.github.com/repos/haskell/hackage-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haskell/hackage-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haskell/hackage-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/haskell/hackage-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haskell/hackage-server/statuses/{sha}","languages_url":"https://api.github.com/repos/haskell/hackage-server/languages","stargazers_url":"https://api.github.com/repos/haskell/hackage-server/stargazers","contributors_url":"https://api.github.com/repos/haskell/hackage-server/contributors","subscribers_url":"https://api.github.com/repos/haskell/hackage-server/subscribers","subscription_url":"https://api.github.com/repos/haskell/hackage-server/subscription","commits_url":"https://api.github.com/repos/haskell/hackage-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/haskell/hackage-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/haskell/hackage-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/haskell/hackage-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/haskell/hackage-server/contents/{+path}","compare_url":"https://api.github.com/repos/haskell/hackage-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haskell/hackage-server/merges","archive_url":"https://api.github.com/repos/haskell/hackage-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haskell/hackage-server/downloads","issues_url":"https://api.github.com/repos/haskell/hackage-server/issues{/number}","pulls_url":"https://api.github.com/repos/haskell/hackage-server/pulls{/number}","milestones_url":"https://api.github.com/repos/haskell/hackage-server/milestones{/number}","notifications_url":"https://api.github.com/repos/haskell/hackage-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haskell/hackage-server/labels{/name}","releases_url":"https://api.github.com/repos/haskell/hackage-server/releases{/id}","created_at":"2013-08-20T11:08:21Z","updated_at":"2015-05-10T02:55:43Z","pushed_at":"2015-05-18T18:58:43Z","git_url":"git://github.com/haskell/hackage-server.git","ssh_url":"git@github.com:haskell/hackage-server.git","clone_url":"https://github.com/haskell/hackage-server.git","svn_url":"https://github.com/haskell/hackage-server","homepage":"hackage.haskell.org","size":6764,"stargazers_count":138,"watchers_count":138,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":134,"forks":72,"open_issues":134,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/haskell/hackage-server/pulls/362"},"html":{"href":"https://github.com/haskell/hackage-server/pull/362"},"issue":{"href":"https://api.github.com/repos/haskell/hackage-server/issues/362"},"comments":{"href":"https://api.github.com/repos/haskell/hackage-server/issues/362/comments"},"review_comments":{"href":"https://api.github.com/repos/haskell/hackage-server/pulls/362/comments"},"review_comment":{"href":"https://api.github.com/repos/haskell/hackage-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/haskell/hackage-server/pulls/362/commits"},"statuses":{"href":"https://api.github.com/repos/haskell/hackage-server/statuses/ca731b47d4201770bb59202c2921ea131d0353c2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":109,"deletions":14,"changed_files":4}}