{"action":"created","issue":{"url":"https://api.github.com/repos/Keats/gutenberg/issues/352","repository_url":"https://api.github.com/repos/Keats/gutenberg","labels_url":"https://api.github.com/repos/Keats/gutenberg/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/Keats/gutenberg/issues/352/comments","events_url":"https://api.github.com/repos/Keats/gutenberg/issues/352/events","html_url":"https://github.com/Keats/gutenberg/pull/352","id":345412403,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NTcyOTEz","number":352,"title":"Remove `order` and add `heavier`/`later`","user":{"login":"codesections","id":35405463,"node_id":"MDQ6VXNlcjM1NDA1NDYz","avatar_url":"https://avatars2.githubusercontent.com/u/35405463?v=4","gravatar_id":"","url":"https://api.github.com/users/codesections","html_url":"https://github.com/codesections","followers_url":"https://api.github.com/users/codesections/followers","following_url":"https://api.github.com/users/codesections/following{/other_user}","gists_url":"https://api.github.com/users/codesections/gists{/gist_id}","starred_url":"https://api.github.com/users/codesections/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codesections/subscriptions","organizations_url":"https://api.github.com/users/codesections/orgs","repos_url":"https://api.github.com/users/codesections/repos","events_url":"https://api.github.com/users/codesections/events{/privacy}","received_events_url":"https://api.github.com/users/codesections/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-28T03:03:54Z","updated_at":"2018-07-29T20:32:20Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Keats/gutenberg/pulls/352","html_url":"https://github.com/Keats/gutenberg/pull/352","diff_url":"https://github.com/Keats/gutenberg/pull/352.diff","patch_url":"https://github.com/Keats/gutenberg/pull/352.patch"},"body":"This commit removes the option to sort by order and also removes `page.next` and `page.previous` variables.  Instead, pages can be sorted by two methods `date` and `weight`.  The Tera `reverse` filter will reverse either of those sorts, so the old `order` behavior can be achieved by using the `reverse` filter with `weight`.\r\n\r\nIn place of the `previous`/`next` variables, this commit adds the `page.earlier`/`page.later` variables (which are set when the page is sorted by date) and the `page.heavier`/`page.lighter` variables (which\r\nare set when the page is sorted by weight).  These variables have the advantage of not having confusing semantics when the `reverse` filter is used.\r\n\r\n**Note**: I cannot emphasize this enough—I genuinely do not know how to program in Rust.  This was cargo-cult programing of the worst sort; I was copying lines of code with modifications that seemed to fit the context without true understanding of the surrounding code.  All the tests passed, and things looked good in manual testing, but I genuinely did not know what I was doing and want to be clear about that. "},"comment":{"url":"https://api.github.com/repos/Keats/gutenberg/issues/comments/408703876","html_url":"https://github.com/Keats/gutenberg/pull/352#issuecomment-408703876","issue_url":"https://api.github.com/repos/Keats/gutenberg/issues/352","id":408703876,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODcwMzg3Ng==","user":{"login":"Keats","id":680355,"node_id":"MDQ6VXNlcjY4MDM1NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/680355?v=4","gravatar_id":"","url":"https://api.github.com/users/Keats","html_url":"https://github.com/Keats","followers_url":"https://api.github.com/users/Keats/followers","following_url":"https://api.github.com/users/Keats/following{/other_user}","gists_url":"https://api.github.com/users/Keats/gists{/gist_id}","starred_url":"https://api.github.com/users/Keats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keats/subscriptions","organizations_url":"https://api.github.com/users/Keats/orgs","repos_url":"https://api.github.com/users/Keats/repos","events_url":"https://api.github.com/users/Keats/events{/privacy}","received_events_url":"https://api.github.com/users/Keats/received_events","type":"User","site_admin":false},"created_at":"2018-07-29T20:32:20Z","updated_at":"2018-07-29T20:32:20Z","author_association":"OWNER","body":"I believe there is also the page in templates about Page showing the variables available in templates"}}
{"actor":{"display_login":"Keats"}}