Difference between revisions of "Template: ArticleHelmRN"
From Genesys Documentation
m (1 revision imported) |
|||
Line 9: | Line 9: | ||
|DeploymentTypeId= | |DeploymentTypeId= | ||
|DisplayName= | |DisplayName= | ||
+ | |DepGuideServiceId= | ||
}} | }} | ||
Line 15: | Line 16: | ||
{{#cargo_declare:_table=ArticleHelmRN | {{#cargo_declare:_table=ArticleHelmRN | ||
− | |ServiceId=List (,) of String | + | |ServiceId=List (,) of String |
− | |ComponentId=List (,) of String | + | |ComponentId=List (,) of String |
− | |DeploymentTypeId=List (,) of String | + | |DeploymentTypeId=List (,) of String |
− | |DisplayName=String | + | |DisplayName=String |
+ | |DepGuideServiceId=List (,) of String | ||
}} | }} | ||
{{#cargo_attach:_table=Article}} | {{#cargo_attach:_table=Article}} | ||
</noinclude> | </noinclude> | ||
− | <includeonly> | + | <includeonly><!-- |
− | __NOEDITSECTION__{{#cargo_store:_table=Article|Standalone={{{Standalone}}}|Dimension={{#explode:{{FULLPAGENAME}}|/|3}}|productshort={{#explode:{{FULLPAGENAME}}|/|0}}|DisplayName={{{DisplayName|}}}|Context={{{Context|}}}}}{{#cargo_store:_table=ArticleHelmRN | + | |
− | |ServiceId={{{ServiceId|}}} | + | adding category to lauch form |
− | |ComponentId={{{ComponentId|}}} | + | |
− | |DeploymentTypeId={{{DeploymentTypeId|}}} | + | -->[[Category:ArticleHelmRN]]<!-- |
− | |DisplayName={{{DisplayName|}}} | + | |
− | }}<!-- Set MintyDocs topic, including a switch for different treatment for Manual pages -->{{#switch:{{{PageType|}}}|Manual=|#default={{#mintydocs_topic: | + | forcing TOC and suppressing section editing |
− | |display name={{{DisplayName|}}} | + | |
− | |toc name={{{TocName|}}} | + | -->__TOC__ |
− | }}}}<!-- Defining the EPPO Header; all parameters need to be passed to it -->{{EPPOHead|RN=Yes|ServiceId={{{ServiceId|}}}|Role={{{Role|}}}|ComingSoon={{{ComingSoon|}}}|Context=Find lists of which containers were updated for each service release, and when. | + | __NOEDITSECTION__<!-- |
− | |UseCase={{{UseCase|}}}|Application={{{Application|}}}|Platform={{{Platform|}}}|PageType=Article}}<!--Defining the Prerequisite Head -->{{PrerequisitesHead|Prereq={{{Prereq|}}}}}<!-- Query for showing component list --> | + | |
− | <includeonly>{{#cargo_query: | + | storing values in Article table for general use |
− | tables=Component, | + | |
− | ComponentRN, | + | -->{{#cargo_store: |
− | ComponentRN__DeploymentTypeId, | + | _table=Article |
− | Issue | + | |Standalone={{{Standalone}}} |
− | |join on= | + | |Dimension={{#explode:{{FULLPAGENAME}}|/|3}} |
− | Component.Id=ComponentRN.ComponentId, | + | |productshort={{#explode:{{FULLPAGENAME}}|/|0}} |
− | ComponentRN._ID=ComponentRN__DeploymentTypeId._rowID, | + | |DisplayName={{{DisplayName|}}} |
− | ComponentRN._pageName=Issue._pageName | + | |Context={{{Context|}}} |
− | |fields= | + | }}<!-- |
− | Component.Name=Service, | + | |
− | ComponentRN.ReleaseNumber, | + | storing values in ArticleHelmRN table for specific use |
− | PrivateEditionReleaseDate=ReleaseDate, | + | |
− | Containers, | + | -->{{#cargo_store: |
− | ComponentId | + | _table=ArticleHelmRN |
− | |intro={{#switch:{{NAMESPACENUMBER}}|620={{NoteFormat|In the '''DRAFT PAGE ONLY''', you can tell where table values are being pulled from: | + | |ServiceId={{{ServiceId|}}} |
+ | |ComponentId={{{ComponentId|}}} | ||
+ | |DeploymentTypeId={{{DeploymentTypeId|}}} | ||
+ | |DisplayName={{{DisplayName|}}} | ||
+ | |DepGuideServiceId={{{DepGuideServiceId|}}} | ||
+ | }}<!-- | ||
+ | |||
+ | Set MintyDocs topic, including a switch for different treatment for Manual pages | ||
+ | |||
+ | -->{{#switch:{{{PageType|}}} | ||
+ | |Manual= | ||
+ | |#default={{#mintydocs_topic: | ||
+ | |display name={{{DisplayName|}}} | ||
+ | |toc name={{{TocName|}}} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | Defining the EPPO Header; all parameters need to be passed to it | ||
+ | |||
+ | -->{{EPPOHead | ||
+ | |RN=Yes | ||
+ | |ServiceId={{{ServiceId|}}} | ||
+ | |Role={{{Role|}}} | ||
+ | |ComingSoon={{{ComingSoon|}}} | ||
+ | |Context=Find lists of which containers were updated for each service release, and when. | ||
+ | |UseCase={{{UseCase|}}} | ||
+ | |Application={{{Application|}}} | ||
+ | |Platform={{{Platform|}}} | ||
+ | |PageType=Article | ||
+ | |DepGuideServiceId={{{DepGuideServiceId|}}} | ||
+ | }}<!-- | ||
+ | |||
+ | Defining the Prerequisite Head | ||
+ | |||
+ | -->{{PrerequisitesHead|Prereq={{{Prereq|}}}}}<!-- | ||
+ | |||
+ | Query for showing component list | ||
+ | |||
+ | --><includeonly>{{#cargo_query: | ||
+ | tables=Component,ComponentRN,ComponentRN__DeploymentTypeId,Issue | ||
+ | |join on= | ||
+ | Component.Id=ComponentRN.ComponentId, | ||
+ | ComponentRN._ID=ComponentRN__DeploymentTypeId._rowID, | ||
+ | ComponentRN._pageName=Issue._pageName | ||
+ | |fields= | ||
+ | Component.Name=Service, | ||
+ | ComponentRN.ReleaseNumber, | ||
+ | PrivateEditionReleaseDate=ReleaseDate, | ||
+ | Containers, | ||
+ | ComponentId | ||
+ | |intro={{#switch:{{NAMESPACENUMBER}} | ||
+ | |620= | ||
+ | {{NoteFormat|In the '''DRAFT PAGE ONLY''', you can tell where table values are being pulled from: | ||
* ''Checked {{SuperscriptCheck}} items are confirmed to have come directly from XING.'' | * ''Checked {{SuperscriptCheck}} items are confirmed to have come directly from XING.'' | ||
* ''Flagged {{SuperscriptFlag}} items are pulled from the manual parameter in the Base Unit RN.'' | * ''Flagged {{SuperscriptFlag}} items are pulled from the manual parameter in the Base Unit RN.'' | ||
− | Published content will not include this note, or icons that indicate where the list of containers/helm charts come from.}}|#default=}}<table class="sortable"><tr><th>Service</th><th>Release Number</th><th>Release Date</th><th>Updated Helm Charts</th><th>Updated Containers</tr> | + | Published content will not include this note, or icons that indicate where the list of containers/helm charts come from.}} |
− | |outro=</table> | + | |#default= |
− | |named args=yes | + | }} |
− | |format=template | + | <table class="sortable"> |
− | |template=HelmPrint | + | <tr> |
− | |where= | + | <th>Service</th> |
− | (ComponentRN.ComponentId IN ({{#arraymap:{{{ComponentId|}}}|,|x|'x'}})) | + | <th>Release Number</th> |
− | AND (ComponentRN__DeploymentTypeId._value IN ({{#arraymap:{{{DeploymentTypeId|}}}|,|x|'x'}})) | + | <th>Release Date</th> |
− | AND ComponentRN._pageNamespace="{{NAMESPACENUMBER}}" | + | <th>Updated Helm Charts</th> |
− | AND PrivateEditionReleaseDate IS NOT NULL | + | <th>Updated Containers</th> |
− | |named args=yes | + | </tr> |
− | |group by=ComponentRN._pageName | + | |outro=</table> |
− | |order by=ComponentRN.ReleaseDate DESC | + | |named args=yes |
− | }} | + | |format=template |
− | __NOCACHE__ | + | |template=HelmPrint |
− | {{#css: | + | |where= |
− | #mw-content-text .select2-container .select2-choice { height: 34px; line-height: normal; } | + | (ComponentRN.ComponentId IN ({{#arraymap:{{{ComponentId|}}}|,|x|'x'}})) |
− | .panel-title { padding: 10px; } | + | AND (ComponentRN__DeploymentTypeId._value IN ({{#arraymap:{{{DeploymentTypeId|}}}|,|x|'x'}})) |
− | .panel>.panel-heading { padding: 0 } | + | AND ComponentRN._pageNamespace="{{NAMESPACENUMBER}}" |
− | .toggle-wrap { margin: 20px 0 25px; } | + | AND PrivateEditionReleaseDate IS NOT NULL |
− | .toggle-wrap>a{ display: block; padding: 10px; color: #333; background-color: #f5f5f5; border: 1px solid #ddd; border-top-left-radius: 3px; border-top-right-radius: 3px; } | + | |named args=yes |
− | .toggle-wrap>a:before { content: '\f0d7'; float: left; font-family: FontAwesome; margin-right: 10px; text-decoration: none; } | + | |group by=ComponentRN._pageName |
− | .toggle-content { padding: 10px 20px; border: 1px solid #ddd; border-top: none; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } | + | |order by=ComponentRN.ReleaseDate DESC |
− | }}{{{ArticleHelmRN|}}}<!-- Removing the version dropdown for Standalone (version-less) pages -->{{#switch:{{{Standalone}}}|Yes={{#css: | + | }}<!-- |
− | button#version-dropdown { display: none; } | + | |
− | }}|#default=}}[[Category:Linkable]]<nowiki /></includeonly><noinclude>[[Category:RNAutomation]][[Category:ComponentRN.ComponentId cleanup]]</noinclude> | + | suppressing cache on this pages |
+ | |||
+ | -->__NOCACHE__<!-- | ||
+ | |||
+ | local CSS overrides | ||
+ | |||
+ | -->{{#css: | ||
+ | #mw-content-text .select2-container .select2-choice { height: 34px; line-height: normal; } | ||
+ | .panel-title { padding: 10px; } | ||
+ | .panel>.panel-heading { padding: 0 } | ||
+ | .toggle-wrap { margin: 20px 0 25px; } | ||
+ | .toggle-wrap>a{ display: block; padding: 10px; color: #333; background-color: #f5f5f5; border: 1px solid #ddd; border-top-left-radius: 3px; border-top-right-radius: 3px; } | ||
+ | .toggle-wrap>a:before { content: '\f0d7'; float: left; font-family: FontAwesome; margin-right: 10px; text-decoration: none; } | ||
+ | .toggle-content { padding: 10px 20px; border: 1px solid #ddd; border-top: none; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } | ||
+ | }}<!-- | ||
+ | |||
+ | passing values | ||
+ | |||
+ | -->{{{ArticleHelmRN|}}}<!-- | ||
+ | |||
+ | Removing the version dropdown for Standalone (version-less) pages | ||
+ | |||
+ | -->{{#switch:{{{Standalone}}} | ||
+ | |Yes= | ||
+ | {{#css: | ||
+ | button#version-dropdown { display: none; } | ||
+ | .MintyDocsTopicDesc {display:none} | ||
+ | }} | ||
+ | |#default= | ||
+ | }}<!-- | ||
+ | |||
+ | adding this page to linkgrabber tool | ||
+ | |||
+ | -->[[Category:Linkable]]<nowiki /></includeonly><noinclude>[[Category:RNAutomation]][[Category:ComponentRN.ComponentId cleanup]]</noinclude> |
Revision as of 14:01, June 3, 2022
This is the "ArticleHelmRN" template.
It should be called in the following format:
{{ArticleHelmRN |ServiceId= |ComponentId= |DeploymentTypeId= |DisplayName= |DepGuideServiceId= }}
Edit the page to see the template text.
This template defines the table "ArticleHelmRN". View table. This template adds rows to the table "Article", which is declared by the template Article. View table.