Difference between revisions of "Template: ComponentRN"

From Genesys Documentation
Jump to: navigation, search
(Update package: RN Automation)
 
 
(25 intermediate revisions by 4 users not shown)
Line 5: Line 5:
 
{{ComponentRN
 
{{ComponentRN
 
|Highlight=
 
|Highlight=
 +
|HighlightBoilerplateId=
 
|ComponentId=
 
|ComponentId=
 
|ReleaseNumber=
 
|ReleaseNumber=
|ReleaseType=
 
 
|ReleaseDate=
 
|ReleaseDate=
 +
|PrivateEditionReleaseDate=
 +
|MixedModeReleaseDate=
 +
|ReleaseTypeId=
 
|JQL=
 
|JQL=
|DeploymentType=
+
|DeploymentTypeId=
 +
|Containers=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=ComponentRN|Highlight=|ComponentId=List (,) of String|ReleaseNumber=String|ReleaseType=String|ReleaseDate=String|JQL=String|DeploymentType=String}}
+
{{#cargo_declare:
</noinclude><includeonly>{{#cargo_store:_table=ComponentRN|Highlight={{{Highlight|}}}|ComponentId={{{ComponentId|}}}|ReleaseNumber={{{ReleaseNumber|}}}|ReleaseType={{{ReleaseType|}}}|ReleaseDate={{{ReleaseDate|}}}|JQL={{{JQL|}}}|DeploymentType={{{DeploymentType|}}} }}
+
_table=ComponentRN
 +
|Highlight=Wikitext
 +
|HighlightBoilerplateId=List (,) of String
 +
|Containers=Wikitext
 +
|ComponentId=String
 +
|ReleaseNumber=String
 +
|ReleaseDate=String
 +
|PrivateEditionReleaseDate=String
 +
|MixedModeReleaseDate=String
 +
|ReleaseTypeId=String
 +
|JQL=String
 +
|DeploymentTypeId=List (,) of String
 +
}}
 +
</noinclude><includeonly><!--
 +
 +
setting default form based on Category
 +
 
 +
-->[[Category:EditRN]]<!--
 +
 
 +
storing values in ComponentRN table
  
{{#mintydocs_topic:
+
-->{{#cargo_store:
|display name=Base unit of content for {{#cargo_query:tables=Component|fields=Name|where=Id="{{{ComponentId|}}}"|no html}} - {{{ReleaseNumber|}}}
+
_table=ComponentRN
}}
+
|Highlight={{{Highlight|}}}
 +
|HighlightBoilerplateId={{{HighlightBoilerplateId|}}}
 +
|Containers={{{Containers|}}}
 +
|ComponentId={{{ComponentId|}}}
 +
|ReleaseNumber={{#explode:{{FULLPAGENAME}}|/|2}}
 +
|ReleaseDate={{{ReleaseDate|}}}
 +
|PrivateEditionReleaseDate={{{PrivateEditionReleaseDate|}}}
 +
|MixedModeReleaseDate={{{MixedModeReleaseDate|}}}
 +
|ReleaseTypeId={{{ReleaseTypeId|}}}
 +
|JQL={{{JQL|}}}
 +
|DeploymentTypeId={{{DeploymentTypeId|}}}
 +
}}<!--
 +
 
 +
setting up mintydocs topic
 +
 
 +
-->{{#mintydocs_topic:
 +
|standalone
 +
|display name=Base unit of content for {{#cargo_query:tables=Component|fields=Name|where=Id="{{{ComponentId|}}}"|no html}} - {{#explode:{{FULLPAGENAME}}|/|2}}
 +
}}<!--
  
Link to page in use: {{#cargo_query:tables=ArticleCloudRN|field=_pageName|where=ComponentId HOLDS '{{{ComponentId|}}}'}}
+
table of main ComponentRN values from form
  
 +
-->
 +
==Component RN Definition==
 
{| class="wikitable"
 
{| class="wikitable"
 
! Component
 
! Component
Line 28: Line 71:
 
|-
 
|-
 
! Deployment Type
 
! Deployment Type
| {{{DeploymentType|}}}
+
| {{#arraymap:{{{DeploymentTypeId|}}}|,|x|{{#cargo_query:tables=DeploymentType|fields=Name|where=Id="x"|no html}}}}
 
|-
 
|-
 
! Release Number
 
! Release Number
| {{{ReleaseNumber|}}}
+
| {{#explode:{{FULLPAGENAME}}|/|2}} ([[Special:MovePage/{{FULLPAGENAME}}|Change release number]])
 
|-
 
|-
! Release Type
+
!Release Type
| {{#arraymap:{{{ReleaseType|}}}|,|x|x}}
+
| {{#arraymap:{{{ReleaseTypeId|}}}|,|x|{{#cargo_query:tables=ReleaseType|fields=Name|where=Id="x"|no html}}}}
 
|-
 
|-
 
!Highlight
 
!Highlight
 
|{{{Highlight|}}}
 
|{{{Highlight|}}}
 
|-
 
|-
 +
! Boilerplate(s) Used
 +
| {{#arraymap:{{{HighlightBoilerplateId|}}}|,|x|{{#cargo_query:tables=Boilerplate|fields=Name|where=Id="x"}} }}
 +
|-
 
! Release Date
 
! Release Date
 
| {{{ReleaseDate|}}}
 
| {{{ReleaseDate|}}}
 +
|-
 +
! Private Edition Release Date
 +
| {{{PrivateEditionReleaseDate|}}}
 +
|-
 +
! Mixed Mode Release ReleaseDate
 +
| {{{MixedModeReleaseDate|}}}
 +
|-
 +
! Private Edition Containers List
 +
|
 +
{{{Containers|}}}
 
|-
 
|-
 
! JQL
 
! JQL
 
| {{{JQL|}}}
 
| {{{JQL|}}}
 +
|-
 +
! Links
 +
| Links to customer-facing pages in use:
 +
{{#cargo_query:tables=ArticleCloudRN|field=_pageName|where=ComponentId HOLDS '{{{ComponentId|}}}' AND ArticleCloudRN._pageName NOT LIKE "%Internal%"|format=ul|default=None yet!}}
 +
|-
 +
!Test Links
 +
| Links to test pages (for RN Admins only)
 +
{{#cargo_query:tables=ArticleCloudRN|field=_pageName|where=ComponentId HOLDS '{{{ComponentId|}}}' AND ArticleCloudRN._pageName LIKE "%Internal%"|format=ul|default=None yet!}}
 +
|}<!--
  
|}{{#cargo_query:
+
query to list Issues saved to this page
tables=JiraIssue
+
 
|intro=<h2>New In This Release</h2>
+
-->{{#cargo_query:
|fields=CONCAT ('<b>',Issue, '</b><br/>',LocalContent)
+
tables=ComponentRN,Issue,IssueCategory
|format=ul
+
|join on=
|where=_pageName="{{FULLPAGENAME}}" AND Type="New"
+
ComponentRN._pageName=Issue._pageName,
|default=}}{{#cargo_query:
+
Issue.IssueCategoryId=IssueCategory.Id
tables=JiraIssue
+
|fields=
|intro=<h2>Security Fixes</h2>
+
CONCAT ('[https://genesysjira.atlassian.net/browse/',Issue.TicketNumber,' ',Issue.TicketNumber,']')=Issue,
|fields=CONCAT ('<b>',Issue, '</b><br/>',LocalContent)|format=ul
+
IssueCategory.Name=Issue Category,
|where=_pageName="{{FULLPAGENAME}}" AND Type="Security"
+
<!--DeploymentType.Name=Deployment Type,-->
|default=
+
IF(LENGTH(LocalContent) > 100, CONCAT(SUBSTRING(LocalContent, 1, 100),"..."),LocalContent)=Description,
}}{{#cargo_query:
+
SupportingDocumentation
tables=JiraIssue
+
|format=dynamic table
|intro=<h2>Deprecations</h2>
+
|where=
|fields=CONCAT ('<b>',Issue, '</b><br/>',LocalContent)|format=ul
+
ComponentRN.ComponentId ="{{{ComponentId|}}}"  
|where=_pageName="{{FULLPAGENAME}}" AND Type="Deprecations"
+
AND ReleaseNumber="{{#explode:{{FULLPAGENAME}}|/|2}}"
|default=}}{{#cargo_query:
+
|group by=Issue.TicketNumber
tables=JiraIssue
+
|order by=IssueCategory.PrintOrder ASC
|intro=<h2>Dependencies</h2>
+
}}<!--  
|fields=CONCAT ('<b>',Issue, '</b><br/>',LocalContent)|format=ul
 
|where=_pageName="{{FULLPAGENAME}}" AND Type="Dependencies"
 
|default=}}{{#cargo_query:
 
tables=JiraIssue
 
|intro=<h2>Resolved Issues</h2>
 
|fields=CONCAT ('<b>',Issue, '</b><br/>',LocalContent)|format=ul
 
|where=_pageName="{{FULLPAGENAME}}" AND Type="Resolved"
 
|default=}}{{#cargo_query:
 
tables=JiraIssue
 
|intro=<h2>Known Issues</h2>
 
|fields=CONCAT ('<b>',Issue, '</b><br/>',LocalContent)|format=ul
 
|where=_pageName="{{FULLPAGENAME}}" AND Type="Known Issue"
 
|default=}}{{#cargo_query:
 
tables=JiraIssue
 
|intro=<h2>These issues need a type - please fix!</h2>
 
|fields=CONCAT ('<b>',Issue, '</b><br/>',LocalContent)|format=ul
 
|where=_pageName="{{FULLPAGENAME}}" AND Type IS NULL
 
|default=
 
}}
 
<!--
 
<h3>{{{Issue|}}}</h3>
 
Type: {{{Type|}}}
 
Last Updated: {{{LastUpdated|}}}
 
  
Jira source text:
+
supressing cache and section editing, adding TOC
{{{Content|}}}
 
  
Writer-edited text:
+
-->__NOCACHE__
{{{LocalContent|}}}-->
 
__NOCACHE__
 
[[Category:EditRN]]
 
 
__TOC__
 
__TOC__
</includeonly>
+
__NOINDEX__</includeonly>
<noinclude>[[Category:RNAutomation]]</noinclude>
+
<noinclude>[[Category:RNAutomation]][[Category:ComponentRN.ComponentId cleanup]]</noinclude>

Latest revision as of 16:32, September 29, 2022

This is the "ComponentRN" template. It should be called in the following format:

{{ComponentRN
|Highlight=
|HighlightBoilerplateId=
|ComponentId=
|ReleaseNumber=
|ReleaseDate=
|PrivateEditionReleaseDate=
|MixedModeReleaseDate=
|ReleaseTypeId=
|JQL=
|DeploymentTypeId=
|Containers=
}}

Edit the page to see the template text. This template defines the table "ComponentRN". View table.

Retrieved from "https://all.docs.genesys.com/Template:ComponentRN (2024-10-06 20:04:36)"