In this PR we introduce the new mixed authority mode which allows the user to specify sections in a document in Polarion, which should be overwritten by the rendered content of a jinja template. The start of this section is identified by this Polarion Wiki Macro - the important parts are the div class and its ID:
<div class="c2pAreaStart" id="TestArea">
#if ($document.getStatus().id == "draft")
<span style="font-weight: bold;background-color: #FFFF00;">↓↓↓Below this point all content is autogenerated and will be overwritten ↓↓↓</span>
#end
</div>
The end of an autogenerated section is identified by this Macro:
<div class="c2pAreaEnd" id="TestArea">
#if ($document.getStatus().id == "draft")
<span style="font-weight: bold;background-color: #FFFF00;">↑↑↑Above this point all content is autogenerated and will be overwritten ↑↑↑</span>
#end
</div>
In addition the following minor features were implemented:
Documents
We now support heading numbering using our config
You can configure default rendering layouts for inserted workitems
By default we keep existing configuration when documents are updated. You can overwrite this behaviour using flags to use the settings from the config instead of from the document
If we try to insert a workitem into a document and it already exists in the document a wanring will be logged and we insert a link instead
WorkItems
It's now possible to insert diagrams in a jinja template. E.g.
will insert the tree_view diagram of object. The diagram will be stored with "tree_view" as file name in the work items attachments. If there already is a diagram named tree_view this one will be used instead of generating another one. So if you use the add_tree_diagram serializer, the diagram will only be generated once.
In this PR we introduce the new mixed authority mode which allows the user to specify sections in a document in Polarion, which should be overwritten by the rendered content of a jinja template. The start of this section is identified by this Polarion Wiki Macro - the important parts are the div class and its ID:
The end of an autogenerated section is identified by this Macro:
In addition the following minor features were implemented: Documents
WorkItems It's now possible to insert diagrams in a jinja template. E.g.
will insert the tree_view diagram of
object
. The diagram will be stored with "tree_view" as file name in the work items attachments. If there already is a diagram named tree_view this one will be used instead of generating another one. So if you use theadd_tree_diagram
serializer, the diagram will only be generated once.