http://qs1969.pair.com?node_id=1156912

I was very surprised to notice that using the vote button would also update your own post if it's the root of the sub thread (even if the sub thread has only your post, you'll find a vote button to test it)

Is this known and is it hard to fix?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

update

Got a message I asking what do you mean by "update your post"??

Answer: Please visit one of your old posts, change the text and click on [vote] instead of [update]

You'll notice that the post is updated.

Replies are listed 'Best First'.
Re: voting does update
by davies (Prior) on Mar 06, 2016 at 14:38 UTC

    Is it something that needs fixing? I can see it being useful if, after upvoting helpful responses, one wants to amend the OP (mark it as solved, for example). In that case, it's a single operation rather than two. But I struggle to see a situation where it might be a problem.

    Regards,

    John Davies

      In general unexpected behavior is dangerous.

      I'm aware that edge cases where people changed their posts and accidentally submitted them will be rare, but that's why I asked if it's hard to fix.

      I noticed it because I saw the wiki expansion happening after just voting, and if the monastery ever decides to have a "last updated" attribute this will be crucial.

      Separating forms would also spare bandwidth, but this is really just a minor argument.

      Checking the submitting button should be enough.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

        Fixed. :-)

        I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
Re: voting does update
by jdporter (Paladin) on Mar 06, 2016 at 20:27 UTC

    The short answer (and with that I add the caveat that there may be an interesting longer answer) is that this behavior is intrinsic to the PerlMonks engine and would be highly non-trivial to change. Generally, any form containing the root post of the current page (given that it is such a page) will cause the post to be updated (but of course only if you have edit rights to that post). Off the top of my head, I don't know of any such forms other than the 'vote' form.

    It is certainly worth documenting this behavior.

    I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
      > intrinsic to the PerlMonks engine

      does it mean that vice versa [update] does also [vote] ?

      (I can't test cause I already voted at all replies)

      > there may be an interesting longer answer

      indeed this must be a very interesting longer answer =)

      > only if you have edit rights to that post

      actually this must be tested somewhere and this should be the place to also check the value of sexisgood

      <input name="sexisgood" value="update" type="submit">

      <input name="sexisgreat" value="vote!" type="submit">

      though everything is possible in legacy code... ;-)

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

        does it mean that vice versa [update] does also [vote] ?

        Yes.

      Since you can't vote on your own posts, why would the "update post" form not be separate from the "reply posts / voting" form?

      (I'm not basing this on the layout as seen on screen. I know that CSS can move elements to places other than where they would appear with out CSS. It just seems to me that it should be possible to keep those 2 functions in their own forms.)

        I don't how to answer that other than what I said in my post above. It's an (unfortunate) artifact of the way the engine works. Not that it can't be changed; it would just entail a massive refactoring. Which I feel pretty confident in saying, ain't gonna happen. However, work I've been doing recently will "fix" the problem in a different way: the "edit" form will be removed from the "main view" of your post and pushed off onto a separate edit page. In fact, it's already like this for most sections, including Meditations. If you visit your post Multi-stage flip-flop?, you won't see an edit form right there, but you will see an 'Edit' link in the upper right.

        I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.