{"action":"created","issue":{"url":"https://api.github.com/repos/roast-cms/analog-cafe-server/issues/249","repository_url":"https://api.github.com/repos/roast-cms/analog-cafe-server","labels_url":"https://api.github.com/repos/roast-cms/analog-cafe-server/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/roast-cms/analog-cafe-server/issues/249/comments","events_url":"https://api.github.com/repos/roast-cms/analog-cafe-server/issues/249/events","html_url":"https://github.com/roast-cms/analog-cafe-server/issues/249","id":312434323,"node_id":"MDU6SXNzdWUzMTI0MzQzMjM=","number":249,"title":"Publish scheduler","user":{"login":"dmitrizzle","id":8587882,"node_id":"MDQ6VXNlcjg1ODc4ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/8587882?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrizzle","html_url":"https://github.com/dmitrizzle","followers_url":"https://api.github.com/users/dmitrizzle/followers","following_url":"https://api.github.com/users/dmitrizzle/following{/other_user}","gists_url":"https://api.github.com/users/dmitrizzle/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrizzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrizzle/subscriptions","organizations_url":"https://api.github.com/users/dmitrizzle/orgs","repos_url":"https://api.github.com/users/dmitrizzle/repos","events_url":"https://api.github.com/users/dmitrizzle/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrizzle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ice5050","id":2921893,"node_id":"MDQ6VXNlcjI5MjE4OTM=","avatar_url":"https://avatars3.githubusercontent.com/u/2921893?v=4","gravatar_id":"","url":"https://api.github.com/users/ice5050","html_url":"https://github.com/ice5050","followers_url":"https://api.github.com/users/ice5050/followers","following_url":"https://api.github.com/users/ice5050/following{/other_user}","gists_url":"https://api.github.com/users/ice5050/gists{/gist_id}","starred_url":"https://api.github.com/users/ice5050/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice5050/subscriptions","organizations_url":"https://api.github.com/users/ice5050/orgs","repos_url":"https://api.github.com/users/ice5050/repos","events_url":"https://api.github.com/users/ice5050/events{/privacy}","received_events_url":"https://api.github.com/users/ice5050/received_events","type":"User","site_admin":false},"assignees":[{"login":"ice5050","id":2921893,"node_id":"MDQ6VXNlcjI5MjE4OTM=","avatar_url":"https://avatars3.githubusercontent.com/u/2921893?v=4","gravatar_id":"","url":"https://api.github.com/users/ice5050","html_url":"https://github.com/ice5050","followers_url":"https://api.github.com/users/ice5050/followers","following_url":"https://api.github.com/users/ice5050/following{/other_user}","gists_url":"https://api.github.com/users/ice5050/gists{/gist_id}","starred_url":"https://api.github.com/users/ice5050/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice5050/subscriptions","organizations_url":"https://api.github.com/users/ice5050/orgs","repos_url":"https://api.github.com/users/ice5050/repos","events_url":"https://api.github.com/users/ice5050/events{/privacy}","received_events_url":"https://api.github.com/users/ice5050/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-04-09T08:12:23Z","updated_at":"2018-09-09T03:13:14Z","closed_at":null,"author_association":"COLLABORATOR","body":"- [x] Change `numberOfPublish` to `batchSize` - **how will the multiple articles be sorted in db?**\r\n- [x] Change `publishDays` to `weekdaySchedule` - **how does this work with Heroku, since Heroku runs the command every day? Does the order of numbers in this array matter (i.e., will this still be OK: `[1,7,3,2]`)?**\r\n- [x] Write API that could change the numbers above\r\n- [x] Write API to see the **list of submissions currently in the queue**\r\n- [x] 🆕 Write API to remove items from queue\r\n- [ ] Set up Heroku to run the command on time of day\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/roast-cms/analog-cafe-server/issues/comments/419687587","html_url":"https://github.com/roast-cms/analog-cafe-server/issues/249#issuecomment-419687587","issue_url":"https://api.github.com/repos/roast-cms/analog-cafe-server/issues/249","id":419687587,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTY4NzU4Nw==","user":{"login":"dmitrizzle","id":8587882,"node_id":"MDQ6VXNlcjg1ODc4ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/8587882?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrizzle","html_url":"https://github.com/dmitrizzle","followers_url":"https://api.github.com/users/dmitrizzle/followers","following_url":"https://api.github.com/users/dmitrizzle/following{/other_user}","gists_url":"https://api.github.com/users/dmitrizzle/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrizzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrizzle/subscriptions","organizations_url":"https://api.github.com/users/dmitrizzle/orgs","repos_url":"https://api.github.com/users/dmitrizzle/repos","events_url":"https://api.github.com/users/dmitrizzle/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrizzle/received_events","type":"User","site_admin":false},"created_at":"2018-09-09T03:13:14Z","updated_at":"2018-09-09T03:13:14Z","author_association":"COLLABORATOR","body":"Hey @ice5050, I've tested the schedule, there are still some issues:\r\n- DELETE `/submissions/order/:submissionId` returns `{ \"message\": \"No schedule order\" }`\r\n- PUT `/submissions/order/:submissionId` returns `{ \"message\": \"No schedule order\" }`\r\n- POST `/submissions/:submissionId/approve` works as expected, with `scheduledOrder: 0` publishing immediately and `order: 1` adding to queue of scheduled posts. This API is counter intuitive, I will push to https://github.com/roast-cms/analog-cafe-server/pull/281 to change that in the next couple of hours.\r\n"}}
{"actor":{"display_login":"dmitrizzle"}}