{"action":"created","issue":{"url":"https://api.github.com/repos/execom-eu/OOP-Test-Generator/issues/187","repository_url":"https://api.github.com/repos/execom-eu/OOP-Test-Generator","labels_url":"https://api.github.com/repos/execom-eu/OOP-Test-Generator/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/execom-eu/OOP-Test-Generator/issues/187/comments","events_url":"https://api.github.com/repos/execom-eu/OOP-Test-Generator/issues/187/events","html_url":"https://github.com/execom-eu/OOP-Test-Generator/issues/187","id":340526490,"node_id":"MDU6SXNzdWUzNDA1MjY0OTA=","number":187,"title":"Handle user pressing back button during test","user":{"login":"sugrinov","id":22047411,"node_id":"MDQ6VXNlcjIyMDQ3NDEx","avatar_url":"https://avatars1.githubusercontent.com/u/22047411?v=4","gravatar_id":"","url":"https://api.github.com/users/sugrinov","html_url":"https://github.com/sugrinov","followers_url":"https://api.github.com/users/sugrinov/followers","following_url":"https://api.github.com/users/sugrinov/following{/other_user}","gists_url":"https://api.github.com/users/sugrinov/gists{/gist_id}","starred_url":"https://api.github.com/users/sugrinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sugrinov/subscriptions","organizations_url":"https://api.github.com/users/sugrinov/orgs","repos_url":"https://api.github.com/users/sugrinov/repos","events_url":"https://api.github.com/users/sugrinov/events{/privacy}","received_events_url":"https://api.github.com/users/sugrinov/received_events","type":"User","site_admin":false},"labels":[{"id":937117516,"node_id":"MDU6TGFiZWw5MzcxMTc1MTY=","url":"https://api.github.com/repos/execom-eu/OOP-Test-Generator/labels/backend","name":"backend","color":"8ef29a","default":false},{"id":737844775,"node_id":"MDU6TGFiZWw3Mzc4NDQ3NzU=","url":"https://api.github.com/repos/execom-eu/OOP-Test-Generator/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":937117791,"node_id":"MDU6TGFiZWw5MzcxMTc3OTE=","url":"https://api.github.com/repos/execom-eu/OOP-Test-Generator/labels/frontend","name":"frontend","color":"efe44a","default":false}],"state":"open","locked":false,"assignee":{"login":"dujfalusi","id":19993915,"node_id":"MDQ6VXNlcjE5OTkzOTE1","avatar_url":"https://avatars2.githubusercontent.com/u/19993915?v=4","gravatar_id":"","url":"https://api.github.com/users/dujfalusi","html_url":"https://github.com/dujfalusi","followers_url":"https://api.github.com/users/dujfalusi/followers","following_url":"https://api.github.com/users/dujfalusi/following{/other_user}","gists_url":"https://api.github.com/users/dujfalusi/gists{/gist_id}","starred_url":"https://api.github.com/users/dujfalusi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dujfalusi/subscriptions","organizations_url":"https://api.github.com/users/dujfalusi/orgs","repos_url":"https://api.github.com/users/dujfalusi/repos","events_url":"https://api.github.com/users/dujfalusi/events{/privacy}","received_events_url":"https://api.github.com/users/dujfalusi/received_events","type":"User","site_admin":false},"assignees":[{"login":"dujfalusi","id":19993915,"node_id":"MDQ6VXNlcjE5OTkzOTE1","avatar_url":"https://avatars2.githubusercontent.com/u/19993915?v=4","gravatar_id":"","url":"https://api.github.com/users/dujfalusi","html_url":"https://github.com/dujfalusi","followers_url":"https://api.github.com/users/dujfalusi/followers","following_url":"https://api.github.com/users/dujfalusi/following{/other_user}","gists_url":"https://api.github.com/users/dujfalusi/gists{/gist_id}","starred_url":"https://api.github.com/users/dujfalusi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dujfalusi/subscriptions","organizations_url":"https://api.github.com/users/dujfalusi/orgs","repos_url":"https://api.github.com/users/dujfalusi/repos","events_url":"https://api.github.com/users/dujfalusi/events{/privacy}","received_events_url":"https://api.github.com/users/dujfalusi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-07-12T07:51:07Z","updated_at":"2019-06-13T09:16:10Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"If user presses back button during test and fills in the form check if he selected the same test category.\r\nHandle next cases:\r\n  - User selected same category => give him the same test\r\n  - User selected another category => generate a new test"},"comment":{"url":"https://api.github.com/repos/execom-eu/OOP-Test-Generator/issues/comments/501621304","html_url":"https://github.com/execom-eu/OOP-Test-Generator/issues/187#issuecomment-501621304","issue_url":"https://api.github.com/repos/execom-eu/OOP-Test-Generator/issues/187","id":501621304,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMTYyMTMwNA==","user":{"login":"dujfalusi","id":19993915,"node_id":"MDQ6VXNlcjE5OTkzOTE1","avatar_url":"https://avatars2.githubusercontent.com/u/19993915?v=4","gravatar_id":"","url":"https://api.github.com/users/dujfalusi","html_url":"https://github.com/dujfalusi","followers_url":"https://api.github.com/users/dujfalusi/followers","following_url":"https://api.github.com/users/dujfalusi/following{/other_user}","gists_url":"https://api.github.com/users/dujfalusi/gists{/gist_id}","starred_url":"https://api.github.com/users/dujfalusi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dujfalusi/subscriptions","organizations_url":"https://api.github.com/users/dujfalusi/orgs","repos_url":"https://api.github.com/users/dujfalusi/repos","events_url":"https://api.github.com/users/dujfalusi/events{/privacy}","received_events_url":"https://api.github.com/users/dujfalusi/received_events","type":"User","site_admin":false},"created_at":"2019-06-13T09:16:10Z","updated_at":"2019-06-13T09:16:10Z","author_association":"NONE","body":"From the backend perspective, everything works fine, remaining time updates on answer update or finishing the test. Getting the test client receives remaining time for a given test. If a test didn't updated with an answer, the test wouldn't be updated for remaining time. \r\n\r\nOn the front side, these problems still occur. \r\n1. Going back with the `Back` button isn't possible anymore but that screen still doing fetch `getTestById`. 2. Multiple clicking on the `Back` button causing the time to countdown faster.\r\n3. When the time comes under 3 min breaks with error\r\n![image](https://user-images.githubusercontent.com/19993915/59419888-267bc080-8dcc-11e9-9357-338d4a4a719f.png)\r\n\r\nWhat I could propose instead fetch getTest by id on the `Back` button to update the test, that if someone clicks on the back button will update the remaining time.\r\n"}}
{"actor":{"display_login":"dujfalusi"}}