Disabling commits to other then git master branch in Web Author

Hi, I'm using Web Author with Git. When file is modified it can be commited back to repository by invoking "Commit" dialog from menu. However dialog box for commit has two options: * Commit on branch: master * Commit on a new branch In our scenario we don't want writers to create new branches. Is it possible to disable this option in the dialog box? Many thanks in advance, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

Hello,
Is it possible to disable this option in the dialog box? We don't have an easy method for disabling this option. The only way to do this is to load a CSS file [1] that hides the checkbox. But the problem with this approach is that the dialog structure may change in future versions of Web Author, so we do not recommend doing this.
I registered an issue in our issue tracker. We'll consider adding an option that will allow the Web Author administrator to choose whether to allow users to create branches or not. We will let you know when this feature is available if we decide to implement it. Best, Gabriel [1] https://www.oxygenxml.com/doc/versions/21.1.1.0/ug-waCustom/topics/customizi... On 14-Nov-19 21:57, Jirka Kosek wrote:
Hi,
I'm using Web Author with Git. When file is modified it can be commited back to repository by invoking "Commit" dialog from menu.
However dialog box for commit has two options:
* Commit on branch: master * Commit on a new branch
In our scenario we don't want writers to create new branches. Is it possible to disable this option in the dialog box?
Many thanks in advance,
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user

On 15.11.2019 10:21, oXygen XML Editor Support (Gabriel Titerlea) wrote:
Is it possible to disable this option in the dialog box? We don't have an easy method for disabling this option. The only way to do this is to load a CSS file [1] that hides the checkbox. But the problem with this approach is that the dialog structure may change in future versions of Web Author, so we do not recommend doing this.
I understand risk and I would like to use this as an interim solution. However we are not using plugin only framework for configuration. It is possible to modify WebAuthor CSS using framework? I suppose that modifying just CSS for document type wouldn't have any effect because WebAuthor preprocess it.
I registered an issue in our issue tracker. We'll consider adding an option that will allow the Web Author administrator to choose whether to allow users to create branches or not. We will let you know when this feature is available if we decide to implement it.
Many thanks. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

Hello,
It is possible to modify WebAuthor CSS using framework? Yes, you can write your CSS using JavaScript [1] in a /style/ HTML element that you can append to the /head /HTML element.
But we have decided to implement your request and we have released a beta version of the Git plugin which includes the option to prevent users from committing on a new branch. You can download the beta version of the Git plugin from here [2]. See the /web-author-github-plugin-22.0-plugin.jar/ file. After downloading the /plugin.jar/ file you can install in in Web Author by following the instructions found here [3]. The find the new "Allow users to commit on a new branch." option you can visit the Git plugin configuration page [4] and click the Git section. Best, Gabriel [1] https://www.oxygenxml.com/doc/versions/21.1.1.0/ug-waCustom/topics/customizi... [2] https://github.com/oxygenxml/web-author-github-plugin/releases/tag/22.0-b1 [3] https://www.oxygenxml.com/doc/versions/21.1.1.0/ug-waCustom/topics/webapp-co... [4] https://www.oxygenxml.com/doc/versions/21.1.1.0/ug-webauthor/topics/webapp-c... Gabriel Titerlea https://www.oxygenxml.com On 18-Nov-19 17:58, Jirka Kosek wrote:
Is it possible to disable this option in the dialog box? We don't have an easy method for disabling this option. The only way to do this is to load a CSS file [1] that hides the checkbox. But the problem with this approach is that the dialog structure may change in future versions of Web Author, so we do not recommend doing this. I understand risk and I would like to use this as an interim solution. However we are not using plugin only framework for configuration. It is
On 15.11.2019 10:21, oXygen XML Editor Support (Gabriel Titerlea) wrote: possible to modify WebAuthor CSS using framework? I suppose that modifying just CSS for document type wouldn't have any effect because WebAuthor preprocess it.
I registered an issue in our issue tracker. We'll consider adding an option that will allow the Web Author administrator to choose whether to allow users to create branches or not. We will let you know when this feature is available if we decide to implement it. Many thanks.
Jirka

On 20.11.2019 13:03, oXygen XML Editor Support (Gabriel Titerlea) wrote:
But we have decided to implement your request and we have released a beta version of the Git plugin which includes the option to prevent users from committing on a new branch. You can download the beta version of the Git plugin from here [2]. See the /web-author-github-plugin-22.0-plugin.jar/ file.
Hello, many thanks for this, that's really excellent support. However there is small problem. It seems that your plugin is using the following: <extension type="WebappCSSResource" href="web/static/github.css"/> which gets rejected by WebAuthor 21.0. Perhaps this is new feature planned for v22.0. If I comment this line then everything is working as expected except that UI is completely awkward as stylesheet hasn't be loaded. (I've looked and github.css is loaded from plugin.js for v21.0 but I haven't attempted to modify minified code). Would it be possible to re-release plugin that is compatible with v21.x? Many thanks in advance, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

However there is small problem. It seems that your plugin is using the following... which gets rejected by WebAuthor 21.0. The new extension <extension type="WebappCSSResource"
Hello, href="web/static/github.css"/> has been introduced in the latest version of Web Author, 21.1.1. I encourage you to upgrade to version 21.1.1 of Web Author. The beta plugin is compatible with it and it includes new features (File Comparison Tool) related to the Git plugin that you are using [1]. Best, Gabriel [1] https://www.oxygenxml.com/xml_web_author/whats_new.html Gabriel Titerlea https://www.oxygenxml.com On 20-Nov-19 16:28, Jirka Kosek wrote:
On 20.11.2019 13:03, oXygen XML Editor Support (Gabriel Titerlea) wrote:
But we have decided to implement your request and we have released a beta version of the Git plugin which includes the option to prevent users from committing on a new branch. You can download the beta version of the Git plugin from here [2]. See the /web-author-github-plugin-22.0-plugin.jar/ file. Hello,
many thanks for this, that's really excellent support.
However there is small problem. It seems that your plugin is using the following:
<extension type="WebappCSSResource" href="web/static/github.css"/>
which gets rejected by WebAuthor 21.0. Perhaps this is new feature planned for v22.0. If I comment this line then everything is working as expected except that UI is completely awkward as stylesheet hasn't be loaded. (I've looked and github.css is loaded from plugin.js for v21.0 but I haven't attempted to modify minified code).
Would it be possible to re-release plugin that is compatible with v21.x?
Many thanks in advance,
Jirka

Hello, We have released version 22.0 of Web Author [1]. In this release the administrator can choose if users are allowed to commit on new branches [2]. You can find the latest release here [3]. Best, Gabriel [1] https://www.oxygenxml.com/xml_web_author/whats_new.html [2] https://www.oxygenxml.com/doc/versions/22.0.0/ug-webauthor/topics/webapp-int... [3] https://www.oxygenxml.com/xml_web_author/download_oxygenxml_web_author.html Gabriel Titerlea https://www.oxygenxml.com On 20-Nov-19 17:39, oXygen XML Editor Support (Gabriel Titerlea) wrote:
Hello,
However there is small problem. It seems that your plugin is using the following... which gets rejected by WebAuthor 21.0. The new extension <extension type="WebappCSSResource" href="web/static/github.css"/> has been introduced in the latest version of Web Author, 21.1.1.
I encourage you to upgrade to version 21.1.1 of Web Author. The beta plugin is compatible with it and it includes new features (File Comparison Tool) related to the Git plugin that you are using [1].
Best, Gabriel
[1] https://www.oxygenxml.com/xml_web_author/whats_new.html
Gabriel Titerlea https://www.oxygenxml.com
On 20-Nov-19 16:28, Jirka Kosek wrote:
On 20.11.2019 13:03, oXygen XML Editor Support (Gabriel Titerlea) wrote:
But we have decided to implement your request and we have released a beta version of the Git plugin which includes the option to prevent users from committing on a new branch. You can download the beta version of the Git plugin from here [2]. See the /web-author-github-plugin-22.0-plugin.jar/ file. Hello,
many thanks for this, that's really excellent support.
However there is small problem. It seems that your plugin is using the following:
<extension type="WebappCSSResource" href="web/static/github.css"/>
which gets rejected by WebAuthor 21.0. Perhaps this is new feature planned for v22.0. If I comment this line then everything is working as expected except that UI is completely awkward as stylesheet hasn't be loaded. (I've looked and github.css is loaded from plugin.js for v21.0 but I haven't attempted to modify minified code).
Would it be possible to re-release plugin that is compatible with v21.x?
Many thanks in advance,
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Jirka Kosek
-
oXygen XML Editor Support (Gabriel Titerlea)