{"action":"closed","number":38,"pull_request":{"url":"https://api.github.com/repos/LiYChristopher/festify/pulls/38","id":58378609,"html_url":"https://github.com/LiYChristopher/festify/pull/38","diff_url":"https://github.com/LiYChristopher/festify/pull/38.diff","patch_url":"https://github.com/LiYChristopher/festify/pull/38.patch","issue_url":"https://api.github.com/repos/LiYChristopher/festify/issues/38","number":38,"state":"closed","locked":false,"title":"Fest view","user":{"login":"LiYChristopher","id":8753561,"avatar_url":"https://avatars.githubusercontent.com/u/8753561?v=3","gravatar_id":"","url":"https://api.github.com/users/LiYChristopher","html_url":"https://github.com/LiYChristopher","followers_url":"https://api.github.com/users/LiYChristopher/followers","following_url":"https://api.github.com/users/LiYChristopher/following{/other_user}","gists_url":"https://api.github.com/users/LiYChristopher/gists{/gist_id}","starred_url":"https://api.github.com/users/LiYChristopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiYChristopher/subscriptions","organizations_url":"https://api.github.com/users/LiYChristopher/orgs","repos_url":"https://api.github.com/users/LiYChristopher/repos","events_url":"https://api.github.com/users/LiYChristopher/events{/privacy}","received_events_url":"https://api.github.com/users/LiYChristopher/received_events","type":"User","site_admin":false},"body":"Made this a pull request so you can see the differences in code - there's quite a bit of change. \r\n\r\n1) The login seems a little wonky now - after you log in and restart the server for testing purposes, you will end up needing to click create festival twice, or once and then join festival for things to work. Just a caveat\r\n\r\n2) You'll notice a new route\r\n\r\n```\r\n@app.route('/festival/create_new', methods=['GET'])\r\ndef new():\r\n     ...\r\n```\r\n\r\nThe purpose of this view is to create a basic database entry for the festival (notice the passing in of None values), but we create the url_slug (it's a hash function made up of the user_id, current datetime and random bytes at the end to ensure uniqueness). and a catalog that will be referenced.\r\n\r\nThis is following the thought process that there's one catalog per festival. By default, the festival owner's preferences should be automatically loaded into the catalog. I don't think this is done at the moment as I was just trying to achieve flow at this point, but this was the intention.\r\n\r\nAfter the festival has been created, you're redirected to its URL at:\r\n\r\n```\r\n@app.route('/festival/<url_slug>')\r\ndef festival(url_slug):\r\n    ....\r\n```\r\n\r\nThis is where you will adjust parameters and what not. When you click generate, the playlist information is saved in the corresponding dB entry based on the url_slug - not the festivalId (had to change that for this). \r\n\r\nIf User A were to give the festival ID (for the purpose of the end user, this is the url_slug, for us its the unique ID in mysql) to User B, he/she can input that in the join festival box, and be redirected to the festival URL, where their preferences will be loaded into the festival's catalog.\r\n\r\nThis is all i've gotten so far, as I was feeling a little brain dead today and it's becoming increasingly difficult to sift through code/our integrated systems. But this is my take on the flow - there clearly isn't much function to it at this point.\r\n\r\nNot set in stone, and if nothing at all can serve as a foundation for something we can really nail down.","created_at":"2016-02-05T01:54:00Z","updated_at":"2016-02-05T14:47:25Z","closed_at":"2016-02-05T14:47:25Z","merged_at":null,"merge_commit_sha":"2972d85de90959eb4f662b254d83e30a5fbe1643","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LiYChristopher/festify/pulls/38/commits","review_comments_url":"https://api.github.com/repos/LiYChristopher/festify/pulls/38/comments","review_comment_url":"https://api.github.com/repos/LiYChristopher/festify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LiYChristopher/festify/issues/38/comments","statuses_url":"https://api.github.com/repos/LiYChristopher/festify/statuses/e33c24bb9d8040ac22b116734271209bb42ceabd","head":{"label":"LiYChristopher:fest_view","ref":"fest_view","sha":"e33c24bb9d8040ac22b116734271209bb42ceabd","user":{"login":"LiYChristopher","id":8753561,"avatar_url":"https://avatars.githubusercontent.com/u/8753561?v=3","gravatar_id":"","url":"https://api.github.com/users/LiYChristopher","html_url":"https://github.com/LiYChristopher","followers_url":"https://api.github.com/users/LiYChristopher/followers","following_url":"https://api.github.com/users/LiYChristopher/following{/other_user}","gists_url":"https://api.github.com/users/LiYChristopher/gists{/gist_id}","starred_url":"https://api.github.com/users/LiYChristopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiYChristopher/subscriptions","organizations_url":"https://api.github.com/users/LiYChristopher/orgs","repos_url":"https://api.github.com/users/LiYChristopher/repos","events_url":"https://api.github.com/users/LiYChristopher/events{/privacy}","received_events_url":"https://api.github.com/users/LiYChristopher/received_events","type":"User","site_admin":false},"repo":{"id":50144566,"name":"festify","full_name":"LiYChristopher/festify","owner":{"login":"LiYChristopher","id":8753561,"avatar_url":"https://avatars.githubusercontent.com/u/8753561?v=3","gravatar_id":"","url":"https://api.github.com/users/LiYChristopher","html_url":"https://github.com/LiYChristopher","followers_url":"https://api.github.com/users/LiYChristopher/followers","following_url":"https://api.github.com/users/LiYChristopher/following{/other_user}","gists_url":"https://api.github.com/users/LiYChristopher/gists{/gist_id}","starred_url":"https://api.github.com/users/LiYChristopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiYChristopher/subscriptions","organizations_url":"https://api.github.com/users/LiYChristopher/orgs","repos_url":"https://api.github.com/users/LiYChristopher/repos","events_url":"https://api.github.com/users/LiYChristopher/events{/privacy}","received_events_url":"https://api.github.com/users/LiYChristopher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LiYChristopher/festify","description":null,"fork":false,"url":"https://api.github.com/repos/LiYChristopher/festify","forks_url":"https://api.github.com/repos/LiYChristopher/festify/forks","keys_url":"https://api.github.com/repos/LiYChristopher/festify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LiYChristopher/festify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LiYChristopher/festify/teams","hooks_url":"https://api.github.com/repos/LiYChristopher/festify/hooks","issue_events_url":"https://api.github.com/repos/LiYChristopher/festify/issues/events{/number}","events_url":"https://api.github.com/repos/LiYChristopher/festify/events","assignees_url":"https://api.github.com/repos/LiYChristopher/festify/assignees{/user}","branches_url":"https://api.github.com/repos/LiYChristopher/festify/branches{/branch}","tags_url":"https://api.github.com/repos/LiYChristopher/festify/tags","blobs_url":"https://api.github.com/repos/LiYChristopher/festify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LiYChristopher/festify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LiYChristopher/festify/git/refs{/sha}","trees_url":"https://api.github.com/repos/LiYChristopher/festify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LiYChristopher/festify/statuses/{sha}","languages_url":"https://api.github.com/repos/LiYChristopher/festify/languages","stargazers_url":"https://api.github.com/repos/LiYChristopher/festify/stargazers","contributors_url":"https://api.github.com/repos/LiYChristopher/festify/contributors","subscribers_url":"https://api.github.com/repos/LiYChristopher/festify/subscribers","subscription_url":"https://api.github.com/repos/LiYChristopher/festify/subscription","commits_url":"https://api.github.com/repos/LiYChristopher/festify/commits{/sha}","git_commits_url":"https://api.github.com/repos/LiYChristopher/festify/git/commits{/sha}","comments_url":"https://api.github.com/repos/LiYChristopher/festify/comments{/number}","issue_comment_url":"https://api.github.com/repos/LiYChristopher/festify/issues/comments{/number}","contents_url":"https://api.github.com/repos/LiYChristopher/festify/contents/{+path}","compare_url":"https://api.github.com/repos/LiYChristopher/festify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LiYChristopher/festify/merges","archive_url":"https://api.github.com/repos/LiYChristopher/festify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LiYChristopher/festify/downloads","issues_url":"https://api.github.com/repos/LiYChristopher/festify/issues{/number}","pulls_url":"https://api.github.com/repos/LiYChristopher/festify/pulls{/number}","milestones_url":"https://api.github.com/repos/LiYChristopher/festify/milestones{/number}","notifications_url":"https://api.github.com/repos/LiYChristopher/festify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LiYChristopher/festify/labels{/name}","releases_url":"https://api.github.com/repos/LiYChristopher/festify/releases{/id}","deployments_url":"https://api.github.com/repos/LiYChristopher/festify/deployments","created_at":"2016-01-21T23:42:55Z","updated_at":"2016-01-25T17:58:02Z","pushed_at":"2016-02-05T13:45:31Z","git_url":"git://github.com/LiYChristopher/festify.git","ssh_url":"git@github.com:LiYChristopher/festify.git","clone_url":"https://github.com/LiYChristopher/festify.git","svn_url":"https://github.com/LiYChristopher/festify","homepage":null,"size":225,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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":"LiYChristopher:master","ref":"master","sha":"97ee126511066ce31bfd6b4f6597096c91391829","user":{"login":"LiYChristopher","id":8753561,"avatar_url":"https://avatars.githubusercontent.com/u/8753561?v=3","gravatar_id":"","url":"https://api.github.com/users/LiYChristopher","html_url":"https://github.com/LiYChristopher","followers_url":"https://api.github.com/users/LiYChristopher/followers","following_url":"https://api.github.com/users/LiYChristopher/following{/other_user}","gists_url":"https://api.github.com/users/LiYChristopher/gists{/gist_id}","starred_url":"https://api.github.com/users/LiYChristopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiYChristopher/subscriptions","organizations_url":"https://api.github.com/users/LiYChristopher/orgs","repos_url":"https://api.github.com/users/LiYChristopher/repos","events_url":"https://api.github.com/users/LiYChristopher/events{/privacy}","received_events_url":"https://api.github.com/users/LiYChristopher/received_events","type":"User","site_admin":false},"repo":{"id":50144566,"name":"festify","full_name":"LiYChristopher/festify","owner":{"login":"LiYChristopher","id":8753561,"avatar_url":"https://avatars.githubusercontent.com/u/8753561?v=3","gravatar_id":"","url":"https://api.github.com/users/LiYChristopher","html_url":"https://github.com/LiYChristopher","followers_url":"https://api.github.com/users/LiYChristopher/followers","following_url":"https://api.github.com/users/LiYChristopher/following{/other_user}","gists_url":"https://api.github.com/users/LiYChristopher/gists{/gist_id}","starred_url":"https://api.github.com/users/LiYChristopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiYChristopher/subscriptions","organizations_url":"https://api.github.com/users/LiYChristopher/orgs","repos_url":"https://api.github.com/users/LiYChristopher/repos","events_url":"https://api.github.com/users/LiYChristopher/events{/privacy}","received_events_url":"https://api.github.com/users/LiYChristopher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LiYChristopher/festify","description":null,"fork":false,"url":"https://api.github.com/repos/LiYChristopher/festify","forks_url":"https://api.github.com/repos/LiYChristopher/festify/forks","keys_url":"https://api.github.com/repos/LiYChristopher/festify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LiYChristopher/festify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LiYChristopher/festify/teams","hooks_url":"https://api.github.com/repos/LiYChristopher/festify/hooks","issue_events_url":"https://api.github.com/repos/LiYChristopher/festify/issues/events{/number}","events_url":"https://api.github.com/repos/LiYChristopher/festify/events","assignees_url":"https://api.github.com/repos/LiYChristopher/festify/assignees{/user}","branches_url":"https://api.github.com/repos/LiYChristopher/festify/branches{/branch}","tags_url":"https://api.github.com/repos/LiYChristopher/festify/tags","blobs_url":"https://api.github.com/repos/LiYChristopher/festify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LiYChristopher/festify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LiYChristopher/festify/git/refs{/sha}","trees_url":"https://api.github.com/repos/LiYChristopher/festify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LiYChristopher/festify/statuses/{sha}","languages_url":"https://api.github.com/repos/LiYChristopher/festify/languages","stargazers_url":"https://api.github.com/repos/LiYChristopher/festify/stargazers","contributors_url":"https://api.github.com/repos/LiYChristopher/festify/contributors","subscribers_url":"https://api.github.com/repos/LiYChristopher/festify/subscribers","subscription_url":"https://api.github.com/repos/LiYChristopher/festify/subscription","commits_url":"https://api.github.com/repos/LiYChristopher/festify/commits{/sha}","git_commits_url":"https://api.github.com/repos/LiYChristopher/festify/git/commits{/sha}","comments_url":"https://api.github.com/repos/LiYChristopher/festify/comments{/number}","issue_comment_url":"https://api.github.com/repos/LiYChristopher/festify/issues/comments{/number}","contents_url":"https://api.github.com/repos/LiYChristopher/festify/contents/{+path}","compare_url":"https://api.github.com/repos/LiYChristopher/festify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LiYChristopher/festify/merges","archive_url":"https://api.github.com/repos/LiYChristopher/festify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LiYChristopher/festify/downloads","issues_url":"https://api.github.com/repos/LiYChristopher/festify/issues{/number}","pulls_url":"https://api.github.com/repos/LiYChristopher/festify/pulls{/number}","milestones_url":"https://api.github.com/repos/LiYChristopher/festify/milestones{/number}","notifications_url":"https://api.github.com/repos/LiYChristopher/festify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LiYChristopher/festify/labels{/name}","releases_url":"https://api.github.com/repos/LiYChristopher/festify/releases{/id}","deployments_url":"https://api.github.com/repos/LiYChristopher/festify/deployments","created_at":"2016-01-21T23:42:55Z","updated_at":"2016-01-25T17:58:02Z","pushed_at":"2016-02-05T13:45:31Z","git_url":"git://github.com/LiYChristopher/festify.git","ssh_url":"git@github.com:LiYChristopher/festify.git","clone_url":"https://github.com/LiYChristopher/festify.git","svn_url":"https://github.com/LiYChristopher/festify","homepage":null,"size":225,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/LiYChristopher/festify/pulls/38"},"html":{"href":"https://github.com/LiYChristopher/festify/pull/38"},"issue":{"href":"https://api.github.com/repos/LiYChristopher/festify/issues/38"},"comments":{"href":"https://api.github.com/repos/LiYChristopher/festify/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/LiYChristopher/festify/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/LiYChristopher/festify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LiYChristopher/festify/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/LiYChristopher/festify/statuses/e33c24bb9d8040ac22b116734271209bb42ceabd"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":198,"deletions":129,"changed_files":6}}