{"action":"created","issue":{"url":"https://api.github.com/repos/pluralsight/guides-cms/issues/93","repository_url":"https://api.github.com/repos/pluralsight/guides-cms","labels_url":"https://api.github.com/repos/pluralsight/guides-cms/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/pluralsight/guides-cms/issues/93/comments","events_url":"https://api.github.com/repos/pluralsight/guides-cms/issues/93/events","html_url":"https://github.com/pluralsight/guides-cms/pull/93","id":160389614,"number":93,"title":"Add banner for guides participating in tutorial contest","user":{"login":"durden","id":58063,"avatar_url":"https://avatars.githubusercontent.com/u/58063?v=3","gravatar_id":"","url":"https://api.github.com/users/durden","html_url":"https://github.com/durden","followers_url":"https://api.github.com/users/durden/followers","following_url":"https://api.github.com/users/durden/following{/other_user}","gists_url":"https://api.github.com/users/durden/gists{/gist_id}","starred_url":"https://api.github.com/users/durden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durden/subscriptions","organizations_url":"https://api.github.com/users/durden/orgs","repos_url":"https://api.github.com/users/durden/repos","events_url":"https://api.github.com/users/durden/events{/privacy}","received_events_url":"https://api.github.com/users/durden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T10:31:28Z","updated_at":"2016-06-15T10:36:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pluralsight/guides-cms/pulls/93","html_url":"https://github.com/pluralsight/guides-cms/pull/93","diff_url":"https://github.com/pluralsight/guides-cms/pull/93.diff","patch_url":"https://github.com/pluralsight/guides-cms/pull/93.patch"},"body":"This PR builds on the code in #92 to add a banner to every guide submitted during any tutorial contest that is currently running."},"comment":{"url":"https://api.github.com/repos/pluralsight/guides-cms/issues/comments/226150555","html_url":"https://github.com/pluralsight/guides-cms/pull/93#issuecomment-226150555","issue_url":"https://api.github.com/repos/pluralsight/guides-cms/issues/93","id":226150555,"user":{"login":"durden","id":58063,"avatar_url":"https://avatars.githubusercontent.com/u/58063?v=3","gravatar_id":"","url":"https://api.github.com/users/durden","html_url":"https://github.com/durden","followers_url":"https://api.github.com/users/durden/followers","following_url":"https://api.github.com/users/durden/following{/other_user}","gists_url":"https://api.github.com/users/durden/gists{/gist_id}","starred_url":"https://api.github.com/users/durden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durden/subscriptions","organizations_url":"https://api.github.com/users/durden/orgs","repos_url":"https://api.github.com/users/durden/repos","events_url":"https://api.github.com/users/durden/events{/privacy}","received_events_url":"https://api.github.com/users/durden/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T10:36:41Z","updated_at":"2016-06-15T10:36:41Z","body":"I'll rebase these changes after the publish_date PR is accepted because this change depends on and includes those changes.  The end result of this PR is a small banner to distinguish guides participating in the tutorial contest:\r\n\r\n<img width=\"1267\" alt=\"screenshot 2016-06-15 12 32 29\" src=\"https://cloud.githubusercontent.com/assets/58063/16076746/3e669dda-32f5-11e6-9c3b-ae35ab7f2891.png\">\r\n\r\nWe can easily change this banner to be some kind of image or something prettier.  This is just a suggestion.  You can see an example of this code running on the [staging site](http://pskb-stage.herokuapp.com/).\r\n\r\nA guide is considered to be part of the contest if it's creation date falls within the start and end date of the contest, which are setup as new environment variables in the application environment.\r\n\r\nWe could further narrow down guides in the contest if we segmented based on stacks that are part of the sponsor list.  However, we keep getting new sponsors so we could potentially have to change the list of stacks included in the contest.  So, this implementation keeps things simple since the start/end date of the contest is fixed.\r\n\r\nFurthermore, segmented based on stack still wouldn't tell the whole story.  For example, if a guide is submitted in the 'interesting apis' stack it could be for an API that is not part of the contest anyway.  So, it seems like there's no benefit to restricting this banner by which stack the guide is submitted into.\r\n\r\nWhat do you think @prtkgpt ?"}}
{"actor":{"display_login":"durden"}}