Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Handling for self-reports. #57

Open
miczed opened this issue Jun 15, 2021 · 0 comments
Open

Error Handling for self-reports. #57

miczed opened this issue Jun 15, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@miczed
Copy link
Contributor

miczed commented Jun 15, 2021

[Gestern 10:05] Alexander Lill

Hi everyone, I wanted to let you know about another thing that happened now the second time, so maybe there is some kind of issue: When reporting my hourly productivity, it sometimes gets stuck. E.g. I click on the "6" to rate a 6, and then the dialogue stays there, with a circular animation at the 6 (like it seems to try sending my rating) but it never goes away.

Is it possible that the server is down, or is this a connectivity issue on my laptop? Generally wifi and internet works though smile

Whenever I click, in the log a new line is added, but the dialogue does not disappear:
[2021-06-14 09:59:59.274] [info] (ExperienceNotification.vue) Created!
[2021-06-14 09:59:59.282] [debug] (ExperienceNotification.vue) Received experience-sample event with experienceSample={​​​​​​​​"id":6155,"scheduled_at":"2021-06-14T10:00:00.000+02:00","sampled_at":null,"value":null,"config":{​​​​​​​​​​​​​​​"id":7,"title":"Productivity","prompt":"How productive did you feel in the last hour?","type":"scale","scale":{​​​​​​​​​​​​​​​"steps":7,"label_start":"Not at all","label_center":"Moderately","label_end":"Very"}​​​​​​​​​​​​​​​}​​​​​​​​​​​​​​​}​​​​​​​​​​​​​​​
[2021-06-14 10:00:01.873] [debug] (ExperienceNotification.vue) onValueClicked called, value=6
[2021-06-14 10:02:48.197] [debug] (ExperienceNotification.vue) onValueClicked called, value=6
[2021-06-14 10:02:50.925] [debug] (ExperienceNotification.vue) onValueClicked called, value=7
[2021-06-14 10:03:55.797] [debug] (ExperienceNotification.vue) onValueClicked called, value=7

main.log and renderer.log have both 0 bytes; I am using version 1.0.3


Config change results in schedule + 7 days. Which the client downloads. Then on sunday night, the scheduler creates a new schedule + 7 days. As a result the client might have old samplings still stored if he didn't update it.

Possible solution: check if a sampling exists for given scheduled_at time and experience_config_id that has no value yet and update that value. If value was already there, return error message to client (404 sampling does not exist anymore).

@miczed miczed added the bug Something isn't working label Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant