{"action":"closed","issue":{"url":"https://api.github.com/repos/Kinto/kinto/issues/677","repository_url":"https://api.github.com/repos/Kinto/kinto","labels_url":"https://api.github.com/repos/Kinto/kinto/issues/677/labels{/name}","comments_url":"https://api.github.com/repos/Kinto/kinto/issues/677/comments","events_url":"https://api.github.com/repos/Kinto/kinto/issues/677/events","html_url":"https://github.com/Kinto/kinto/issues/677","id":159148764,"number":677,"title":"Hook to change the POSTed/PUTed json data","user":{"login":"tarekziade","id":250019,"avatar_url":"https://avatars.githubusercontent.com/u/250019?v=3","gravatar_id":"","url":"https://api.github.com/users/tarekziade","html_url":"https://github.com/tarekziade","followers_url":"https://api.github.com/users/tarekziade/followers","following_url":"https://api.github.com/users/tarekziade/following{/other_user}","gists_url":"https://api.github.com/users/tarekziade/gists{/gist_id}","starred_url":"https://api.github.com/users/tarekziade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarekziade/subscriptions","organizations_url":"https://api.github.com/users/tarekziade/orgs","repos_url":"https://api.github.com/users/tarekziade/repos","events_url":"https://api.github.com/users/tarekziade/events{/privacy}","received_events_url":"https://api.github.com/users/tarekziade/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kinto/kinto/labels/easy-pick","name":"easy-pick","color":"fbca04"},{"url":"https://api.github.com/repos/Kinto/kinto/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"tarekziade","id":250019,"avatar_url":"https://avatars.githubusercontent.com/u/250019?v=3","gravatar_id":"","url":"https://api.github.com/users/tarekziade","html_url":"https://github.com/tarekziade","followers_url":"https://api.github.com/users/tarekziade/followers","following_url":"https://api.github.com/users/tarekziade/following{/other_user}","gists_url":"https://api.github.com/users/tarekziade/gists{/gist_id}","starred_url":"https://api.github.com/users/tarekziade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarekziade/subscriptions","organizations_url":"https://api.github.com/users/tarekziade/orgs","repos_url":"https://api.github.com/users/tarekziade/repos","events_url":"https://api.github.com/users/tarekziade/events{/privacy}","received_events_url":"https://api.github.com/users/tarekziade/received_events","type":"User","site_admin":false},"assignees":[{"login":"tarekziade","id":250019,"avatar_url":"https://avatars.githubusercontent.com/u/250019?v=3","gravatar_id":"","url":"https://api.github.com/users/tarekziade","html_url":"https://github.com/tarekziade","followers_url":"https://api.github.com/users/tarekziade/followers","following_url":"https://api.github.com/users/tarekziade/following{/other_user}","gists_url":"https://api.github.com/users/tarekziade/gists{/gist_id}","starred_url":"https://api.github.com/users/tarekziade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarekziade/subscriptions","organizations_url":"https://api.github.com/users/tarekziade/orgs","repos_url":"https://api.github.com/users/tarekziade/repos","events_url":"https://api.github.com/users/tarekziade/events{/privacy}","received_events_url":"https://api.github.com/users/tarekziade/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-06-08T12:14:17Z","updated_at":"2016-08-01T07:30:01Z","closed_at":"2016-08-01T07:30:01Z","body":"For Fennec, we need to convert the file that's uploaded via the kinto-admin and add some info.\r\n\r\nSpecifically, the \"original\" key you see here https://github.com/pocmo/Fennec-DLC-Catalog/blob/master/create_catalog.py#L136 is added to keep track of the original file, and the file itself is zipped.\r\n\r\nThe goal is to let users upload fonts file in kinto admin and let Kinto take care of all the gzipping work\r\n\r\nTo do this, I propose the addition of a `kinto.core.events.BeforeResourceChanged` event, that will let us manipulate the json data right before it's turned into a SQL record and pushed in the database (and before the file is pushed in S3 via the kinto-attachment plugin)\r\n"}}
{"actor":{"display_login":"tarekziade"}}