{"action":"created","issue":{"url":"https://api.github.com/repos/worknenjoy/gitpay/issues/237","repository_url":"https://api.github.com/repos/worknenjoy/gitpay","labels_url":"https://api.github.com/repos/worknenjoy/gitpay/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/worknenjoy/gitpay/issues/237/comments","events_url":"https://api.github.com/repos/worknenjoy/gitpay/issues/237/events","html_url":"https://github.com/worknenjoy/gitpay/issues/237","id":393550088,"node_id":"MDU6SXNzdWUzOTM1NTAwODg=","number":237,"title":"Make an offer for a task","user":{"login":"alexanmtz","id":88840,"node_id":"MDQ6VXNlcjg4ODQw","avatar_url":"https://avatars2.githubusercontent.com/u/88840?v=4","gravatar_id":"","url":"https://api.github.com/users/alexanmtz","html_url":"https://github.com/alexanmtz","followers_url":"https://api.github.com/users/alexanmtz/followers","following_url":"https://api.github.com/users/alexanmtz/following{/other_user}","gists_url":"https://api.github.com/users/alexanmtz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanmtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanmtz/subscriptions","organizations_url":"https://api.github.com/users/alexanmtz/orgs","repos_url":"https://api.github.com/users/alexanmtz/repos","events_url":"https://api.github.com/users/alexanmtz/events{/privacy}","received_events_url":"https://api.github.com/users/alexanmtz/received_events","type":"User","site_admin":false},"labels":[{"id":988235014,"node_id":"MDU6TGFiZWw5ODgyMzUwMTQ=","url":"https://api.github.com/repos/worknenjoy/gitpay/labels/Node.js","name":"Node.js","color":"0e8a16","default":false},{"id":988235282,"node_id":"MDU6TGFiZWw5ODgyMzUyODI=","url":"https://api.github.com/repos/worknenjoy/gitpay/labels/React","name":"React","color":"e4ed6d","default":false},{"id":577780160,"node_id":"MDU6TGFiZWw1Nzc3ODAxNjA=","url":"https://api.github.com/repos/worknenjoy/gitpay/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":848911394,"node_id":"MDU6TGFiZWw4NDg5MTEzOTQ=","url":"https://api.github.com/repos/worknenjoy/gitpay/labels/feature","name":"feature","color":"f7dab2","default":false},{"id":956477377,"node_id":"MDU6TGFiZWw5NTY0NzczNzc=","url":"https://api.github.com/repos/worknenjoy/gitpay/labels/to%20do","name":"to do","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/worknenjoy/gitpay/milestones/3","html_url":"https://github.com/worknenjoy/gitpay/milestone/3","labels_url":"https://api.github.com/repos/worknenjoy/gitpay/milestones/3/labels","id":3797469,"node_id":"MDk6TWlsZXN0b25lMzc5NzQ2OQ==","number":3,"title":"v1.6","description":"Bug fixes about payment and flow for user, as well fixings for language preferences","creator":{"login":"alexanmtz","id":88840,"node_id":"MDQ6VXNlcjg4ODQw","avatar_url":"https://avatars2.githubusercontent.com/u/88840?v=4","gravatar_id":"","url":"https://api.github.com/users/alexanmtz","html_url":"https://github.com/alexanmtz","followers_url":"https://api.github.com/users/alexanmtz/followers","following_url":"https://api.github.com/users/alexanmtz/following{/other_user}","gists_url":"https://api.github.com/users/alexanmtz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanmtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanmtz/subscriptions","organizations_url":"https://api.github.com/users/alexanmtz/orgs","repos_url":"https://api.github.com/users/alexanmtz/repos","events_url":"https://api.github.com/users/alexanmtz/events{/privacy}","received_events_url":"https://api.github.com/users/alexanmtz/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":1,"state":"open","created_at":"2018-11-05T17:47:56Z","updated_at":"2018-12-25T23:52:27Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-12-21T18:24:17Z","updated_at":"2018-12-26T11:35:32Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When an user is interested to develop a task, they can show interested by clicking in \"I'm interested\", but we need to know their suggestion and give some guidance with extra information\r\n\r\n### Why\r\nWe want to know about the contributor opinion about the task bounty and send an different offer if for some reason they don't agree with the current offer\r\n\r\n### Level\r\nMedium\r\n\r\n### Current behavior\r\n- The user creates a task from an issue from Github or Bitbucket\r\n- Other user can be interested to solve that issue\r\n- He clicks in the \"I'm interested\" button on the task page\r\n- A dialog appear to confirm\r\n- The owner and the user receive an email telling about the next steps\r\n\r\n### Expected behavior\r\n- The user creates a task from an issue from Github or Bitbucket\r\n- Other user can be interested to solve that issue\r\n- He clicks in the \"I'm interested\" button on the task page\r\n- A dialog appear to confirm\r\n- The user can suggest a different bounty as well inform that he wants that task just to improve\r\n- The owner and the user receive an email telling about the next steps\r\n\r\n### Useful links\r\n  - https://material-ui.com/\r\n\r\n### How to solve this issue\r\n - You will need to store the information on the database creating new fields on the `Task` model to store suggested bounties, that will hold the reference to another model `Offers`. One Task has multiple offers, each one from each user.\r\n - The offer has a value that correspond to the value suggested and a flag to indicate that the task is for learning purposes\r\n - If the offer is send more than once for the same user, the offer will be updated\r\n - You should store in offer all the information from the dialog on the screenshot (`value`, `suggested_date`, `comment` and `learn`)\r\n - You will need to add on the related email template the info about the offer\r\n - You will need to hold the multi language with the translation that should be pretty straightforward based on the examples already implemented\r\n - You will need to create the proper reduces and actions that hold the actions for that model\r\n\r\n### How to reproduce the user scenario\r\n\r\n - Create an user\r\n - Post a task\r\n - Create another user\r\n - Visit the same task\r\n - Click in 'I'm interested'\r\n - This dialog attached should be included\r\n\r\n### Tips\r\n- You will be more effective if follow the tests on the backend to validate the models\r\n- Reuse the bounty suggestion component from the task page, or even create a new component that both component could use\r\n\r\n### Screenshot\r\n![interested offer](https://user-images.githubusercontent.com/88840/50363595-94a5a000-056c-11e9-84d3-d9c87e621f86.png)\r\n"},"comment":{"url":"https://api.github.com/repos/worknenjoy/gitpay/issues/comments/449953916","html_url":"https://github.com/worknenjoy/gitpay/issues/237#issuecomment-449953916","issue_url":"https://api.github.com/repos/worknenjoy/gitpay/issues/237","id":449953916,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTk1MzkxNg==","user":{"login":"alexanmtz","id":88840,"node_id":"MDQ6VXNlcjg4ODQw","avatar_url":"https://avatars2.githubusercontent.com/u/88840?v=4","gravatar_id":"","url":"https://api.github.com/users/alexanmtz","html_url":"https://github.com/alexanmtz","followers_url":"https://api.github.com/users/alexanmtz/followers","following_url":"https://api.github.com/users/alexanmtz/following{/other_user}","gists_url":"https://api.github.com/users/alexanmtz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanmtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanmtz/subscriptions","organizations_url":"https://api.github.com/users/alexanmtz/orgs","repos_url":"https://api.github.com/users/alexanmtz/repos","events_url":"https://api.github.com/users/alexanmtz/events{/privacy}","received_events_url":"https://api.github.com/users/alexanmtz/received_events","type":"User","site_admin":false},"created_at":"2018-12-26T11:35:32Z","updated_at":"2018-12-26T11:35:32Z","author_association":"CONTRIBUTOR","body":"@leonardohof you we're assigned on Gitpay: https://gitpay.me/#/task/146"}}
{"actor":{"display_login":"alexanmtz"}}