When editing a wiki, one edit counts as two

When editing a wiki topic, the edit history notification counts 2 edits. The first edit shows nothing and the second one shows the exact edit and its reasoning.

First issue

The first issue is the one mentioned above


Second issue

When editing a title not from the pencil next to the title, but from the wiki edit, 2 notifications appear again. One notification for the title and one for the reasoning (:information_source:).

Example: I want to change the title but simultaneously let everyone know why I have changed the title. That doesn’t work though, because there are 2 different notifications and not one including everything.


I think that all the edits should appear in one history edit notification and not 2 separate ones. Again, I am not sure if it’s something expected…

2 Likes

Can we repro this on Monday @osioke?

4 Likes

this happens for all the posts, not only wikis. and as far as I know, it only happens when an edit takes long time to be done. i.e. when you press the edit button, and do edits, and it takes longer than 5-10 min, then you finalize the changes.

3 Likes

I couldn’t repro this:

@Thomas_G can you share a screencast/video of your repro?

I could repro this consistently. Editing a wiki post title with a reason for the edit creates 2 edit notification, one for the reasoning and the other for the edit:

Before the title edit:

After the title edit:

3 Likes

@osioke - Sure thing:

2 Likes

Probably a bug we should assign @eviltrout?

4 Likes

Hmm, it looks like the JS client is actually submitting two updates here. The edit reason being included means that the server isn’t allowed to coalesce them, so it creates two revisions instead.

5 Likes

Fun bonus bug:

  • Edit a post and the title with a reason. (#6)
  • Edit just the title with a different reason. (#7)

The title change from #7 got attached to revision #6. Revision #7 was created with just the reason and no other changes.

6 Likes

This would be a great one to fix @riking as it has been a pernicious thorn in our side :clap:

8 Likes

PS: When editing the title, the edit history works fine. The problem is everything else :joy:

3 Likes

No worries Thomas, @riking is still on this, the fix requires some deeper digging.

6 Likes