{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/whitehall/issues/2631","repository_url":"https://api.github.com/repos/alphagov/whitehall","labels_url":"https://api.github.com/repos/alphagov/whitehall/issues/2631/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/whitehall/issues/2631/comments","events_url":"https://api.github.com/repos/alphagov/whitehall/issues/2631/events","html_url":"https://github.com/alphagov/whitehall/pull/2631","id":161964066,"number":2631,"title":"Output whitehall model id for sync check failures","user":{"login":"tvararu","id":1650875,"avatar_url":"https://avatars.githubusercontent.com/u/1650875?v=3","gravatar_id":"","url":"https://api.github.com/users/tvararu","html_url":"https://github.com/tvararu","followers_url":"https://api.github.com/users/tvararu/followers","following_url":"https://api.github.com/users/tvararu/following{/other_user}","gists_url":"https://api.github.com/users/tvararu/gists{/gist_id}","starred_url":"https://api.github.com/users/tvararu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvararu/subscriptions","organizations_url":"https://api.github.com/users/tvararu/orgs","repos_url":"https://api.github.com/users/tvararu/repos","events_url":"https://api.github.com/users/tvararu/events{/privacy}","received_events_url":"https://api.github.com/users/tvararu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-23T16:18:04Z","updated_at":"2016-06-23T16:25:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/whitehall/pulls/2631","html_url":"https://github.com/alphagov/whitehall/pull/2631","diff_url":"https://github.com/alphagov/whitehall/pull/2631.diff","patch_url":"https://github.com/alphagov/whitehall/pull/2631.patch"},"body":"Running the sync checks on a restricted set of documents that have previously failed would be simpler if you could have a list of all the `id`s of the offending documents.\r\n\r\nAlso a slight refactoring to make it even clearer at first glance what `ARGV[0]` is being used for.\r\n\r\ncc @gpeng "},"comment":{"url":"https://api.github.com/repos/alphagov/whitehall/issues/comments/228105114","html_url":"https://github.com/alphagov/whitehall/pull/2631#issuecomment-228105114","issue_url":"https://api.github.com/repos/alphagov/whitehall/issues/2631","id":228105114,"user":{"login":"tvararu","id":1650875,"avatar_url":"https://avatars.githubusercontent.com/u/1650875?v=3","gravatar_id":"","url":"https://api.github.com/users/tvararu","html_url":"https://github.com/tvararu","followers_url":"https://api.github.com/users/tvararu/followers","following_url":"https://api.github.com/users/tvararu/following{/other_user}","gists_url":"https://api.github.com/users/tvararu/gists{/gist_id}","starred_url":"https://api.github.com/users/tvararu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvararu/subscriptions","organizations_url":"https://api.github.com/users/tvararu/orgs","repos_url":"https://api.github.com/users/tvararu/repos","events_url":"https://api.github.com/users/tvararu/events{/privacy}","received_events_url":"https://api.github.com/users/tvararu/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T16:25:48Z","updated_at":"2016-06-23T16:25:48Z","body":"This PR doesn't cover a full way to easily rerun the sync checks on the previously failing items. With it, you can get the list in a CSV, but you'd still have to parse it manually.\r\n\r\nIs the best possible way to do this reducing the scope further maybe at [this point](https://github.com/alphagov/whitehall/blob/219d84e149517dd11438ab5651c55bd901f72d70/lib/data_hygiene/publishing_api_sync_check.rb#L70)? If it sounds good I'll add another commit for:\r\n\r\n- Reading the previous CSV file.\r\n- Parsing the list of `id`s.\r\n- `@scope = scope.where(id: ids)`."}}
{"actor":{"display_login":"tvararu"}}