Steps to replicate the issue
- A page exists at [[Foobar]].
- User1 edits Foobar but does not save it.
- User2 makes an edit to Foobar and saves it.
- User1 has made some changes to Foobar and previews the changes they have made, which should trigger checks once T394016: Check edit constraints on page preview has been sorted out.
What should happen?
There is an opportunity at this point to warn User1 that there is an edit conflict between the version that they want to save, and the latest version.
So, the edit conflict code should be run here.
In fact, this does beg the question as to why the code that handles the edit conflict isn't in a separate edit constraint? Should it be? Sounds like a Technical-Debt issue.
I think the code is in includes / EditPage / TextConflictHelper.php - is that right?