phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

[RFC] Post Revisions

Publish your own request for comments or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.1/Ascraeus and 3.2/Arsia.

Re: [RFC] Post Revisions

Postby imkingdavid » Tue May 29, 2012 9:52 pm

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
imkingdavid
Development Team
Development Team
 
Posts: 900
Joined: Thu Jul 30, 2009 12:06 pm

Re: [RFC] Post Revisions

Postby callumacrae » Tue May 29, 2012 10:06 pm

How GitHub does it is my favourite way (basically what unknownbliss said)
"In JavaScript, there is a beautiful, elegant, highly expressive language that is buried under a steaming pile of good intentions and blunders"
—Douglas Crockford

View my MOD, phpBB Mobile
User avatar
callumacrae
Website Team
Website Team
 
Posts: 881
Joined: Tue Apr 27, 2010 9:37 am
Location: England

Re: [RFC] Post Revisions

Postby Senky » Wed May 30, 2012 8:26 am

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
Senky
Registered User
 
Posts: 222
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] Post Revisions

Postby callumacrae » Wed May 30, 2012 10:14 am

It's not quite that bad: https://github.com/callumacrae/Zirck/co ... 2041c77ea0

-This is original post.
+This is other host.
"In JavaScript, there is a beautiful, elegant, highly expressive language that is buried under a steaming pile of good intentions and blunders"
—Douglas Crockford

View my MOD, phpBB Mobile
User avatar
callumacrae
Website Team
Website Team
 
Posts: 881
Joined: Tue Apr 27, 2010 9:37 am
Location: England

Re: [RFC] Post Revisions

Postby Senky » Wed May 30, 2012 10:18 am

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...
Senky
Registered User
 
Posts: 222
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] Post Revisions

Postby drathbun » Wed May 30, 2012 12:44 pm

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
drathbun
Registered User
 
Posts: 72
Joined: Wed Feb 15, 2006 6:40 pm
Location: Texas

Re: [RFC] Post Revisions

Postby imkingdavid » Wed May 30, 2012 12:55 pm

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
imkingdavid
Development Team
Development Team
 
Posts: 900
Joined: Thu Jul 30, 2009 12:06 pm

Re: [RFC] Post Revisions

Postby brunoais » Wed May 30, 2012 10:14 pm

I prefer word based
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Re: [RFC] Post Revisions

Postby imkingdavid » Mon Jul 23, 2012 1:43 pm

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.
User avatar
imkingdavid
Development Team
Development Team
 
Posts: 900
Joined: Thu Jul 30, 2009 12:06 pm

Re: [RFC] Post Revisions

Postby drathbun » Mon Jul 23, 2012 2:09 pm

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.
User avatar
drathbun
Registered User
 
Posts: 72
Joined: Wed Feb 15, 2006 6:40 pm
Location: Texas

Previous Next

Return to [3.x] RFCs

Who is online

Users browsing this forum: No registered users and 12 guests