[RFC] Post Revisions

Note: We are moving the topics of this forum and it will be deleted at some point

Publish your own request for comments/change or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.2/Rhea and 3.3.
Post Reply
User avatar
imkingdavid
Registered User
Posts: 1050
Joined: Thu Jul 30, 2009 12:06 pm

Re: [RFC] Post Revisions

Post by imkingdavid »

I could understand a line-based diff if most of the line was changed. But when it's one or two words, it just takes up space to display the whole line both times.
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

User avatar
callumacrae
Former Team Member
Posts: 1046
Joined: Tue Apr 27, 2010 9:37 am
Location: England
Contact:

Re: [RFC] Post Revisions

Post by callumacrae »

How GitHub does it is my favourite way (basically what unknownbliss said)
Made by developers, for developers!
My blog

Senky
Extension Customisations
Extension Customisations
Posts: 315
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] Post Revisions

Post by Senky »

Yes, but GitHub has some problems with word-based diff. It works like this:
This is original post.
This is other host.
Diff:
This is originalther poshost
Note "o" and "t". On GitHub, it is not a word-based diff really. On GitHub it makes sense - it is diff for source code, but phpBB's posts are based on common text, so diff of in phpBB should look like this:
This is originalother posthost

User avatar
callumacrae
Former Team Member
Posts: 1046
Joined: Tue Apr 27, 2010 9:37 am
Location: England
Contact:

Re: [RFC] Post Revisions

Post by callumacrae »

It's not quite that bad: https://github.com/callumacrae/Zirck/co ... 2041c77ea0
-This is original post.
+This is other host.
Made by developers, for developers!
My blog

Senky
Extension Customisations
Extension Customisations
Posts: 315
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] Post Revisions

Post by Senky »

Yeah, but you probably know what I mean. End user can easily get confused what happened, he just wanted to change two words and it seems like ... well, not whole words changed really. If it is not a big deal to do diff with whole words, it would probably be better I think...

drathbun
Registered User
Posts: 72
Joined: Wed Feb 15, 2006 6:40 pm
Location: Texas
Contact:

Re: [RFC] Post Revisions

Post by drathbun »

Code is written in lines. Posts aren't lines but rather are paragraphs. If you go with line diff, you're basically doing a paragraph diff. For example, this entire series of sentences is only one line so if I edit only one word in the entire paragraph, then the line-diff process will show the entire paragraph as being updated.
Sometimes you're the windshield, sometimes you're the bug.

User avatar
imkingdavid
Registered User
Posts: 1050
Joined: Thu Jul 30, 2009 12:06 pm

Re: [RFC] Post Revisions

Post by imkingdavid »

drathbun wrote:Code is written in lines. Posts aren't lines but rather are paragraphs. If you go with line diff, you're basically doing a paragraph diff. For example, this entire series of sentences is only one line so if I edit only one word in the entire paragraph, then the line-diff process will show the entire paragraph as being updated.
Exactly. Each paragraph is one line, so a line-based diff doesn't work optimally for prose. Instead, we need to use word based or, if we can keep it from doing the things I mentioned previously, character based.
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

User avatar
brunoais
Registered User
Posts: 964
Joined: Fri Dec 18, 2009 3:55 pm

Re: [RFC] Post Revisions

Post by brunoais »

I prefer word based

User avatar
imkingdavid
Registered User
Posts: 1050
Joined: Thu Jul 30, 2009 12:06 pm

Re: [RFC] Post Revisions

Post by imkingdavid »

In conjunction with this proposition (clearing the edit reason for each edit) I think we should also add a new ACP option along with the post revisions system to require a reason to be entered any time a post is edited. What do you think?
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

drathbun
Registered User
Posts: 72
Joined: Wed Feb 15, 2006 6:40 pm
Location: Texas
Contact:

Re: [RFC] Post Revisions

Post by drathbun »

My two cents:

If an owner edits their own post I don't care.

If a non-owner edits the post then I do care. For example, I don't want a moderator or admin editing someone else's post without recording why. The post revisions process takes care of the "what" and "when" of the event, but not the why.

But your question is not regarding that, but whether board owners can change that behavior via the ACP. As long as it's granular enough, meaning it allows me to set different permissions for post owner versus non-post owner then I would be in favor.
Sometimes you're the windshield, sometimes you're the bug.

Post Reply