{"action":"created","issue":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/264","labels_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/264/comments","events_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/264/events","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/264","id":30947039,"number":264,"title":"Add Some Events","user":{"login":"aldeed","id":3012067,"avatar_url":"https://avatars.githubusercontent.com/u/3012067?v=3","gravatar_id":"","url":"https://api.github.com/users/aldeed","html_url":"https://github.com/aldeed","followers_url":"https://api.github.com/users/aldeed/followers","following_url":"https://api.github.com/users/aldeed/following{/other_user}","gists_url":"https://api.github.com/users/aldeed/gists{/gist_id}","starred_url":"https://api.github.com/users/aldeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldeed/subscriptions","organizations_url":"https://api.github.com/users/aldeed/orgs","repos_url":"https://api.github.com/users/aldeed/repos","events_url":"https://api.github.com/users/aldeed/events{/privacy}","received_events_url":"https://api.github.com/users/aldeed/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/labels/devel","name":"devel","color":"5319e7"},{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/milestones/4","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/milestones/1.0.0%20CollectionFS%20core","labels_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/milestones/4/labels","id":577829,"number":4,"title":"1.0.0 CollectionFS core","description":"The final remaining items to be able to release the new api for CollectionFS.\r\nIts a complete rewrite and cannot be compared directly with \"0.3.7\".\r\n\r\n* [x] Server files securely over HTTP\r\n* [x] Have the concept of `Storeage Adapters` (SA's) S3/GridFS/FileSystem\r\n* [x] Use streams from endpoint to Storage Adapter\r\n* [x] FS.File - File data with api, makes it much easier to work with\r\n* [x] FS.File - EJSON Custom type - If you drop a FS.File in a Meteor.method or Meteor.Collection its converted to a small reference object etc.\r\n* [x] FS.Data - Allows one to attach data like file/blob/Buffer/url/path/readStream etc.\r\n* [x] Use official GridFS api\r\n* [x] Use official S3 api\r\n* [x] Transformation streams (transformWrite/transformRead)\r\n* [x] Direct gm (graphicMagic) api in transformation streams\r\n* [x] Better throttling for uploads/downloads\r\n* [x] Have the project split into small modular packages making it easier to debug and maintain\r\n* [ ] Add s3cloud, client storage adapter provides uploader and signed url on the server\r\n* [ ] Write tests - Its not released until this field is checked :)","creator":{"login":"aldeed","id":3012067,"avatar_url":"https://avatars.githubusercontent.com/u/3012067?v=3","gravatar_id":"","url":"https://api.github.com/users/aldeed","html_url":"https://github.com/aldeed","followers_url":"https://api.github.com/users/aldeed/followers","following_url":"https://api.github.com/users/aldeed/following{/other_user}","gists_url":"https://api.github.com/users/aldeed/gists{/gist_id}","starred_url":"https://api.github.com/users/aldeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldeed/subscriptions","organizations_url":"https://api.github.com/users/aldeed/orgs","repos_url":"https://api.github.com/users/aldeed/repos","events_url":"https://api.github.com/users/aldeed/events{/privacy}","received_events_url":"https://api.github.com/users/aldeed/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":31,"state":"open","created_at":"2014-02-23T14:03:01Z","updated_at":"2015-04-08T22:28:30Z","due_on":"2014-03-31T07:00:00Z","closed_at":null},"comments":32,"created_at":"2014-04-06T21:02:43Z","updated_at":"2015-05-04T05:38:49Z","closed_at":null,"body":"It's currently hard to get a notification when upload or storage finishes for a file. You have to use Deps to watch the `isUploaded` or `hasCopy` methods. Instead, we can use the Meteor `emitter` package to implement events that are the same on client and server.\r\n\r\nWe need to figure out which events are actually useful, and what objects should emit them:\r\n\r\n* 'uploaded' and 'stored' events emitted by `FS.Collection` would be particularly useful on the client. These will prevent having to set up Deps.autorun to watch the reactive methods.\r\n* Should fileObj emit these events, too?\r\n* Are there other useful events? `uploadError`? `storeError`?\r\n\r\nSee also #235 for discussion and a use case."},"comment":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/comments/98592275","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/264#issuecomment-98592275","issue_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/264","id":98592275,"user":{"login":"raix","id":1136718,"avatar_url":"https://avatars.githubusercontent.com/u/1136718?v=3","gravatar_id":"","url":"https://api.github.com/users/raix","html_url":"https://github.com/raix","followers_url":"https://api.github.com/users/raix/followers","following_url":"https://api.github.com/users/raix/following{/other_user}","gists_url":"https://api.github.com/users/raix/gists{/gist_id}","starred_url":"https://api.github.com/users/raix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raix/subscriptions","organizations_url":"https://api.github.com/users/raix/orgs","repos_url":"https://api.github.com/users/raix/repos","events_url":"https://api.github.com/users/raix/events{/privacy}","received_events_url":"https://api.github.com/users/raix/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T05:38:49Z","updated_at":"2015-05-04T05:38:49Z","body":"Maybe each SA should have it's own eventemitter? \r\n*I was thinking of the event flow in general - we should perhaps do a draft about how we want events in cfs*"}}