{"action":"created","issue":{"url":"https://api.github.com/repos/tableau-mkt/entity_xliff_ftp/issues/16","repository_url":"https://api.github.com/repos/tableau-mkt/entity_xliff_ftp","labels_url":"https://api.github.com/repos/tableau-mkt/entity_xliff_ftp/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/tableau-mkt/entity_xliff_ftp/issues/16/comments","events_url":"https://api.github.com/repos/tableau-mkt/entity_xliff_ftp/issues/16/events","html_url":"https://github.com/tableau-mkt/entity_xliff_ftp/issues/16","id":132306920,"number":16,"title":"Update web service endpoint with ability to process only a subset of XLIFFs","user":{"login":"iamEAP","id":3496491,"avatar_url":"https://avatars.githubusercontent.com/u/3496491?v=3","gravatar_id":"","url":"https://api.github.com/users/iamEAP","html_url":"https://github.com/iamEAP","followers_url":"https://api.github.com/users/iamEAP/followers","following_url":"https://api.github.com/users/iamEAP/following{/other_user}","gists_url":"https://api.github.com/users/iamEAP/gists{/gist_id}","starred_url":"https://api.github.com/users/iamEAP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamEAP/subscriptions","organizations_url":"https://api.github.com/users/iamEAP/orgs","repos_url":"https://api.github.com/users/iamEAP/repos","events_url":"https://api.github.com/users/iamEAP/events{/privacy}","received_events_url":"https://api.github.com/users/iamEAP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"iamEAP","id":3496491,"avatar_url":"https://avatars.githubusercontent.com/u/3496491?v=3","gravatar_id":"","url":"https://api.github.com/users/iamEAP","html_url":"https://github.com/iamEAP","followers_url":"https://api.github.com/users/iamEAP/followers","following_url":"https://api.github.com/users/iamEAP/following{/other_user}","gists_url":"https://api.github.com/users/iamEAP/gists{/gist_id}","starred_url":"https://api.github.com/users/iamEAP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamEAP/subscriptions","organizations_url":"https://api.github.com/users/iamEAP/orgs","repos_url":"https://api.github.com/users/iamEAP/repos","events_url":"https://api.github.com/users/iamEAP/events{/privacy}","received_events_url":"https://api.github.com/users/iamEAP/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-02-09T01:33:35Z","updated_at":"2016-03-09T01:17:37Z","closed_at":null,"body":"Related to #14, another potential optimization is to allow the web service endpoint to take a JSON request body specifying entity types, entity IDs, and languages to be processed.\r\n\r\nThis could potentially defer the need to batch things until things get _very_ big.\r\n\r\n## Proposed JSON body format:\r\nAn array of entity objects to be processed.  Each entity consists of an `entityType` key (whose value is a string representing the Drupal entity type), an `entityID` key (whose value is an integer representing the Drupal entity ID), and a `languages` key (whose value represents an array of Drupal languages).`\r\n\r\n__POST__ `/sync-xliffs-from-remote?key=[cron_key]`\r\n__Request Body Example__:\r\n```json\r\n[{\r\n    \"entityType\": \"node\",\r\n    \"entityId\": 123,\r\n    \"languages\": [\r\n        \"zh-cn\",\r\n        \"de\",\r\n        \"ja\"\r\n    ]\r\n}, {\r\n    \"entityType\": \"taxonomy_term\",\r\n    \"entityId\": 456,\r\n    \"languages\": [\r\n        \"es\"\r\n    ]\r\n}]\r\n```\r\n\r\nIn the above example, 4 XLIFF files would be processed for two entities.\r\n\r\nIf no body is specified, then the current behavior would continue (processing everything available).\r\n\r\nNo changes to the response format or response codes."},"comment":{"url":"https://api.github.com/repos/tableau-mkt/entity_xliff_ftp/issues/comments/194053861","html_url":"https://github.com/tableau-mkt/entity_xliff_ftp/issues/16#issuecomment-194053861","issue_url":"https://api.github.com/repos/tableau-mkt/entity_xliff_ftp/issues/16","id":194053861,"user":{"login":"iamEAP","id":3496491,"avatar_url":"https://avatars.githubusercontent.com/u/3496491?v=3","gravatar_id":"","url":"https://api.github.com/users/iamEAP","html_url":"https://github.com/iamEAP","followers_url":"https://api.github.com/users/iamEAP/followers","following_url":"https://api.github.com/users/iamEAP/following{/other_user}","gists_url":"https://api.github.com/users/iamEAP/gists{/gist_id}","starred_url":"https://api.github.com/users/iamEAP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamEAP/subscriptions","organizations_url":"https://api.github.com/users/iamEAP/orgs","repos_url":"https://api.github.com/users/iamEAP/repos","events_url":"https://api.github.com/users/iamEAP/events{/privacy}","received_events_url":"https://api.github.com/users/iamEAP/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T01:17:37Z","updated_at":"2016-03-09T01:17:37Z","body":"Should probably include an alter to allow other modules to make changes to the payload...  Notably, the lang code might be of use to modify (this is possible at the Entity XLIFF level, for instance)."}}