HabitRPG / habitica

A habit tracker app which treats your goals like a Role Playing Game.
https://habitica.com
Other
12k stars 4.09k forks source link

Tasks with impossible creation dates and streaks #4735

Closed ghost closed 8 years ago

ghost commented 9 years ago

A few days after accepted the Duolingo learning challenge from The Scholars I noticed that the daily tasks associated with it had an impossibly long streak -- as though I'd completed it everyday since creating my account despite not having the challenge. The free rice task is from another challenge I accepted at the same time as the Duolingo one, both have been completed everyday. I've not manually adjusted the streak in case that would interfere with finding the bug.

Task list view

On inspection in the data display tool I noticed that all the tasks associated with the challenge have creation dates in 2014 despite me not joining Habit until Feb 2015! The creation dates for tasks from the free rice challenge were correct.

Data display after noticing bug

Yesterday I left the challenge but kept the tasks. I've deleted all but the daily and have made edits to the daily; the creation date is still incorrect.

Data display after leaving challenge

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

ghost commented 9 years ago

Forgot to leave my uuid: 40891154-6548-4dc0-a752-adc284396af0

crookedneighbor commented 9 years ago

@ghswa I'm pretty sure those creation dates refer to the date the tasks were created in the challenge, not the date you added them to your profile. I looked at the object for the duolingo challenge and the creation dates listed there match the creation dates on the tasks you have.

ghost commented 9 years ago

I still have an impossible streak though. I currently have a 7 day streak which is longer than I've had the task for and longer than the streak shown in the data display.

screen shot 2015-02-22 at 19 46 53

Streak history

Although I don't doubt you, behaviour wrt creation dates seems to vary from one challenge to another. I've just joined a few extra challenges to double check:

That last challenge definitely wasn't created today and I'm pretty sure the third wasn't either.

CindyAH commented 9 years ago

I also have this issue. I started HabitRPG on 4/1/2015, but today (April 19) noticed that I have a 21-day streak. I would have created these tasks on April 1 or 2, and my first stats & streaks backup is April 6. On that day, for "brush teeth", I already have a 7, and for exercise, I already have a 6. However, for both of them, I would not have even checked it off, since I do that in the evening for both those tasks. So I have a free day for each, and possibly two free days. I have not fixed my streaks.

UUID cae108a4-5ba4-400b-a37f-39df47376b0b From my email to me: Apr 6 (13 days ago)

to me Stats and Streaks Backup

...

Your Dailies' Streaks

0 Troll for new members 1 30 minutes yard work 2 Read Art Of Unit Testing until finished for the week 3 out of bed within 5 minutes of alarm 3 dressed with food before going to computer 5 Leave by 7:20 3 Take stairs 3 play ping pong (or invite two people and fail) 3 Stand at desk for two hours 2 Update TFS 6 square dance or ride bike (20) or walk (30) 7 Brush teeth

deilann commented 9 years ago

Can you please post your UUID, which can be found in settings > API? Without it, we can't do any investigation.

On Sun, Apr 19, 2015 at 7:44 PM, CindyAH notifications@github.com wrote:

I also have this issue. I started HabitRPG on 4/1/2015, but today (April 19) noticed that I have a 21-day streak. I would have created these tasks on April 1 or 2, and my first stats & streaks backup is April 6. On that day, for "brush teeth", I already have a 7, and for exercise, I already have a 6. However, for both of them, I would not have even checked it off, since I do that in the evening for both those tasks. So I have a free day for each, and possibly two free days. I have not fixed my streaks.

From my email to me:

Apr 6 (13 days ago)

to me Stats and Streaks Backup

...

Your Dailies' Streaks

0 Troll for new members 1 30 minutes yard work 2 Read Art Of Unit Testing until finished for the week 3 out of bed within 5 minutes of alarm 3 dressed with food before going to computer 5 Leave by 7:20 3 Take stairs 3 play ping pong (or invite two people and fail) 3 Stand at desk for two hours 2 Update TFS

6 square dance or ride bike (20) or walk (30) 7 Brush teeth

— Reply to this email directly or view it on GitHub https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94343587.

CindyAH commented 9 years ago

Yeah, I edited my post almost immediately - sorry! Feel free to ask for anything else as well.

On Sun, Apr 19, 2015 at 8:46 PM, deilann notifications@github.com wrote:

Can you please post your UUID, which can be found in settings > API? Without it, we can't do any investigation.

On Sun, Apr 19, 2015 at 7:44 PM, CindyAH notifications@github.com wrote:

I also have this issue. I started HabitRPG on 4/1/2015, but today (April 19) noticed that I have a 21-day streak. I would have created these tasks on April 1 or 2, and my first stats & streaks backup is April 6. On that day, for "brush teeth", I already have a 7, and for exercise, I already have a 6. However, for both of them, I would not have even checked it off, since I do that in the evening for both those tasks. So I have a free day for each, and possibly two free days. I have not fixed my streaks.

From my email to me:

Apr 6 (13 days ago)

to me Stats and Streaks Backup

...

Your Dailies' Streaks

0 Troll for new members 1 30 minutes yard work 2 Read Art Of Unit Testing until finished for the week 3 out of bed within 5 minutes of alarm 3 dressed with food before going to computer 5 Leave by 7:20 3 Take stairs 3 play ping pong (or invite two people and fail) 3 Stand at desk for two hours 2 Update TFS

6 square dance or ride bike (20) or walk (30) 7 Brush teeth

— Reply to this email directly or view it on GitHub <https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94343587 .

— Reply to this email directly or view it on GitHub https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94343885.

deilann commented 9 years ago

Most of the people who will be able to help you receive these tickets via email notifications. If you edit a post, it does not send a new email notification. It is almost always better to add a new message, rather than edit. If you feel that makes things cluttered, you can delete the message afterwards and edit it into the old one.

On Sun, Apr 19, 2015 at 7:55 PM, CindyAH notifications@github.com wrote:

Yeah, I edited my post almost immediately - sorry! Feel free to ask for anything else as well.

On Sun, Apr 19, 2015 at 8:46 PM, deilann notifications@github.com wrote:

Can you please post your UUID, which can be found in settings > API? Without it, we can't do any investigation.

On Sun, Apr 19, 2015 at 7:44 PM, CindyAH notifications@github.com wrote:

I also have this issue. I started HabitRPG on 4/1/2015, but today (April 19) noticed that I have a 21-day streak. I would have created these tasks on April 1 or 2, and my first stats & streaks backup is April 6. On that day, for "brush teeth", I already have a 7, and for exercise, I already have a 6. However, for both of them, I would not have even checked it off, since I do that in the evening for both those tasks. So I have a free day for each, and possibly two free days. I have not fixed my streaks.

From my email to me:

Apr 6 (13 days ago)

to me Stats and Streaks Backup

...

Your Dailies' Streaks

0 Troll for new members 1 30 minutes yard work 2 Read Art Of Unit Testing until finished for the week 3 out of bed within 5 minutes of alarm 3 dressed with food before going to computer 5 Leave by 7:20 3 Take stairs 3 play ping pong (or invite two people and fail) 3 Stand at desk for two hours 2 Update TFS

6 square dance or ride bike (20) or walk (30) 7 Brush teeth

— Reply to this email directly or view it on GitHub < https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94343587 .

— Reply to this email directly or view it on GitHub <https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94343885 .

— Reply to this email directly or view it on GitHub https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94344457.

deilann commented 9 years ago

Did you ever manually mess with the streaks on your tasks? (You can do this if you open up the tasks to edit.)

If you'd like to get rid of the streak you did not earn, you can do this by going to Site > Settings > Fix Character Values and set your number of Streaks to 0.

On Sun, Apr 19, 2015 at 7:57 PM, Ryan yandoryn@gmail.com wrote:

Most of the people who will be able to help you receive these tickets via email notifications. If you edit a post, it does not send a new email notification. It is almost always better to add a new message, rather than edit. If you feel that makes things cluttered, you can delete the message afterwards and edit it into the old one.

On Sun, Apr 19, 2015 at 7:55 PM, CindyAH notifications@github.com wrote:

Yeah, I edited my post almost immediately - sorry! Feel free to ask for anything else as well.

On Sun, Apr 19, 2015 at 8:46 PM, deilann notifications@github.com wrote:

Can you please post your UUID, which can be found in settings > API? Without it, we can't do any investigation.

On Sun, Apr 19, 2015 at 7:44 PM, CindyAH notifications@github.com wrote:

I also have this issue. I started HabitRPG on 4/1/2015, but today (April 19) noticed that I have a 21-day streak. I would have created these tasks on April 1 or 2, and my first stats & streaks backup is April 6. On that day, for "brush teeth", I already have a 7, and for exercise, I already have a 6. However, for both of them, I would not have even checked it off, since I do that in the evening for both those tasks. So I have a free day for each, and possibly two free days. I have not fixed my streaks.

From my email to me:

Apr 6 (13 days ago)

to me Stats and Streaks Backup

...

Your Dailies' Streaks

0 Troll for new members 1 30 minutes yard work 2 Read Art Of Unit Testing until finished for the week 3 out of bed within 5 minutes of alarm 3 dressed with food before going to computer 5 Leave by 7:20 3 Take stairs 3 play ping pong (or invite two people and fail) 3 Stand at desk for two hours 2 Update TFS

6 square dance or ride bike (20) or walk (30) 7 Brush teeth

— Reply to this email directly or view it on GitHub < https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94343587 .

— Reply to this email directly or view it on GitHub <https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94343885 .

— Reply to this email directly or view it on GitHub https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94344457.

deilann commented 9 years ago

Do you ever have Habit open in multiple tabs on your browser?

On Sun, Apr 19, 2015 at 8:01 PM, Ryan yandoryn@gmail.com wrote:

Did you ever manually mess with the streaks on your tasks? (You can do this if you open up the tasks to edit.)

If you'd like to get rid of the streak you did not earn, you can do this by going to Site > Settings > Fix Character Values and set your number of Streaks to 0.

On Sun, Apr 19, 2015 at 7:57 PM, Ryan yandoryn@gmail.com wrote:

Most of the people who will be able to help you receive these tickets via email notifications. If you edit a post, it does not send a new email notification. It is almost always better to add a new message, rather than edit. If you feel that makes things cluttered, you can delete the message afterwards and edit it into the old one.

On Sun, Apr 19, 2015 at 7:55 PM, CindyAH notifications@github.com wrote:

Yeah, I edited my post almost immediately - sorry! Feel free to ask for anything else as well.

On Sun, Apr 19, 2015 at 8:46 PM, deilann notifications@github.com wrote:

Can you please post your UUID, which can be found in settings > API? Without it, we can't do any investigation.

On Sun, Apr 19, 2015 at 7:44 PM, CindyAH notifications@github.com wrote:

I also have this issue. I started HabitRPG on 4/1/2015, but today (April 19) noticed that I have a 21-day streak. I would have created these tasks on April 1 or 2, and my first stats & streaks backup is April 6. On that day, for "brush teeth", I already have a 7, and for exercise, I already have a 6. However, for both of them, I would not have even checked it off, since I do that in the evening for both those tasks. So I have a free day for each, and possibly two free days. I have not fixed my streaks.

From my email to me:

Apr 6 (13 days ago)

to me Stats and Streaks Backup

...

Your Dailies' Streaks

0 Troll for new members 1 30 minutes yard work 2 Read Art Of Unit Testing until finished for the week 3 out of bed within 5 minutes of alarm 3 dressed with food before going to computer 5 Leave by 7:20 3 Take stairs 3 play ping pong (or invite two people and fail) 3 Stand at desk for two hours 2 Update TFS

6 square dance or ride bike (20) or walk (30) 7 Brush teeth

— Reply to this email directly or view it on GitHub < https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94343587 .

— Reply to this email directly or view it on GitHub < https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94343885>.

— Reply to this email directly or view it on GitHub https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94344457 .

CindyAH commented 9 years ago

I also have this issue. I started HabitRPG on 4/1/2015, but today (April 19) noticed that I have a 21-day streak. I would have created these tasks on April 1 or 2, and my first stats & streaks backup is April 6. On that day, for "brush teeth", I already have a 7, and for exercise, I already have a 6. However, for both of them, I would not have even checked it off, since I do that in the evening for both those tasks. So I have a free day for each, and possibly two free days. I have never messed with my streaks manually, or done anything else in the "fix character values" section. I often have it open in multiple tabs in my browser.

UUID cae108a4-5ba4-400b-a37f-39df47376b0b From my email to me: Apr 6 (13 days ago)

to me Stats and Streaks Backup

...

Your Dailies' Streaks

0 Troll for new members 1 30 minutes yard work 2 Read Art Of Unit Testing until finished for the week 3 out of bed within 5 minutes of alarm 3 dressed with food before going to computer 5 Leave by 7:20 3 Take stairs 3 play ping pong (or invite two people and fail) 3 Stand at desk for two hours 2 Update TFS 6 square dance or ride bike (20) or walk (30) 7 Brush teeth

deilann commented 9 years ago

Yeah, the issue is that you have it open in multiple tabs of your browser.

Here's what's happening:

You complete the Daily. You go to a tab where you haven't completed that Daily and you check it off again. Now you've completed it twice in one day, doubling your streak.

How to prevent this:

Don't have Habit open in multiple tabs.

-or-

Sync before checking things off.

On Sun, Apr 19, 2015 at 8:04 PM, CindyAH notifications@github.com wrote:

I also have this issue. I started HabitRPG on 4/1/2015, but today (April 19) noticed that I have a 21-day streak. I would have created these tasks on April 1 or 2, and my first stats & streaks backup is April 6. On that day, for "brush teeth", I already have a 7, and for exercise, I already have a 6. However, for both of them, I would not have even checked it off, since I do that in the evening for both those tasks. So I have a free day for each, and possibly two free days. I have never messed with my streaks manually, or done anything else in the "fix character values" section. I often have it open in multiple tabs in my browser.

UUID cae108a4-5ba4-400b-a37f-39df47376b0b

From my email to me: Apr 6 (13 days ago)

to me Stats and Streaks Backup

...

Your Dailies' Streaks

0 Troll for new members 1 30 minutes yard work 2 Read Art Of Unit Testing until finished for the week 3 out of bed within 5 minutes of alarm 3 dressed with food before going to computer 5 Leave by 7:20 3 Take stairs 3 play ping pong (or invite two people and fail) 3 Stand at desk for two hours 2 Update TFS

6 square dance or ride bike (20) or walk (30) 7 Brush teeth

— Reply to this email directly or view it on GitHub https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94344994.

CindyAH commented 9 years ago

Cool, thanks. Don't know if I can have ANYTHING open in a single tab, but I'll try! :)

deilann commented 9 years ago

Well, if you sync before checking off tasks or try to reliably use the same tab, things should be okay!

On Sun, Apr 19, 2015 at 8:14 PM, CindyAH notifications@github.com wrote:

Cool, thanks. Don't know if I can have ANYTHING open in a single tab, but I'll try! :)

— Reply to this email directly or view it on GitHub https://github.com/HabitRPG/habitrpg/issues/4735#issuecomment-94345718.

dhouck commented 9 years ago

I also experienced the same problem yesterday, and I am using only one tab. I created a few dailies yesterday, and then by the end of the day had streak bonuses of 4 for some of them. I was having other syncing issues at the time, too, though; for example, the data display tool wasn’t updating even after I hit sync on the HabitRPG tab and re-fetched the data on the tool.

I’ve since fixed the streaks to the correct values, but my user ID GUID is 9d72049b-e358-4658-af5b-0957afdb3f10.

paglias commented 8 years ago

This should be fixed now