{"action":"created","issue":{"url":"https://api.github.com/repos/alteryx-vue/nyt-connector/issues/1","repository_url":"https://api.github.com/repos/alteryx-vue/nyt-connector","labels_url":"https://api.github.com/repos/alteryx-vue/nyt-connector/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/alteryx-vue/nyt-connector/issues/1/comments","events_url":"https://api.github.com/repos/alteryx-vue/nyt-connector/issues/1/events","html_url":"https://github.com/alteryx-vue/nyt-connector/issues/1","id":303975993,"number":1,"title":"API Calls being made at the wrong time","user":{"login":"coxta","id":23061476,"avatar_url":"https://avatars1.githubusercontent.com/u/23061476?v=4","gravatar_id":"","url":"https://api.github.com/users/coxta","html_url":"https://github.com/coxta","followers_url":"https://api.github.com/users/coxta/followers","following_url":"https://api.github.com/users/coxta/following{/other_user}","gists_url":"https://api.github.com/users/coxta/gists{/gist_id}","starred_url":"https://api.github.com/users/coxta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coxta/subscriptions","organizations_url":"https://api.github.com/users/coxta/orgs","repos_url":"https://api.github.com/users/coxta/repos","events_url":"https://api.github.com/users/coxta/events{/privacy}","received_events_url":"https://api.github.com/users/coxta/received_events","type":"User","site_admin":false},"labels":[{"id":809552676,"url":"https://api.github.com/repos/alteryx-vue/nyt-connector/labels/bug","name":"bug","color":"ee0701","default":true},{"id":809552678,"url":"https://api.github.com/repos/alteryx-vue/nyt-connector/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"coxta","id":23061476,"avatar_url":"https://avatars1.githubusercontent.com/u/23061476?v=4","gravatar_id":"","url":"https://api.github.com/users/coxta","html_url":"https://github.com/coxta","followers_url":"https://api.github.com/users/coxta/followers","following_url":"https://api.github.com/users/coxta/following{/other_user}","gists_url":"https://api.github.com/users/coxta/gists{/gist_id}","starred_url":"https://api.github.com/users/coxta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coxta/subscriptions","organizations_url":"https://api.github.com/users/coxta/orgs","repos_url":"https://api.github.com/users/coxta/repos","events_url":"https://api.github.com/users/coxta/events{/privacy}","received_events_url":"https://api.github.com/users/coxta/received_events","type":"User","site_admin":false},"assignees":[{"login":"coxta","id":23061476,"avatar_url":"https://avatars1.githubusercontent.com/u/23061476?v=4","gravatar_id":"","url":"https://api.github.com/users/coxta","html_url":"https://github.com/coxta","followers_url":"https://api.github.com/users/coxta/followers","following_url":"https://api.github.com/users/coxta/following{/other_user}","gists_url":"https://api.github.com/users/coxta/gists{/gist_id}","starred_url":"https://api.github.com/users/coxta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coxta/subscriptions","organizations_url":"https://api.github.com/users/coxta/orgs","repos_url":"https://api.github.com/users/coxta/repos","events_url":"https://api.github.com/users/coxta/events{/privacy}","received_events_url":"https://api.github.com/users/coxta/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-09T20:50:37Z","updated_at":"2018-03-09T21:13:09Z","closed_at":"2018-03-09T21:13:09Z","author_association":"OWNER","body":"Currently making the API calls here:\r\n```\r\nAlteryx.Plugin.PI_PushAllRecords = function(recordLimit) {\r\n ...\r\n}\r\n```\r\nIt seems this should happen somewhere else because the calls end up being made before running an alteryx workflow."},"comment":{"url":"https://api.github.com/repos/alteryx-vue/nyt-connector/issues/comments/371946505","html_url":"https://github.com/alteryx-vue/nyt-connector/issues/1#issuecomment-371946505","issue_url":"https://api.github.com/repos/alteryx-vue/nyt-connector/issues/1","id":371946505,"user":{"login":"coxta","id":23061476,"avatar_url":"https://avatars1.githubusercontent.com/u/23061476?v=4","gravatar_id":"","url":"https://api.github.com/users/coxta","html_url":"https://github.com/coxta","followers_url":"https://api.github.com/users/coxta/followers","following_url":"https://api.github.com/users/coxta/following{/other_user}","gists_url":"https://api.github.com/users/coxta/gists{/gist_id}","starred_url":"https://api.github.com/users/coxta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coxta/subscriptions","organizations_url":"https://api.github.com/users/coxta/orgs","repos_url":"https://api.github.com/users/coxta/repos","events_url":"https://api.github.com/users/coxta/events{/privacy}","received_events_url":"https://api.github.com/users/coxta/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T21:13:09Z","updated_at":"2018-03-09T21:13:09Z","author_association":"OWNER","body":"Current fix (29b8a18b096d5943e4e48208613c249f1cfd402f) is to check recordLimit before making the API calls:\r\n\r\n```\r\nAlteryx.Plugin.PI_PushAllRecords = function(recordLimit)\r\n{\r\n    if (recordLimit.RecordLimit > 0) {\r\n        // go time, make some API calls\r\n    } else {\r\n        // meta push - sending field map for downstream tools\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"coxta"}}