|
11 | 11 | @if (appliesTo.Stack is not null) |
12 | 12 | { |
13 | 13 | @RenderProduct( |
14 | | - "Stack", |
| 14 | + "Stack", |
15 | 15 | "Part of the versioned Elastic Stack\n\nAvailable in ECH, ECE, ECK, and self-managed deployments, unless otherwise stated", |
16 | 16 | VersioningSystemId.Stack, |
17 | 17 | appliesTo.Stack |
|
21 | 21 | { |
22 | 22 | if (appliesTo.Deployment.Ece is not null) |
23 | 23 | { |
24 | | - @RenderProduct("ECE", |
| 24 | + @RenderProduct("ECE", |
25 | 25 | "Elastic Cloud Enterprise", |
26 | | - VersioningSystemId.Ece, |
| 26 | + VersioningSystemId.Ece, |
27 | 27 | appliesTo.Deployment.Ece |
28 | 28 | ) |
29 | 29 | } |
| 30 | + |
30 | 31 | if (appliesTo.Deployment.Eck is not null) |
31 | 32 | { |
32 | 33 | @RenderProduct( |
33 | | - "ECK", |
| 34 | + "ECK", |
34 | 35 | "Elastic Cloud on Kubernetes", |
35 | | - VersioningSystemId.Eck, |
| 36 | + VersioningSystemId.Eck, |
36 | 37 | appliesTo.Deployment.Eck |
37 | 38 | ) |
38 | 39 | } |
| 40 | + |
39 | 41 | if (appliesTo.Deployment.Ess is not null) |
40 | 42 | { |
41 | 43 | @RenderProduct( |
42 | | - "ECH", |
43 | | - "Elastic Cloud Hosted", |
| 44 | + "ECH", |
| 45 | + "Elastic Cloud Hosted", |
44 | 46 | VersioningSystemId.Ess, |
45 | 47 | appliesTo.Deployment.Ess |
46 | 48 | ) |
47 | 49 | } |
| 50 | + |
48 | 51 | if (appliesTo.Deployment.Self is not null) |
49 | 52 | { |
50 | 53 | @RenderProduct( |
51 | | - "Self-Managed", |
| 54 | + "Self-Managed", |
52 | 55 | "Self-managed Elastic deployments", |
53 | 56 | VersioningSystemId.Self, |
54 | 57 | appliesTo.Deployment.Self |
|
60 | 63 | if (appliesTo.Serverless.AllProjects is not null) |
61 | 64 | { |
62 | 65 | @RenderProduct( |
63 | | - "Serverless", |
| 66 | + "Serverless", |
64 | 67 | "Elastic Cloud Serverless: Fully-managed Elastic, available in Elastic Cloud", |
65 | | - VersioningSystemId.Serverless, |
| 68 | + VersioningSystemId.Serverless, |
66 | 69 | appliesTo.Serverless.AllProjects |
67 | 70 | ) |
68 | 71 | } |
|
77 | 80 | appliesTo.Serverless.Elasticsearch |
78 | 81 | ) |
79 | 82 | } |
| 83 | + |
80 | 84 | if (appliesTo.Serverless.Observability is not null) |
81 | 85 | { |
82 | 86 | @RenderProduct( |
83 | | - "Serverless Observability", |
84 | | - "Serverless Observability projects", |
| 87 | + "Serverless Observability", |
| 88 | + "Serverless Observability projects", |
85 | 89 | VersioningSystemId.Observability, |
86 | 90 | appliesTo.Serverless.Observability |
87 | 91 | ) |
88 | 92 | } |
| 93 | + |
89 | 94 | if (appliesTo.Serverless.Security is not null) |
90 | 95 | { |
91 | 96 | @RenderProduct( |
92 | 97 | "Serverless Security", |
93 | 98 | "Serverless Security projects", |
94 | | - VersioningSystemId.Security, |
| 99 | + VersioningSystemId.Security, |
95 | 100 | appliesTo.Serverless.Security |
96 | 101 | ) |
97 | 102 | } |
98 | | - |
99 | 103 | } |
100 | | - |
101 | 104 | } |
102 | 105 | @if (appliesTo.Product is not null) |
103 | 106 | { |
|
106 | 109 | @if (appliesTo.ProductApplicability is not null) |
107 | 110 | { |
108 | 111 | var pa = appliesTo.ProductApplicability; |
109 | | - if (pa.Ecctl is not null) { |
| 112 | + if (pa.Ecctl is not null) |
| 113 | + { |
110 | 114 | @RenderProduct("ECCTL", "Elastic Cloud Control", VersioningSystemId.Ecctl, pa.Ecctl) |
111 | | - ; } |
112 | | - if (pa.Curator is not null) { @RenderProduct("Curator", "", VersioningSystemId.Curator, pa.Curator); } |
113 | | - if (pa.ApmAgentAndroid is not null) { @RenderProduct("APM Agent Android", "Application Performance Monitoring Agent for Android", VersioningSystemId.ApmAgentAndroid, pa.ApmAgentAndroid); } |
114 | | - if (pa.ApmAgentDotnet is not null) { @RenderProduct("APM Agent .NET", "Application Performance Monitoring Agent for .NET", VersioningSystemId.ApmAgentDotnet, pa.ApmAgentDotnet); } |
115 | | - if (pa.ApmAgentGo is not null) { @RenderProduct("APM Agent Go", "Application Performance Monitoring Agent for Go", VersioningSystemId.ApmAgentGo, pa.ApmAgentGo); } |
116 | | - if (pa.ApmAgentIos is not null) { @RenderProduct("APM Agent iOS", "Application Performance Monitoring Agent for iOS", VersioningSystemId.ApmAgentIos, pa.ApmAgentIos); } |
117 | | - if (pa.ApmAgentJava is not null) { @RenderProduct("APM Agent Java", "Application Performance Monitoring Agent for Java", VersioningSystemId.ApmAgentJava, pa.ApmAgentJava); } |
118 | | - if (pa.ApmAgentNode is not null) { @RenderProduct("APM Agent Node.js", "Application Performance Monitoring Agent for Node.js", VersioningSystemId.ApmAgentNode, pa.ApmAgentNode); } |
119 | | - if (pa.ApmAgentPhp is not null) { @RenderProduct("APM Agent PHP", "Application Performance Monitoring Agent for PHP", VersioningSystemId.ApmAgentPhp, pa.ApmAgentPhp); } |
120 | | - if (pa.ApmAgentPython is not null) { @RenderProduct("APM Agent Python", "Application Performance Monitoring Agent for Python", VersioningSystemId.ApmAgentPython, pa.ApmAgentPython); } |
121 | | - if (pa.ApmAgentRuby is not null) { @RenderProduct("APM Agent Ruby", "Application Performance Monitoring Agent for Ruby", VersioningSystemId.ApmAgentRuby, pa.ApmAgentRuby); } |
122 | | - if (pa.ApmAgentRum is not null) { @RenderProduct("APM Agent RUM", "Application Performance Monitoring Agent for Real User Monitoring", VersioningSystemId.ApmAgentRum, pa.ApmAgentRum); } |
123 | | - if (pa.EdotIos is not null) { @RenderProduct("EDOT iOS", "Elastic Distributions of OpenTelemetry for iOS", VersioningSystemId.EdotIos, pa.EdotIos); } |
124 | | - if (pa.EdotAndroid is not null) { @RenderProduct("EDOT Android", "Elastic Distributions of OpenTelemetry for Android", VersioningSystemId.EdotAndroid, pa.EdotAndroid); } |
125 | | - if (pa.EdotDotnet is not null) { @RenderProduct("EDOT .NET", " Elastic Distributions of OpenTelemetry for .NET", VersioningSystemId.EdotDotnet, pa.EdotDotnet); } |
126 | | - if (pa.EdotJava is not null) { @RenderProduct("EDOT Java", "Elastic Distributions of OpenTelemetry for Java", VersioningSystemId.EdotJava, pa.EdotJava); } |
127 | | - if (pa.EdotNode is not null) { @RenderProduct("EDOT Node.js", "Elastic Distributions of OpenTelemetry for Node.js", VersioningSystemId.EdotNode, pa.EdotNode); } |
128 | | - if (pa.EdotPhp is not null) { @RenderProduct("EDOT PHP", "Elastic Distributions of OpenTelemetry for PHP", VersioningSystemId.ApmAgentPhp, pa.EdotPhp); } |
129 | | - if (pa.EdotPython is not null) { @RenderProduct("EDOT Python", "Elastic Distributions of OpenTelemetry for Python", VersioningSystemId.EdotPython, pa.EdotPython); } |
| 115 | + ; |
| 116 | + } |
| 117 | + |
| 118 | + if (pa.Curator is not null) |
| 119 | + { |
| 120 | + @RenderProduct("Curator", "", VersioningSystemId.Curator, pa.Curator) |
| 121 | + ; |
| 122 | + } |
| 123 | + |
| 124 | + if (pa.ApmAgentAndroid is not null) |
| 125 | + { |
| 126 | + @RenderProduct("APM Agent Android", "Application Performance Monitoring Agent for Android", VersioningSystemId.ApmAgentAndroid, pa.ApmAgentAndroid) |
| 127 | + ; |
| 128 | + } |
| 129 | + |
| 130 | + if (pa.ApmAgentDotnet is not null) |
| 131 | + { |
| 132 | + @RenderProduct("APM Agent .NET", "Application Performance Monitoring Agent for .NET", VersioningSystemId.ApmAgentDotnet, pa.ApmAgentDotnet) |
| 133 | + ; |
| 134 | + } |
| 135 | + |
| 136 | + if (pa.ApmAgentGo is not null) |
| 137 | + { |
| 138 | + @RenderProduct("APM Agent Go", "Application Performance Monitoring Agent for Go", VersioningSystemId.ApmAgentGo, pa.ApmAgentGo) |
| 139 | + ; |
| 140 | + } |
| 141 | + |
| 142 | + if (pa.ApmAgentIos is not null) |
| 143 | + { |
| 144 | + @RenderProduct("APM Agent iOS", "Application Performance Monitoring Agent for iOS", VersioningSystemId.ApmAgentIos, pa.ApmAgentIos) |
| 145 | + ; |
| 146 | + } |
| 147 | + |
| 148 | + if (pa.ApmAgentJava is not null) |
| 149 | + { |
| 150 | + @RenderProduct("APM Agent Java", "Application Performance Monitoring Agent for Java", VersioningSystemId.ApmAgentJava, pa.ApmAgentJava) |
| 151 | + ; |
| 152 | + } |
| 153 | + |
| 154 | + if (pa.ApmAgentNode is not null) |
| 155 | + { |
| 156 | + @RenderProduct("APM Agent Node.js", "Application Performance Monitoring Agent for Node.js", VersioningSystemId.ApmAgentNode, pa.ApmAgentNode) |
| 157 | + ; |
| 158 | + } |
| 159 | + |
| 160 | + if (pa.ApmAgentPhp is not null) |
| 161 | + { |
| 162 | + @RenderProduct("APM Agent PHP", "Application Performance Monitoring Agent for PHP", VersioningSystemId.ApmAgentPhp, pa.ApmAgentPhp) |
| 163 | + ; |
| 164 | + } |
| 165 | + |
| 166 | + if (pa.ApmAgentPython is not null) |
| 167 | + { |
| 168 | + @RenderProduct("APM Agent Python", "Application Performance Monitoring Agent for Python", VersioningSystemId.ApmAgentPython, pa.ApmAgentPython) |
| 169 | + ; |
| 170 | + } |
| 171 | + |
| 172 | + if (pa.ApmAgentRuby is not null) |
| 173 | + { |
| 174 | + @RenderProduct("APM Agent Ruby", "Application Performance Monitoring Agent for Ruby", VersioningSystemId.ApmAgentRuby, pa.ApmAgentRuby) |
| 175 | + ; |
| 176 | + } |
| 177 | + |
| 178 | + if (pa.ApmAgentRum is not null) |
| 179 | + { |
| 180 | + @RenderProduct("APM Agent RUM", "Application Performance Monitoring Agent for Real User Monitoring", VersioningSystemId.ApmAgentRum, pa.ApmAgentRum) |
| 181 | + ; |
| 182 | + } |
| 183 | + |
| 184 | + if (pa.EdotIos is not null) |
| 185 | + { |
| 186 | + @RenderProduct("EDOT iOS", "Elastic Distributions of OpenTelemetry for iOS", VersioningSystemId.EdotIos, pa.EdotIos) |
| 187 | + ; |
| 188 | + } |
| 189 | + |
| 190 | + if (pa.EdotAndroid is not null) |
| 191 | + { |
| 192 | + @RenderProduct("EDOT Android", "Elastic Distributions of OpenTelemetry for Android", VersioningSystemId.EdotAndroid, pa.EdotAndroid) |
| 193 | + ; |
| 194 | + } |
| 195 | + |
| 196 | + if (pa.EdotDotnet is not null) |
| 197 | + { |
| 198 | + @RenderProduct("EDOT .NET", " Elastic Distributions of OpenTelemetry for .NET", VersioningSystemId.EdotDotnet, pa.EdotDotnet) |
| 199 | + ; |
| 200 | + } |
| 201 | + |
| 202 | + if (pa.EdotJava is not null) |
| 203 | + { |
| 204 | + @RenderProduct("EDOT Java", "Elastic Distributions of OpenTelemetry for Java", VersioningSystemId.EdotJava, pa.EdotJava) |
| 205 | + ; |
| 206 | + } |
| 207 | + |
| 208 | + if (pa.EdotNode is not null) |
| 209 | + { |
| 210 | + @RenderProduct("EDOT Node.js", "Elastic Distributions of OpenTelemetry for Node.js", VersioningSystemId.EdotNode, pa.EdotNode) |
| 211 | + ; |
| 212 | + } |
| 213 | + |
| 214 | + if (pa.EdotPhp is not null) |
| 215 | + { |
| 216 | + @RenderProduct("EDOT PHP", "Elastic Distributions of OpenTelemetry for PHP", VersioningSystemId.ApmAgentPhp, pa.EdotPhp) |
| 217 | + ; |
| 218 | + } |
| 219 | + |
| 220 | + if (pa.EdotPython is not null) |
| 221 | + { |
| 222 | + @RenderProduct("EDOT Python", "Elastic Distributions of OpenTelemetry for Python", VersioningSystemId.EdotPython, pa.EdotPython) |
| 223 | + ; |
| 224 | + } |
130 | 225 | } |
131 | 226 |
|
132 | 227 | @functions { |
133 | 228 |
|
134 | 229 | private IHtmlContent RenderProduct(string name, string description, VersioningSystemId versioningSystemName, AppliesCollection applications) |
135 | 230 | { |
136 | 231 | var versioningSystem = Model.VersionsConfig.GetVersioningSystem(versioningSystemName); |
137 | | - |
| 232 | + |
138 | 233 | foreach (var applicability in applications) |
139 | 234 | { |
140 | | - |
141 | 235 | var lifecycleTooltip = ""; |
142 | 236 | var badgeText = name; |
143 | 237 | var lifecycleClass = applicability.GetLifeCycleName().ToLowerInvariant().Replace(" ", "-"); |
|
154 | 248 | { |
155 | 249 | lifecycleTooltip = "This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features."; |
156 | 250 | } |
| 251 | + |
157 | 252 | break; |
158 | 253 | case ProductLifecycle.Beta: |
159 | 254 | if (TryGetRealVersion(applicability, out var betaVersion) && betaVersion > versioningSystem.Current) |
|
191 | 286 | badgeText = "Removal planned"; |
192 | 287 | lifecycleTooltip = "We plan to remove this functionality in a future update. Plans may change without notice."; |
193 | 288 | } |
| 289 | + |
194 | 290 | break; |
195 | 291 | } |
196 | 292 |
|
197 | 293 | if ( |
198 | | - applicability.Version is null |
199 | | - && applicability.Lifecycle != ProductLifecycle.Deprecated |
| 294 | + applicability.Version is null |
| 295 | + && applicability.Lifecycle != ProductLifecycle.Deprecated |
200 | 296 | && applicability.Lifecycle != ProductLifecycle.Removed |
201 | 297 | && versioningSystem.Id is VersioningSystemId.Stack or VersioningSystemId.Self or VersioningSystemId.Ece or VersioningSystemId.Eck |
202 | 298 | ) |
203 | 299 | { |
204 | 300 | lifecycleTooltip += $"\n\nApplies to version {versioningSystem.Base} and later - may have been introduced in a previous version"; |
205 | 301 | } |
206 | | - |
| 302 | + |
207 | 303 | var badgeTextChanged = badgeText != name; |
208 | 304 | <span class="applicable-info"> |
209 | 305 | <span class="applicable-name" data-tippy-content="@description">@name</span> |
210 | | - |
| 306 | + |
211 | 307 | @{ |
212 | 308 | var showLifeCycle = applicability.Lifecycle != ProductLifecycle.GenerallyAvailable && !badgeTextChanged; |
213 | 309 | var showVersion = applicability.Version is not null and not AllVersions; |
214 | 310 | } |
215 | | - |
| 311 | + |
216 | 312 | @if (showLifeCycle || showVersion) |
217 | 313 | { |
218 | 314 | <span class="applicable-separator"></span> |
219 | 315 | } |
220 | 316 | <span class="applicable-meta applicable-meta-@lifecycleClass" data-tippy-content="@lifecycleTooltip"> |
221 | 317 | @if (showLifeCycle) |
222 | 318 | { |
223 | | - <span class="applicable-lifecycle applicable-lifecycle-@lifecycleClass">@applicability.GetLifeCycleName()</span> |
| 319 | + <span |
| 320 | + class="applicable-lifecycle applicable-lifecycle-@lifecycleClass">@applicability.GetLifeCycleName()</span> |
224 | 321 | } |
225 | 322 | @if (showVersion) |
226 | 323 | { |
|
238 | 335 | </span> |
239 | 336 | </span> |
240 | 337 | } |
| 338 | + |
241 | 339 | return HtmlString.Empty; |
242 | 340 | } |
| 341 | + |
243 | 342 | } |
| 343 | + |
244 | 344 | @functions { |
| 345 | + |
245 | 346 | private static bool TryGetRealVersion(Applicability applicability, [NotNullWhen(true)] out SemVersion? version) |
246 | 347 | { |
247 | 348 | version = null; |
|
253 | 354 |
|
254 | 355 | return false; |
255 | 356 | } |
| 357 | + |
256 | 358 | } |
0 commit comments