{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/2531","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/2531/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/2531/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/2531/events","html_url":"https://github.com/serverless/serverless/issues/2531","id":185038302,"number":2531,"title":"Serverless invoke local plugin","user":{"login":"flomotlik","id":132653,"avatar_url":"https://avatars.githubusercontent.com/u/132653?v=3","gravatar_id":"","url":"https://api.github.com/users/flomotlik","html_url":"https://github.com/flomotlik","followers_url":"https://api.github.com/users/flomotlik/followers","following_url":"https://api.github.com/users/flomotlik/following{/other_user}","gists_url":"https://api.github.com/users/flomotlik/gists{/gist_id}","starred_url":"https://api.github.com/users/flomotlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flomotlik/subscriptions","organizations_url":"https://api.github.com/users/flomotlik/orgs","repos_url":"https://api.github.com/users/flomotlik/repos","events_url":"https://api.github.com/users/flomotlik/events{/privacy}","received_events_url":"https://api.github.com/users/flomotlik/received_events","type":"User","site_admin":false},"labels":[{"id":376236320,"url":"https://api.github.com/repos/serverless/serverless/labels/area/serverless-core","name":"area/serverless-core","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"eahefnawy","id":2312463,"avatar_url":"https://avatars.githubusercontent.com/u/2312463?v=3","gravatar_id":"","url":"https://api.github.com/users/eahefnawy","html_url":"https://github.com/eahefnawy","followers_url":"https://api.github.com/users/eahefnawy/followers","following_url":"https://api.github.com/users/eahefnawy/following{/other_user}","gists_url":"https://api.github.com/users/eahefnawy/gists{/gist_id}","starred_url":"https://api.github.com/users/eahefnawy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eahefnawy/subscriptions","organizations_url":"https://api.github.com/users/eahefnawy/orgs","repos_url":"https://api.github.com/users/eahefnawy/repos","events_url":"https://api.github.com/users/eahefnawy/events{/privacy}","received_events_url":"https://api.github.com/users/eahefnawy/received_events","type":"User","site_admin":false},"assignees":[{"login":"eahefnawy","id":2312463,"avatar_url":"https://avatars.githubusercontent.com/u/2312463?v=3","gravatar_id":"","url":"https://api.github.com/users/eahefnawy","html_url":"https://github.com/eahefnawy","followers_url":"https://api.github.com/users/eahefnawy/followers","following_url":"https://api.github.com/users/eahefnawy/following{/other_user}","gists_url":"https://api.github.com/users/eahefnawy/gists{/gist_id}","starred_url":"https://api.github.com/users/eahefnawy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eahefnawy/subscriptions","organizations_url":"https://api.github.com/users/eahefnawy/orgs","repos_url":"https://api.github.com/users/eahefnawy/repos","events_url":"https://api.github.com/users/eahefnawy/events{/privacy}","received_events_url":"https://api.github.com/users/eahefnawy/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/serverless/serverless/milestones/15","html_url":"https://github.com/serverless/serverless/milestones/1.1","labels_url":"https://api.github.com/repos/serverless/serverless/milestones/15/labels","id":2073548,"number":15,"title":"1.1","description":"Fixing upcoming issues after 1.0 release and merge features that didn't make it into 1.0","creator":{"login":"flomotlik","id":132653,"avatar_url":"https://avatars.githubusercontent.com/u/132653?v=3","gravatar_id":"","url":"https://api.github.com/users/flomotlik","html_url":"https://github.com/flomotlik","followers_url":"https://api.github.com/users/flomotlik/followers","following_url":"https://api.github.com/users/flomotlik/following{/other_user}","gists_url":"https://api.github.com/users/flomotlik/gists{/gist_id}","starred_url":"https://api.github.com/users/flomotlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flomotlik/subscriptions","organizations_url":"https://api.github.com/users/flomotlik/orgs","repos_url":"https://api.github.com/users/flomotlik/repos","events_url":"https://api.github.com/users/flomotlik/events{/privacy}","received_events_url":"https://api.github.com/users/flomotlik/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":8,"state":"open","created_at":"2016-10-17T07:43:12Z","updated_at":"2016-10-28T08:12:31Z","due_on":"2016-11-02T00:00:00Z","closed_at":null},"comments":3,"created_at":"2016-10-25T07:24:56Z","updated_at":"2016-10-28T10:53:57Z","closed_at":null,"body":"# This is a Feature Proposal\r\n\r\n## Description\r\n\r\nWe want users to be able to run functions locally and give parameters so they can test everything is working.\r\n\r\nTo that end we're introducing the `serverless invoke local` command\r\n\r\nOptions:\r\n*  --function (-f): provide the function to run\r\n* --path (-p): path to a file that has configuration for the function parameters\r\n\r\nthe `path` can point to a file with the following syntax where you can set all the parameter details:\r\n\r\n```\r\nevent:\r\n  ….\r\ncontext:\r\n  ...\r\n```\r\n\r\nThis first implementation will only work for NodeJS. We'll look into other options in the future.\r\n"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/256892443","html_url":"https://github.com/serverless/serverless/issues/2531#issuecomment-256892443","issue_url":"https://api.github.com/repos/serverless/serverless/issues/2531","id":256892443,"user":{"login":"eahefnawy","id":2312463,"avatar_url":"https://avatars.githubusercontent.com/u/2312463?v=3","gravatar_id":"","url":"https://api.github.com/users/eahefnawy","html_url":"https://github.com/eahefnawy","followers_url":"https://api.github.com/users/eahefnawy/followers","following_url":"https://api.github.com/users/eahefnawy/following{/other_user}","gists_url":"https://api.github.com/users/eahefnawy/gists{/gist_id}","starred_url":"https://api.github.com/users/eahefnawy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eahefnawy/subscriptions","organizations_url":"https://api.github.com/users/eahefnawy/orgs","repos_url":"https://api.github.com/users/eahefnawy/repos","events_url":"https://api.github.com/users/eahefnawy/events{/privacy}","received_events_url":"https://api.github.com/users/eahefnawy/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T10:53:56Z","updated_at":"2016-10-28T10:53:56Z","body":"@ac360 also suggested that we should emulate Lambda as closely as possible by having a default context with all the required methods so that users who use `context.done()` and similar methods would be able to run it locally as well.\r\n\r\nReflecting on the above proposal, we can have a default context that has those methods **but no data** (or default data?), we'll then merge whatever context data the user provided in `event.json` to overwrite those data.\r\n\r\n@flomotlik @ac360 what you think?"}}
{"actor":{"display_login":"eahefnawy"}}