Difference between revisions of "Template: ArticleCloudRN"

From Genesys Documentation
Jump to: navigation, search
(Update package: RN Automation: Data Structure)
 
(21 intermediate revisions by 5 users not shown)
Line 6: Line 6:
 
{{ArticleCloudRN
 
{{ArticleCloudRN
 
|ServiceId=
 
|ServiceId=
 +
|DepGuideServiceId=
 
|ComponentId=
 
|ComponentId=
 
|DeploymentTypeId=
 
|DeploymentTypeId=
Line 16: Line 17:
  
 
{{#cargo_declare:_table=ArticleCloudRN
 
{{#cargo_declare:_table=ArticleCloudRN
|ServiceId=String
+
|ServiceId=List (,) of String
 +
|DepGuideServiceId=List (,) of String
 
|ComponentId=List (,) of String
 
|ComponentId=List (,) of String
 
|DeploymentTypeId=List (,) of String
 
|DeploymentTypeId=List (,) of String
Line 22: Line 24:
 
|Footer=Wikitext
 
|Footer=Wikitext
 
}}
 
}}
 +
{{#cargo_attach:_table=Article}}
  
 
</noinclude>
 
</noinclude>
<includeonly>{{#css: .MintyDocsTopicDesc {display:none} }}[[Category:ArticleCloudRN]]__TOC__
+
<includeonly><!--
__NOEDITSECTION__{{#cargo_store:_table=Article|Standalone={{{Standalone}}}|productshort={{#explode:{{FULLPAGENAME}}|/|0}}|DisplayName={{{DisplayName|}}}|Context={{{Context|}}}}}{{#cargo_store:_table=ArticleCloudRN
+
 
|ServiceId={{{ServiceId|}}}
+
adding category to set form
|ComponentId={{{ComponentId|}}}
+
 
|DeploymentTypeId={{{DeploymentTypeId|}}}
+
-->[[Category:ArticleCloudRN]]
|ReleaseTypeId={{{ReleaseTypeId|}}}
+
 
|Footer={{{Footer|}}}
+
<!--
}}<!-- Set MintyDocs topic, including a switch for different treatment for Manual pages -->{{#switch:{{{PageType|}}}|Manual=|#default={{#mintydocs_topic:
+
 
 +
forcing TOC and suppressing section inks
 +
 
 +
-->__TOC__
 +
__NOEDITSECTION__<!--
 +
 
 +
  storing cargo values in both Article table for general queries
 +
 
 +
-->{{#cargo_store:
 +
  _table=Article
 +
  |Standalone={{{Standalone}}}
 +
  |Dimension={{{Dimension|}}}
 +
  |productshort={{#explode:{{FULLPAGENAME}}|/|0}}
 +
  |DisplayName={{{DisplayName|}}}
 +
  |Context={{{Context|}}}}}<!--
 +
 
 +
  storing values in ArticleCloudRN table for specific queries
 +
 
 +
-->{{#cargo_store:
 +
  _table=ArticleCloudRN
 +
  |ServiceId={{{ServiceId|}}}
 +
  |ComponentId={{{ComponentId|}}}
 +
  |DeploymentTypeId={{{DeploymentTypeId|}}}
 +
  |ReleaseTypeId={{{ReleaseTypeId|}}}
 +
  |Footer={{{Footer|}}}
 +
  |DepGuideServiceId={{{DepGuideServiceId|}}}
 +
}}<!--  
 +
 
 +
  Set MintyDocs topic, including a switch for different treatment for Manual pages  
 +
 
 +
-->{{#switch:{{{PageType|}}}|Manual=|#default={{#mintydocs_topic:
 
|display name={{{DisplayName|}}}
 
|display name={{{DisplayName|}}}
 
|toc name={{{TocName|}}}
 
|toc name={{{TocName|}}}
}}}}<!-- Defining the EPPO Header; all parameters need to be passed to it -->{{EPPOHead|Role={{{Role|}}}|ComingSoon={{{ComingSoon|}}}|Dimension={{{Dimension|}}}|Context=Not all releases or changes listed below may pertain to your deployment. Check the table below to see which releases apply to you.
+
}}}}<!--  
|UseCase={{{UseCase|}}}|Application={{{Application|}}}|Platform={{{Platform|}}}|PageType=Article}}<!--Defining the Prerequisite Head -->{{PrerequisitesHead|Prereq={{{Prereq|}}}}}<!-- Query for showing component list -->
+
 
 +
  Defining the EPPO Header; all parameters need to be passed to it  
 +
 
 +
-->{{EPPOHead
 +
  |RN=Yes
 +
  |Role={{{Role|}}}
 +
  |ComingSoon={{{ComingSoon|}}}
 +
  |Context=Not all releases or changes listed below may pertain to your deployment. Check the table below to see which releases apply to you.
 +
  |UseCase={{{UseCase|}}}
 +
  |Application={{{Application|}}}
 +
  |Platform={{{Platform|}}}
 +
  |PageType=Article
 +
  |DepGuideServiceId={{{DepGuideServiceId|}}}
 +
  |ServiceId={{{ServiceId|}}}
 +
}}<!--
 +
 
 +
Defining the Prerequisite Head  
 +
 
 +
-->{{PrerequisitesHead|Prereq={{{Prereq|}}}}}<!--  
  
<!-- removing toggle display for now<div class="toggle-wrap">
+
  Query for showing component list
<toggledisplay linkstyle font-size:larger showtext="Quick lookup table" hidetext="Quick lookup table">
+
 
<div class="toggle-content"> -->
+
-->{{NoteFormat
{{#cargo_query:
+
    |The Release table lists the initial availability date for each release and the deployment environments for which a release is made available. Except when otherwise stated in the description for a specific release, each release includes all of the features and resolved issues that were introduced on earlier dates, regardless of the deployment environment. The features and resolved issues that apply only to a specific deployment environment are noted as such.
tables=ArticleCloudRN__ComponentId,ArticleCloudRN,Component,ComponentRN__ComponentId,ComponentRN,DeploymentType
+
}}<!--  
|join on=ArticleCloudRN__ComponentId._value=Component.Id,ArticleCloudRN__ComponentId._rowID=ArticleCloudRN._ID,ArticleCloudRN__ComponentId._value = ComponentRN__ComponentId._value,ComponentRN__ComponentId._rowID=ComponentRN._ID,ComponentRN.DeploymentTypeId HOLDS DeploymentType.Id
+
 
|fields=Component.Name=Service,CONCAT('[[#',Component.Name,'-',ReleaseNumber,'|',DATE_FORMAT(ReleaseDate,'%M %d, %Y'),']]')=Release Date,CONCAT('[[File:',Image,'|80px]]')=Supported Cloud,Highlight=Highlights,ComponentId=ComponentId,ReleaseDate=ReleaseDate
+
  setting up list of releases table  
|where=(ComponentRN__ComponentId._value IN ({{#arraymap:{{{ComponentId|}}}|,|x|'x'}})) AND (ComponentRN__DeploymentTypeId._value IN ({{#arraymap:{{{DeploymentTypeId|}}}|,|x|'x'}})) AND ComponentRN._pageNamespace="{{NAMESPACENUMBER}}"
+
 
|intro=<table><tr>{{#ifeq:{{#cargo_query:tables=ArticleCloudRN,ArticleCloudRN__ComponentId|join on=ArticleCloudRN._ID=ArticleCloudRN__ComponentId._rowID|fields=COUNT(*)|where=ArticleCloudRN._pageName="{{FULLPAGENAME}}" AND ArticleCloudRN._pageNamespace="{{NAMESPACENUMBER}}"|no html}}|1||<th>Service</th>}}  
+
-->{{#cargo_query:
<th>Released on</th><th>Released for</th><th>Highlights</th></tr>
+
  tables=
|outro=</table>
+
    ArticleCloudRN,
|format=template
+
    ComponentRN,
|template=PrintTopRN
+
    ComponentRN__DeploymentTypeId
|named args=yes
+
  |join on=
|group by=ComponentRN._pageName
+
    ArticleCloudRN.ComponentId HOLDS ComponentRN.ComponentId,
|order by=ComponentRN.ReleaseDate DESC
+
    ComponentRN._ID=ComponentRN__DeploymentTypeId._rowID
}}
+
  |fields=
<!-- removing toggle display for now </div>
+
    ComponentRN.ComponentId,
</toggledisplay></div> -->
+
    ComponentRN.ReleaseNumber,
 +
    ComponentRN.ReleaseDate,
 +
    ComponentRN.Highlight,
 +
    ComponentRN.HighlightBoilerplateId
 +
  |where=ArticleCloudRN._pageNamespace="{{NAMESPACENUMBER}}"
 +
    AND ComponentRN._pageNamespace=ArticleCloudRN._pageNamespace
 +
    AND (ComponentRN.ComponentId IN ({{#arraymap:{{{ComponentId|}}}|,|x|'x'}}))  
 +
    AND (ComponentRN__DeploymentTypeId._value IN ({{#arraymap:{{{DeploymentTypeId|}}}|,|x|'x'}}))
 +
  |limit=10000
 +
  |order by=ComponentRN.ReleaseDate DESC
 +
  |group by=
 +
  ComponentRN._pageID,
 +
  ComponentRN.ComponentId,
 +
    ComponentRN.ReleaseNumber,
 +
    ComponentRN.ReleaseDate,
 +
    ComponentRN.Highlight
 +
  |named args=yes
 +
  |format=template
 +
  |template=PrintTopRN
 +
  |intro=
 +
      <table class="sortable" style="font-size:90%">
 +
      <tr>{{#ifeq:{{#cargo_query:tables=ArticleCloudRN,ArticleCloudRN__ComponentId|join on=ArticleCloudRN._ID=ArticleCloudRN__ComponentId._rowID|fields=COUNT(*)|where=ArticleCloudRN._pageName="{{FULLPAGENAME}}" AND ArticleCloudRN._pageNamespace="{{NAMESPACENUMBER}}"|no html}}|1||<th rowspan="2" style="width:15%">Service</th>}}
 +
      <th rowspan="2" style="width:12%">Available</th>
 +
      <th colspan="2" style="text-align: center>Genesys CX on</th>
 +
  <th rowspan="2">Private edition</th>
 +
      <th rowspan="2">Highlights</th>
 +
      <th rowspan="2">Release</th>
 +
      </tr>
 +
      <tr>
 +
      <th>AWS</th>
 +
  <th>Azure</th>
 +
  <!--<th>GCP</th>-->
 +
  <tr>
 +
  |outro=</table>
 +
}}<!--  
 +
 
 +
  printing content of indivual release note entries
  
{{#cargo_query:
+
-->{{#cargo_query:
tables=Issue,ComponentRN,ComponentRN__ComponentId,ComponentRN__DeploymentTypeId,Component
+
  tables=
|join on=Issue._pageName=ComponentRN._pageName,ComponentRN._ID=ComponentRN__ComponentId._rowID,ComponentRN._ID=ComponentRN__DeploymentTypeId._rowID,ComponentRN.ComponentId HOLDS Component.Id
+
    Component,
|fields=ComponentId=Component,ComponentRN.ReleaseNumber=ReleaseNumber,ComponentRN.ReleaseDate=ReleaseDate,ComponentRN._pageName=Page,Component.Name=ComponentName
+
    ComponentRN,
|format=template
+
    ComponentRN__DeploymentTypeId
|template=RNPrint
+
  |join on=
|where=(ComponentRN__ComponentId._value IN ({{#arraymap:{{{ComponentId|}}}|,|x|'x'}})) AND (ComponentRN__DeploymentTypeId._value IN ({{#arraymap:{{{DeploymentTypeId|}}}|,|x|'x'}})) AND ComponentRN._pageNamespace="{{NAMESPACENUMBER}}"
+
  Component.Id=ComponentRN.ComponentId,
|named args=yes
+
    ComponentRN._ID=ComponentRN__DeploymentTypeId._rowID
|group by=ComponentRN._pageName
+
  |fields=
|order by=ComponentRN.ReleaseDate DESC
+
    ComponentId=Component,
 +
    ComponentRN.ReleaseNumber=ReleaseNumber,
 +
    ComponentRN.ReleaseDate=ReleaseDate,
 +
    Component.Name=ComponentName,
 +
    ComponentRN._pageName=Page
 +
  |format=template
 +
  |template=RNPrint
 +
  |where=
 +
    (ComponentRN.ComponentId IN ({{#arraymap:{{{ComponentId|}}}|,|x|'x'}}))  
 +
    AND (ComponentRN__DeploymentTypeId._value IN ({{#arraymap:{{{DeploymentTypeId|}}}|,|x|'x'}}))  
 +
    AND ComponentRN._pageNamespace="{{NAMESPACENUMBER}}"
 +
  |named args=yes
 +
  |order by=ComponentRN.ReleaseDate DESC
 +
  |group by=
 +
  Component._pageID,
 +
  ComponentRN._pageID,
 +
  ComponentRN.ComponentId,
 +
  ComponentRN.ReleaseNumber,
 +
  ComponentRN.ReleaseDate,
 +
  Component.Name,
 +
  ComponentRN._pageName
 
}}
 
}}
  
Line 75: Line 182:
  
 
{{{AzureBoilerplate|}}}
 
{{{AzureBoilerplate|}}}
<!--|join on=ArticleCloudRN.ComponentId HOLDS Component.Id,ComponentRN.ComponentId__full=ArticleCloudRN.ComponentId__full,ComponentRN.DeploymentTypeId HOLDS DeploymentType.Id
 
-->
 
  
 
{{#css:
 
{{#css:
#mw-content-text .select2-container .select2-choice { height: 34px; line-height: normal; }
+
  #mw-content-text .select2-container .select2-choice { height: 34px; line-height: normal; }
.panel-title { padding: 10px; }
+
  .panel-title { padding: 10px; }
.panel>.panel-heading { padding: 0 }
+
  .panel>.panel-heading { padding: 0 }
.toggle-wrap { margin: 20px 0 25px; }
+
  .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{ 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-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; }
+
  .toggle-content { padding: 10px 20px; border: 1px solid #ddd; border-top: none; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; }
 
}}
 
}}
  
 
{{{ArticleCloudRN|}}}
 
{{{ArticleCloudRN|}}}
<!-- Removing the version dropdown for Standalone (version-less) pages -->{{#switch:{{{Standalone}}}|Yes={{#css:  
+
<!--  
button#version-dropdown { display: none; }
+
 
}}|#default=}}<nowiki /></includeonly><noinclude>[[Category:RNAutomation]]</noinclude>
+
  Removing the version dropdown for Standalone (version-less) pages  
 +
 
 +
-->{{#switch:{{{Standalone}}}
 +
    |Yes=
 +
      {{#css:  
 +
        button#version-dropdown { display: none; }
 +
        .MintyDocsTopicDesc {display:none}
 +
      }}
 +
    |#default=
 +
}}[[Category:Linkable]]<nowiki /></includeonly><noinclude>[[Category:RNAutomation]][[Category:ComponentRN.ComponentId cleanup]]</noinclude>

Latest revision as of 05:45, December 21, 2022

This is the "ArticleCloudRN" template.

It should be called in the following format:

{{ArticleCloudRN
|ServiceId=
|DepGuideServiceId=
|ComponentId=
|DeploymentTypeId=
|ReleaseTypeId=
|Footer=
}}

Edit the page to see the template text.

This template defines the table "ArticleCloudRN". View table. This template adds rows to the table "Article", which is declared by the template Article. View table.

Retrieved from "https://all.docs.genesys.com/Template:ArticleCloudRN (2024-07-28 00:24:16)"