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

Challenge out of sync remove button deleted almost all tasks unrelated to challenge / manually added #4466

Closed
Nayelianne opened this issue Jan 2, 2015 · 18 comments

Comments

@Nayelianne
Copy link

I got a little notice on a daily task from a challenge saying it was out of sync, and that the challenge had ended. When I clicked to edit that task, it was asking whether I wanted to keep it or delete it. I went with delete, and then... pretty much all my tasks that I had manually added (and had nothing to do with the challenge) disappeared at once. A ctrl+f5 didn't fix the problem. Did I seriously misread something here or is it a big bad bug? ): I had SO many tasks and it's very disheartening to lose my streaks and have to add everything again.

This was more or less how my tasks looked like (though it's an outdated screenshot):
image

This is how it looks now ;-;
image

Apparently everything (dailies, to-dos, habits) was deleted in one go except for a few tasks that were from a different challenge.

User ID: 1448f1e9-7b17-45cd-940c-741f84a3d78d
Ended challenge that caused it all was from the Kotoba Miners Guild ( b9424e99-ee46-4c96-8633-dbdf375160e7 )
Operational System: Windows 7 64 bits.
Browser + Version: Chrome 39.0.2171.95 m
Console Errors displayed on the page (after refresh, hadn't looked before 😞 ):
image
Other details:

  • Tried pressing "clear" on the tags to see if I had any tags selected and tasks would came back, nothing changed.
  • Apparently I can still create tasks normally, if that's at all relevant.

Is there any way to restore the tasks?

@Alys
Copy link
Contributor

Alys commented Jan 2, 2015

@Nayelianne : I believe we can probably restore your tasks from a recent backup but I still need to look into that.

FYI @lefnire @paglias - this is extremely worrying!

@Nayelianne: I've checked your account in the database and, yes, almost all your tasks have been deleted. There are two Habits and one Daily remaining, as shown in your screenshot, plus a few completed To-Dos (no uncompleted). I am VERY sorry this has happened to you. I am going to look into the backup situation now, but working with database backups is slow because they are very large, so it could be a few hours before I can get back to you. The good news is that I have a month-old copy of the database on my local machine, and it's showing several tasks for you, for each kind of task, so I'm pretty confident that I can get more recent data for you from a more recent backup (hopefully just 12 or 24 hours old). I'm not sure yet about being able to import your data back into your account (I think it should be possible) but at worst I can tell you what your tasks and streaks etc were.

We will also look into working out why this happened, but for now I'm focusing on retrieving your data.

This would be a bug. You did not misunderstand the message about the challenge tasks.

@Alys
Copy link
Contributor

Alys commented Jan 2, 2015

@Nayelianne : The most recent database backup was four hours ago. Did your problem start more recently than that?

@Alys
Copy link
Contributor

Alys commented Jan 2, 2015

@Nayelianne : I've downloaded the backup I mentioned in my previous comment and it seems to have much the same tasks as in your screenshot, so it looks like your problem did occur after that backup was made.

I'm going to do some test runs of importing the data into some test accounts and if that goes well, I'll import it into yours. I won't overwrite any tasks that are still there, so you might end up with a couple of duplicates.

@Alys
Copy link
Contributor

Alys commented Jan 2, 2015

@Nayelianne : You should now be able to see all the tasks that were in your account at the time that our most recent database backup was made (about 7 hours ago). Please check your tasks and let me know if they look okay.

The challenge tasks will still be there. Please go through the same process as before to remove them. I would be very interested to see if the same problem happens again. If it does happen - do not worry! Restoring your tasks again will be MUCH faster because I have a restoration script all ready to go. :)

@Nayelianne
Copy link
Author

@Alys Thank you SO much for the speedy support and for restoring the tasks. ;_; It seems to have restored some pretty old ones I had completed or deleted in december, but I'm super happy to not have to re-add everything.

Regarding reproducing the bug, I did have one "Broken challgenge link" that had been removed from the same challenge (and I had deleted it from my tasks in december), and I managed to remove that one again without problems at least.

The rest of the challenge tasks, however, are no longer giving the "broken challenge link" message, nor seem to be editable/deletable. When I went to my Challenge page, it shows as if I'm not participating in any challenges either.

image

image

xD So I guess they're stuck now?

@Alys
Copy link
Contributor

Alys commented Jan 2, 2015

"restored some pretty old ones I had completed or deleted in december" - That's extremely odd because the tasks I restored were definitely taken from a backup made just four hours before you reported the error. FYI @lefnire, @paglias - maybe this is something else weird happening with this account?

For the challenge tasks that you want to delete, tick one of them off as if you had accomplished it, and the megaphone should become broken. This is common for completed challenges. For more information about that, see "Deleting a Challenge Task" in the wiki's Challenges page.

@Nayelianne
Copy link
Author

It did seem a bit odd considering you said it a recent backup 😕
Ticking each challenge and refreshing the page as you said seems to have made the notice show.

image
I wonder if it's counted "orphan tasks" as everything that doesn't fall into a challenge rather than just the ones from that specific challenge? It'd explain why just the tasks from another challenge were kept and all the manual ones disappeared?

For the sake of bug reproduction, I risked pressing the "Remove them" button again, and nothing broke this time 😌

The tasks from challenges that haven't ended were still stuck so I tried entering the challenges again but it simply duplicated the challenges, and when leaving the challenge it only removed the duplicates. Stubborn as I am I did it again and this time it actually removed them properly though ❤️

Thank you for all the help. :)

@Alys
Copy link
Contributor

Alys commented Jan 2, 2015

It certainly should not be counting non-challenge tasks as "orphan tasks" but it does look like it did originally. This is one of the things we will have to look into. That duplication of challenge tasks and then the extra step you had to take to remove them also should definitely not have happened.

Thank you very much for providing these extra details! They might help us work out what went wrong.

i'm going to leave this issue open so that we can investigate the cause of it. I'm also about to edit your comments to add bold highlighting to the ones that I think are most important, so that they stand out for us when we're investigating. I won't be changing your comments in any other way!

@Nayelianne
Copy link
Author

No worries.
c: Let me know if I can do anything else to help. I really appreciate the thoughtful replies and the speedy help. ❤️ Just made my love for habitRPG grow.

@jdrapic
Copy link

jdrapic commented Jun 24, 2015

Hello, I've had the exact same thing happen to me this afternoon. Would it be possible to roll back my account a few hours? Thanks in advance for any help you can give. (If it helps, the task I was deleting at the time was something like "Defeat all the monsters of the day".) 2524a616-4a06-433f-81c2-4cd0a8f2df20

@Alys
Copy link
Contributor

Alys commented Jun 24, 2015

@jdrapic yes, we will definitely do that for you. Can you tell me how many hours ago your tasks disappeared? That will help me get the best database backup. Note that it's helpful if you tell me how many hours ago, rather than a specific time, because timezones make specific times difficult to deal with.

Also, can you please click the "clear" button next to your tags even if it looks like no tags are selected, and ensure that there's no text in the new search form (just above the Rewards column), in case the problem is that your tasks are merely hidden.

@jdrapic
Copy link

jdrapic commented Jun 24, 2015

I believe the tasks have been gone about 2 hours, give or take.

Ah sorry, I should have mentioned I did the trouble-shooting before posting haha. Clearing the tasks and search, hard refreshing, and logging out and back in had no effect. =)

@Alys
Copy link
Contributor

Alys commented Jun 24, 2015

@jdrapic There was a backup made two hours and fifty minutes ago. Is that likely to have your tasks? If not, I can use a backup made fifteen hours ago. The reason I'm asking is that it takes at least two hours to download the backup (it's huge!) and then up to three hours to import it into my local database server, and then some additional time to extract and restore your data - none of which I mind doing since you should not have been hit by this bug, but if the first backup I choose doesn't have your tasks, I probably won't be able to get them restored for many more hours. Let me know which backup you'd like me to try first, and I'll start downloading it as soon as I hear from you.

@Alys
Copy link
Contributor

Alys commented Jun 24, 2015

@jdrapic Argh, sorry, ignore that. The backup was actually made two hours ago (did I mention timezones are annoying?). I'll go for the one made fourteen hours ago. I hope you won't have lost too much progress. :(

I recommend that you make yourself Rest in the Inn now so that when your Dailies return, you won't take damage from them if you happen to be asleep at the time.

@jdrapic
Copy link

jdrapic commented Jun 24, 2015

Thanks so much. =) I'll go ahead and take your advice and check in then. You've been amazing!

@Alys
Copy link
Contributor

Alys commented Jun 24, 2015

@jdrapic I've restored your Habits, Dailies, To-Dos, and Rewards from that backup. Please tell me if anything isn't right with them or any other part of your account!

@jdrapic
Copy link

jdrapic commented Jun 24, 2015

Everything looks right to me. You've been absolutely fantastic, thank you
so much!

On Wed, Jun 24, 2015 at 2:06 AM, Alys notifications@github.com wrote:

@jdrapic https://github.com/jdrapic I've restored your Habits, Dailies,
To-Dos, and Rewards from that backup. Please tell me if anything isn't
right with them or any other part of your account!


Reply to this email directly or view it on GitHub
#4466 (comment).

@Alys
Copy link
Contributor

Alys commented Jul 26, 2015

I'm closing this in the hope that #5504 has fixed it - I'm quite confident but it can be reopened if I'm proved wrong. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants