On 23 May 2019, at 09:14, Simon Urli
<simon.urli(a)xwiki.com> wrote:
Hi Vincent, all,
On 22/05/2019 11:03, Vincent Massol wrote:
Hi Simon,
On 22 May 2019, at 10:45, Simon Urli
<simon.urli(a)xwiki.com> wrote:
Hi everyone,
I'm working on the merge on save for the roadmap of 11.5 and I need some decision to
be taken.
The main idea of the merge on save, is to try to merge users work in case of save
conflict. Knowing that the merge might led to merge conflict in case of edits on the same
places. Those merge conflict can be tackled automatically, but a priority will be then
given to one version over another.
I first propose to add an option in user profile, so users would have the possibility to
choose between:
1. Always merge automatically the work, even in case of merge conflict
I don’t
understand this part. If there’s a conflict it means it cannot be merged… So would it do?
Take latest version and overwrite previous version?
We have an automatic fallback in case of conflict, for which we can choose the strategy:
use current, previous or next version. By default the strategy is to take the current
version.
So the merge is never stucked in case of conflict, by default it returns the current
version.
That’s really a bad idea IMO. By definition, a conflict is … a conflict… there’s no way
to merge that automatically or it’s not a conflict…. If you do, then you have data loss.
Which is not acceptable (it’s the worse thing that can happen and exactly what we’re
trying to avoid with this feature! ;)). The user has to be presented the conflict and
needs to be asked what he wants to loose: his data or the data from the last person who
saved. And give him a solution to store his content so that he can merge it manually line
by line later on (save his content on another special page, in memory (risky), etc).