Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the "town hall" (meta-discussion site) for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on Draft loaded. You had edited this before but haven't saved it. We loaded the edits for you.

Post

Draft loaded. You had edited this before but haven't saved it. We loaded the edits for you.

+2
−0

I get

"Draft loaded. You had edited this before but haven't saved it. We loaded the edits for you. "

when I ask a new question. First thought was I hadn't pressed the "Save Post" button, but then I did, started again, and the warning, together with the draft, was back again when I would ask a new question.

It makes me really nervous thinking about accidentally overwrite the previous question with a different new one.

Is the bug in my head or in the software?

History

1 comment thread

Related (10 comments)
Related
trichoplax‭ wrote 10 months ago

Thank you for raising this.

This problem has been seen before, but I'm not closing this as a duplicate because the problem was previously fixed so this may be a regression or a new problem. It was previously raised as "Remember last post edit in process" not clearing automatically.

It may also be related to the same problem with answers rather than questions, which has been raised several times:

These link to various other similar problems. It seems this problem has also been previously fixed but is now happening again.

Olin Lathrop‭ wrote 10 months ago

trichoplax‭ The problem was never fixed. There may have been some attempts to address it. That may have reduced the frequency, but it never stopped happening. I think people mostly stopped reporting it.

Oleg Valter‭ wrote 10 months ago · edited 10 months ago

I am pretty sure the problem is not fully fixed yet (as the one who implemented the other mitigations). If anything, the issue is more noticeable now that we don't block post submission until the draft is deleted via a client-side request. The reason for this issue is a race condition when the autosave reaches the server after the post is successfully submitted. We'll get to it in time, it's a prioritized bug, but, you know, our dev resources are limited, so it might take some time. As a workaround, you can click the big red bin button in the post editor to discard that phantom draft completely

trichoplax‭ wrote 10 months ago

Olin Lathrop‭ to clarify, yes the more recent reports have not yet been fixed, since the problem starting occuring again over the last few years. The one that was fixed was the problem specifically for questions rather than answers, "Remember last post edit in process" not clearing automatically, which was marked as "status-completed" 4 years ago.

Admittedly I don't know if that fix worked at the time and has stopped working, or never worked.

Oleg Valter‭ wrote 10 months ago

trichoplax‭ to add to what you mentioned, that fix still works, the problem is that it only ensures that the draft is guaranteed to be cleared upon post submission. And since the draft can end up being saved after the submission is handled, we sometimes end up with these "phantom" drafts.

watchmaker‭ wrote 10 months ago

The main irritating thing is that the zombie draft turns up after "Ask new question", so I ended up posting a copy of an already existing question (if in doubt, losing the active question is worse than having a copy).

It should be easy to cancel the effect by clearing the input array after the "Ask new question".

trichoplax‭ wrote 10 months ago

That would indeed fix the problem you describe, but at the cost of losing drafts that haven't yet been posted. If I'm part way through drafting a question and my computer crashes, I can later press "Ask new question" and continue with my draft. I wouldn't want to lose that ability.

Skipping 1 deleted comment.

watchmaker‭ wrote 10 months ago

trichoplax‭ so there is a flaw in the design: "Ask new question" and "Edit/resume last question" (posted or not) are different things but on the same button.

I see the work is not as easy as I hoped for.

trichoplax‭ wrote 10 months ago

The button could potentially be changed to say "Continue draft" when there is a draft question present, but that would still have the same problem of sometimes showing a draft that has already been posted.

There doesn't seem a benefit to having 2 separate buttons ("Ask Question" and "Continue Draft") unless multiple drafts are supported, otherwise pressing "Ask Question" will lose a previous draft even if it hasn't been posted yet. The bug raised here needs to be fixed regardless of whether multiple drafts are supported, so I see multiple drafts as a separate feature that could be requested in a separate Meta question if someone wants to.

watchmaker‭ wrote 10 months ago

trichoplax‭ it looks like it needs some time for discussion to figure out what should happen.