Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introducing AlternativeNames #1704

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 41 additions & 30 deletions docs/layouts/shortcodes/moduleHistory.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{{ $ProviderNamespaceColumnId := 0 }}
{{ $ResourceTypeColumnId := 0 }}
{{ $ModuleDisplayNameColumnId := 0 }}
{{ $AlternativeNamesColumnId := 0 }}
{{ $ModuleNameColumnId := 0 }}
{{ $ModuleStatusColumnId := 0 }}
{{ $RepoURLColumnId := 0 }}
Expand All @@ -35,26 +36,28 @@
{{ $ProviderNamespaceColumnId = 0 }}
{{ $ResourceTypeColumnId = 1 }}
{{ $ModuleDisplayNameColumnId = 2 }}
{{ $ModuleNameColumnId = 3 }}
{{ $ModuleStatusColumnId = 4 }}
{{ $RepoURLColumnId = 5 }}
{{ $PublicRegistryReferenceColumnId = 6 }}
{{ $TelemetryIdPrefixColumnId = 7 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 8 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 9 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 10 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 11 }}
{{ $ModuleOwnersGHTeamColumnId = 12 }}
{{ $ModuleContributorsGHTeamColumnId = 13 }}
{{ $DescriptionColumnId = 14 }}
{{ $CommentsColumnId = 15 }}
{{ $FirstPublishedInColumnId = 16 }}
{{ $AlternativeNamesColumnId = 3 }}
{{ $ModuleNameColumnId = 4 }}
{{ $ModuleStatusColumnId = 5 }}
{{ $RepoURLColumnId = 6 }}
{{ $PublicRegistryReferenceColumnId = 7 }}
{{ $TelemetryIdPrefixColumnId = 8 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 9 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 10 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 11 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 12 }}
{{ $ModuleOwnersGHTeamColumnId = 13 }}
{{ $ModuleContributorsGHTeamColumnId = 14 }}
{{ $DescriptionColumnId = 15 }}
{{ $CommentsColumnId = 16 }}
{{ $FirstPublishedInColumnId = 17 }}

{{ range $row, $rows }}
{{ $module := dict
"ProviderNamespace" (index $row $ProviderNamespaceColumnId)
"ResourceType" (index $row $ResourceTypeColumnId)
"ModuleDisplayName" (index $row $ModuleDisplayNameColumnId)
"AlternativeNames" (index $row $AlternativeNamesColumnId)
"ModuleName" (index $row $ModuleNameColumnId)
"ModuleStatus" (index $row $ModuleStatusColumnId)
"RepoURL" (index $row $RepoURLColumnId)
Expand All @@ -78,24 +81,26 @@

{{ else if or (eq $moduleType "pattern") (eq $moduleType "utility") }}
{{ $ModuleDisplayNameColumnId = 0 }}
{{ $ModuleNameColumnId = 1 }}
{{ $ModuleStatusColumnId = 2 }}
{{ $RepoURLColumnId = 3 }}
{{ $PublicRegistryReferenceColumnId = 4 }}
{{ $TelemetryIdPrefixColumnId = 5 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 6 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 7 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 8 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 9 }}
{{ $ModuleOwnersGHTeamColumnId = 10 }}
{{ $ModuleContributorsGHTeamColumnId = 11 }}
{{ $DescriptionColumnId = 12 }}
{{ $CommentsColumnId = 13 }}
{{ $FirstPublishedInColumnId = 14 }}
{{ $AlternativeNamesColumnId = 1 }}
{{ $ModuleNameColumnId = 2 }}
{{ $ModuleStatusColumnId = 3 }}
{{ $RepoURLColumnId = 4 }}
{{ $PublicRegistryReferenceColumnId = 5 }}
{{ $TelemetryIdPrefixColumnId = 6 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 7 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 8 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 9 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 10 }}
{{ $ModuleOwnersGHTeamColumnId = 11 }}
{{ $ModuleContributorsGHTeamColumnId = 12 }}
{{ $DescriptionColumnId = 13 }}
{{ $CommentsColumnId = 14 }}
{{ $FirstPublishedInColumnId = 15 }}

{{ range $row, $rows }}
{{ $module := dict
"ModuleDisplayName" (index $row $ModuleDisplayNameColumnId)
"AlternativeNames" (index $row $AlternativeNamesColumnId)
"ModuleName" (index $row $ModuleNameColumnId)
"ModuleStatus" (index $row $ModuleStatusColumnId)
"RepoURL" (index $row $RepoURLColumnId)
Expand Down Expand Up @@ -164,10 +169,13 @@
{{ end }}
{{ end }}
{{ $trimmedModuleStatus := replace $item.ModuleStatus "Module " "" }}
{{ $trimmedAlternativeNames := replace $item.AlternativeNames " " " " }}
{{ $trimmedAlternativeNames = replace $trimmedAlternativeNames ", " "," }}
{{ $trimmedAlternativeNames = replace $trimmedAlternativeNames "," ", " }}
<tr>
<td>{{ printf "%02d" $i }}{{ $i = add $i 1 }}</td>
<td>{{ if $useLinks }} {{ if or (eq $item.ModuleStatus "Available :green_circle:") (eq $item.ModuleStatus "Orphaned :eyes:") }} <a href="{{ $item.RepoURL }}">{{ $item.ModuleName }}</a> {{ else }} {{ $item.ModuleName }} {{ end }} {{else}} {{ $item.ModuleName }} {{ end }} </td>
<td>{{ $item.ModuleDisplayName }}</td>
<td>{{ with $trimmedAlternativeNames }} <b>{{ $item.ModuleDisplayName }}</b><br><i>{{ $trimmedAlternativeNames }} </i> {{ else }} <b>{{ $item.ModuleDisplayName }} </b> {{ end }}</td>
<td>{{ if or (eq $item.ModuleStatus "Available :green_circle:") (eq $item.ModuleStatus "Orphaned :eyes:") }}<a href="https://mcr.microsoft.com/v2/bicep/{{ $item.ModuleName }}/tags/list"><image src="https://img.shields.io/badge/{{ emojify $trimmedModuleStatus }}-{{ $moduleLatestVersion }}-blue"/></a> {{ else }} <a href=""><image src="https://img.shields.io/badge/{{ emojify $trimmedModuleStatus }}-N/A-blue"/></a> {{ end }}</td>
<td>{{ if ne $item.PrimaryModuleOwnerGHHandle ""}}<a href="https://github.com/{{ $item.PrimaryModuleOwnerGHHandle }}">{{ $item.PrimaryModuleOwnerGHHandle }}</a> {{ if and (ne $item.PrimaryModuleOwnerGHHandle "") (ne $item.PrimaryModuleOwnerDisplayName "") }} <br> ({{ $item.PrimaryModuleOwnerDisplayName }}) {{ end }} {{ end}}</td>
</tr>
Expand Down Expand Up @@ -224,11 +232,14 @@
{{ end }}
{{ end }}
{{ $trimmedModuleStatus := replace $item.ModuleStatus "Module " "" }}
{{ $trimmedAlternativeNames := replace $item.AlternativeNames " " " " }}
{{ $trimmedAlternativeNames = replace $trimmedAlternativeNames ", " "," }}
{{ $trimmedAlternativeNames = replace $trimmedAlternativeNames "," ", " }}
<tr>
<td>{{ printf "%02d" $i }}{{ $i = add $i 1 }}</td>
<td>{{ if $useLinks }} {{ if or (eq $item.ModuleStatus "Available :green_circle:") (eq $item.ModuleStatus "Orphaned :eyes:") }} <a href="{{ $item.PublicRegistryReference }}">{{ $item.ModuleName }}</a> {{ else }} {{ $item.ModuleName }} {{ end }} {{else}} {{ $item.ModuleName }} {{ end }} </td>
<td>{{ if $useLinks }} {{ if or (eq $item.ModuleStatus "Available :green_circle:") (eq $item.ModuleStatus "Orphaned :eyes:") }} <a href="{{ $item.RepoURL }}" style="color: inherit; text-decoration: none; background-color: transparent;">📄</a> {{ else }} {{ "n/a" }} {{ end }} {{else}} {{ "n/a" }} {{ end }} </td>
<td>{{ $item.ModuleDisplayName }}</td>
<td>{{ with $trimmedAlternativeNames }} <b>{{ $item.ModuleDisplayName }}</b><br><i>{{ $trimmedAlternativeNames }} </i> {{ else }} <b>{{ $item.ModuleDisplayName }} </b> {{ end }}</td>
<td>{{ if or (eq $item.ModuleStatus "Available :green_circle:") (eq $item.ModuleStatus "Orphaned :eyes:") }}<a href="{{ $item.PublicRegistryReference }}"><image src="https://img.shields.io/badge/{{ emojify $trimmedModuleStatus }}-{{ $moduleLatestVersion }}-purple"/></a> {{ else }} <a href=""><image src="https://img.shields.io/badge/{{ emojify $trimmedModuleStatus }}-N/A-purple"/></a> {{ end }}</td>
<td>{{ if ne $item.PrimaryModuleOwnerGHHandle ""}}<a href="https://github.com/{{ $item.PrimaryModuleOwnerGHHandle }}">{{ $item.PrimaryModuleOwnerGHHandle }}</a> {{ if and (ne $item.PrimaryModuleOwnerGHHandle "") (ne $item.PrimaryModuleOwnerDisplayName "") }} <br> ({{ $item.PrimaryModuleOwnerDisplayName }}) {{ end }} {{ end}}</td>

Expand Down
67 changes: 39 additions & 28 deletions docs/layouts/shortcodes/moduleNameStatusOwners.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{{ $ProviderNamespaceColumnId := 0 }}
{{ $ResourceTypeColumnId := 0 }}
{{ $ModuleDisplayNameColumnId := 0 }}
{{ $AlternativeNamesColumnId := 0 }}
{{ $ModuleNameColumnId := 0 }}
{{ $ModuleStatusColumnId := 0 }}
{{ $RepoURLColumnId := 0 }}
Expand All @@ -32,25 +33,27 @@
{{ $ProviderNamespaceColumnId = 0 }}
{{ $ResourceTypeColumnId = 1 }}
{{ $ModuleDisplayNameColumnId = 2 }}
{{ $ModuleNameColumnId = 3 }}
{{ $ModuleStatusColumnId = 4 }}
{{ $RepoURLColumnId = 5 }}
{{ $PublicRegistryReferenceColumnId = 6 }}
{{ $TelemetryIdPrefixColumnId = 7 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 8 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 9 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 10 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 11 }}
{{ $ModuleOwnersGHTeamColumnId = 12 }}
{{ $ModuleContributorsGHTeamColumnId = 13 }}
{{ $DescriptionColumnId = 14 }}
{{ $CommentsColumnId = 15 }}
{{ $AlternativeNamesColumnId = 3 }}
{{ $ModuleNameColumnId = 4 }}
{{ $ModuleStatusColumnId = 5 }}
{{ $RepoURLColumnId = 6 }}
{{ $PublicRegistryReferenceColumnId = 7 }}
{{ $TelemetryIdPrefixColumnId = 8 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 9 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 10 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 11 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 12 }}
{{ $ModuleOwnersGHTeamColumnId = 13 }}
{{ $ModuleContributorsGHTeamColumnId = 14 }}
{{ $DescriptionColumnId = 15 }}
{{ $CommentsColumnId = 16 }}

{{ range $row, $rows }}
{{ $map := dict
"ProviderNamespace" (index $row $ProviderNamespaceColumnId)
"ResourceType" (index $row $ResourceTypeColumnId)
"ModuleDisplayName" (index $row $ModuleDisplayNameColumnId)
"AlternativeNames" (index $row $AlternativeNamesColumnId)
"ModuleName" (index $row $ModuleNameColumnId)
"ModuleStatus" (index $row $ModuleStatusColumnId)
"RepoURL" (index $row $RepoURLColumnId)
Expand All @@ -70,23 +73,25 @@

{{ else if or (eq $moduleType "pattern") (eq $moduleType "utility") }}
{{ $ModuleDisplayNameColumnId = 0 }}
{{ $ModuleNameColumnId = 1 }}
{{ $ModuleStatusColumnId = 2 }}
{{ $RepoURLColumnId = 3 }}
{{ $PublicRegistryReferenceColumnId = 4 }}
{{ $TelemetryIdPrefixColumnId = 5 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 6 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 7 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 8 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 9 }}
{{ $ModuleOwnersGHTeamColumnId = 10 }}
{{ $ModuleContributorsGHTeamColumnId = 11 }}
{{ $DescriptionColumnId = 12 }}
{{ $CommentsColumnId = 13 }}
{{ $AlternativeNamesColumnId = 1 }}
{{ $ModuleNameColumnId = 2 }}
{{ $ModuleStatusColumnId = 3 }}
{{ $RepoURLColumnId = 4 }}
{{ $PublicRegistryReferenceColumnId = 5 }}
{{ $TelemetryIdPrefixColumnId = 6 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 7 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 8 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 9 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 10 }}
{{ $ModuleOwnersGHTeamColumnId = 11 }}
{{ $ModuleContributorsGHTeamColumnId = 12 }}
{{ $DescriptionColumnId = 13 }}
{{ $CommentsColumnId = 14 }}

{{ range $row, $rows }}
{{ $map := dict
"ModuleDisplayName" (index $row $ModuleDisplayNameColumnId)
"AlternativeNames" (index $row $AlternativeNamesColumnId)
"ModuleName" (index $row $ModuleNameColumnId)
"ModuleStatus" (index $row $ModuleStatusColumnId)
"RepoURL" (index $row $RepoURLColumnId)
Expand Down Expand Up @@ -165,10 +170,13 @@
{{ end }}
{{ end }}
{{ $trimmedModuleStatus := replace $item.ModuleStatus "Module " "" }}
{{ $trimmedAlternativeNames := replace $item.AlternativeNames " " " " }}
{{ $trimmedAlternativeNames = replace $trimmedAlternativeNames ", " "," }}
{{ $trimmedAlternativeNames = replace $trimmedAlternativeNames "," ", " }}
<tr>
<td>{{ printf "%02d" $i }}{{ $i = add $i 1 }}</td>
<td>{{ if $useLinks }} {{ if or (eq $item.ModuleStatus "Available :green_circle:") (eq $item.ModuleStatus "Orphaned :eyes:") }} <a href="{{ $item.RepoURL }}">{{ $item.ModuleName }}</a> {{ else }} {{ $item.ModuleName }} {{ end }} {{else}} {{ $item.ModuleName }} {{ end }} </td>
<td>{{ $item.ModuleDisplayName }}</td>
<td>{{ with $trimmedAlternativeNames }} <b>{{ $item.ModuleDisplayName }}</b><br><i>{{ $trimmedAlternativeNames }} </i> {{ else }} <b>{{ $item.ModuleDisplayName }} </b> {{ end }}</td>
<td>{{ if or (eq $item.ModuleStatus "Available :green_circle:") (eq $item.ModuleStatus "Orphaned :eyes:") }}<a href="https://mcr.microsoft.com/v2/bicep/{{ $item.ModuleName }}/tags/list"><image src="https://img.shields.io/badge/{{ emojify $trimmedModuleStatus }}-{{ $moduleLatestVersion }}-blue"/></a> {{ else }} <a href=""><image src="https://img.shields.io/badge/{{ emojify $trimmedModuleStatus }}-N/A-blue"/></a> {{ end }}</td>
<td>{{ if ne $item.PrimaryModuleOwnerGHHandle ""}}<a href="https://github.com/{{ $item.PrimaryModuleOwnerGHHandle }}">{{ $item.PrimaryModuleOwnerGHHandle }}</a> {{ if and (ne $item.PrimaryModuleOwnerGHHandle "") (ne $item.PrimaryModuleOwnerDisplayName "") }} <br> ({{ $item.PrimaryModuleOwnerDisplayName }}) {{ end }} {{ end}} <br> {{ if ne $item.SecondaryModuleOwnerGHHandle ""}}<a href="https://github.com/{{ $item.SecondaryModuleOwnerGHHandle }}">{{ $item.SecondaryModuleOwnerGHHandle }}</a> {{ if and (ne $item.SecondaryModuleOwnerGHHandle "") (ne $item.SecondaryModuleOwnerDisplayName "") }} <br> ({{ $item.SecondaryModuleOwnerDisplayName }}) {{ end }} {{ end}}</td>
</tr>
Expand Down Expand Up @@ -225,11 +233,14 @@
{{ end }}
{{ end }}
{{ $trimmedModuleStatus := replace $item.ModuleStatus "Module " "" }}
{{ $trimmedAlternativeNames := replace $item.AlternativeNames " " " " }}
{{ $trimmedAlternativeNames = replace $trimmedAlternativeNames ", " "," }}
{{ $trimmedAlternativeNames = replace $trimmedAlternativeNames "," ", " }}
<tr>
<td>{{ printf "%02d" $i }}{{ $i = add $i 1 }}</td>
<td>{{ if $useLinks }} {{ if or (eq $item.ModuleStatus "Available :green_circle:") (eq $item.ModuleStatus "Orphaned :eyes:") }} <a href="{{ $item.PublicRegistryReference }}">{{ $item.ModuleName }}</a> {{ else }} {{ $item.ModuleName }} {{ end }} {{else}} {{ $item.ModuleName }} {{ end }} </td>
<td>{{ if $useLinks }} {{ if or (eq $item.ModuleStatus "Available :green_circle:") (eq $item.ModuleStatus "Orphaned :eyes:") }} <a href="{{ $item.RepoURL }}" style="color: inherit; text-decoration: none; background-color: transparent;">📄</a> {{ else }} {{ "n/a" }} {{ end }} {{else}} {{ "n/a" }} {{ end }} </td>
<td>{{ $item.ModuleDisplayName }}</td>
<td>{{ with $trimmedAlternativeNames }} <b>{{ $item.ModuleDisplayName }}</b><br><i>{{ $trimmedAlternativeNames }} </i> {{ else }} <b>{{ $item.ModuleDisplayName }} </b> {{ end }}</td>
<td>{{ if or (eq $item.ModuleStatus "Available :green_circle:") (eq $item.ModuleStatus "Orphaned :eyes:") }}<a href="{{ $item.PublicRegistryReference }}"><image src="https://img.shields.io/badge/{{ emojify $trimmedModuleStatus }}-{{ $moduleLatestVersion }}-purple"/></a> {{ else }} <a href=""><image src="https://img.shields.io/badge/{{ emojify $trimmedModuleStatus }}-N/A-purple"/></a> {{ end }}</td>
<td>{{ if ne $item.PrimaryModuleOwnerGHHandle ""}}<a href="https://github.com/{{ $item.PrimaryModuleOwnerGHHandle }}">{{ $item.PrimaryModuleOwnerGHHandle }}</a> {{ if and (ne $item.PrimaryModuleOwnerGHHandle "") (ne $item.PrimaryModuleOwnerDisplayName "") }} <br> ({{ $item.PrimaryModuleOwnerDisplayName }}) {{ end }} {{ end}} <br> {{ if ne $item.SecondaryModuleOwnerGHHandle ""}}<a href="https://github.com/{{ $item.SecondaryModuleOwnerGHHandle }}">{{ $item.SecondaryModuleOwnerGHHandle }}</a> {{ if and (ne $item.SecondaryModuleOwnerGHHandle "") (ne $item.SecondaryModuleOwnerDisplayName "") }} <br> ({{ $item.SecondaryModuleOwnerDisplayName }}) {{ end }} {{ end}}</td>
</tr>
Expand Down
57 changes: 31 additions & 26 deletions docs/layouts/shortcodes/moduleNameTelemetryGHTeams.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{{ $ProviderNamespaceColumnId := 0 }}
{{ $ResourceTypeColumnId := 0 }}
{{ $ModuleDisplayNameColumnId := 0 }}
{{ $AlternativeNamesColumnId := 0 }}
{{ $ModuleNameColumnId := 0 }}
{{ $ModuleStatusColumnId := 0 }}
{{ $RepoURLColumnId := 0 }}
Expand All @@ -30,25 +31,27 @@
{{ $ProviderNamespaceColumnId = 0 }}
{{ $ResourceTypeColumnId = 1 }}
{{ $ModuleDisplayNameColumnId = 2 }}
{{ $ModuleNameColumnId = 3 }}
{{ $ModuleStatusColumnId = 4 }}
{{ $RepoURLColumnId = 5 }}
{{ $PublicRegistryReferenceColumnId = 6 }}
{{ $TelemetryIdPrefixColumnId = 7 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 8 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 9 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 10 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 11 }}
{{ $ModuleOwnersGHTeamColumnId = 12 }}
{{ $ModuleContributorsGHTeamColumnId = 13 }}
{{ $DescriptionColumnId = 14 }}
{{ $CommentsColumnId = 15 }}
{{ $AlternativeNamesColumnId = 3 }}
{{ $ModuleNameColumnId = 4 }}
{{ $ModuleStatusColumnId = 5 }}
{{ $RepoURLColumnId = 6 }}
{{ $PublicRegistryReferenceColumnId = 7 }}
{{ $TelemetryIdPrefixColumnId = 8 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 9 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 10 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 11 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 12 }}
{{ $ModuleOwnersGHTeamColumnId = 13 }}
{{ $ModuleContributorsGHTeamColumnId = 14 }}
{{ $DescriptionColumnId = 15 }}
{{ $CommentsColumnId = 16 }}

{{ range $row, $rows }}
{{ $map := dict
"ProviderNamespace" (index $row $ProviderNamespaceColumnId)
"ResourceType" (index $row $ResourceTypeColumnId)
"ModuleDisplayName" (index $row $ModuleDisplayNameColumnId)
"AlternativeNames" (index $row $AlternativeNamesColumnId)
"ModuleName" (index $row $ModuleNameColumnId)
"ModuleStatus" (index $row $ModuleStatusColumnId)
"RepoURL" (index $row $RepoURLColumnId)
Expand All @@ -68,23 +71,25 @@

{{ else if or (eq $moduleType "pattern") (eq $moduleType "utility") }}
{{ $ModuleDisplayNameColumnId = 0 }}
{{ $ModuleNameColumnId = 1 }}
{{ $ModuleStatusColumnId = 2 }}
{{ $RepoURLColumnId = 3 }}
{{ $PublicRegistryReferenceColumnId = 4 }}
{{ $TelemetryIdPrefixColumnId = 5 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 6 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 7 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 8 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 9 }}
{{ $ModuleOwnersGHTeamColumnId = 10 }}
{{ $ModuleContributorsGHTeamColumnId = 11 }}
{{ $DescriptionColumnId = 12 }}
{{ $CommentsColumnId = 13 }}
{{ $AlternativeNamesColumnId = 1 }}
{{ $ModuleNameColumnId = 2 }}
{{ $ModuleStatusColumnId = 3 }}
{{ $RepoURLColumnId = 4 }}
{{ $PublicRegistryReferenceColumnId = 5 }}
{{ $TelemetryIdPrefixColumnId = 6 }}
{{ $PrimaryModuleOwnerGHHandleColumnId = 7 }}
{{ $PrimaryModuleOwnerDisplayNameColumnId = 8 }}
{{ $SecondaryModuleOwnerGHHandleColumnId = 9 }}
{{ $SecondaryModuleOwnerDisplayNameColumnId = 10 }}
{{ $ModuleOwnersGHTeamColumnId = 11 }}
{{ $ModuleContributorsGHTeamColumnId = 12 }}
{{ $DescriptionColumnId = 13 }}
{{ $CommentsColumnId = 14 }}

{{ range $row, $rows }}
{{ $map := dict
"ModuleDisplayName" (index $row $ModuleDisplayNameColumnId)
"AlternativeNames" (index $row $AlternativeNamesColumnId)
"ModuleName" (index $row $ModuleNameColumnId)
"ModuleStatus" (index $row $ModuleStatusColumnId)
"RepoURL" (index $row $RepoURLColumnId)
Expand Down
Loading