You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just to document if we do want instead of using registration key, use a JSON parameter stored in Database to disable branch mode.
Once we created the historisation, we push a JSON value (branch: false) to the revisions table, after when a user tried to create a branch from the trunk_head, it shows a message to user that the DB has disable branch mode.
In summary, to disable the branch mode in the plugin, it is done during historisation, we add a JSON parameters in the initial commit in the DB trunk_head (table revisions, revision=1, field commit_msg, value = {"commit_msg":"initial commit", "branch":"false"}). In the add_branch function in versioning_base.py it validates the JSON parameters as in revision=1, if it is there and value:false a message shows up saying : "Branch cannot be created, this feature has been disable in the head revision table on initial commit").
If we do want to reactivate the branch mode in the DB, we take off this JSON parameters in the table revision and it goes back to the default process (branch can be created).
Duplicate of Oslandia#43
The text was updated successfully, but these errors were encountered: