Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ faqs:
When `result=false`, the plugin was skipped for that request.
---

{:.warning}
> This feature is currently in [beta](/stages-of-software-availability/#beta) and should not be used in a production environment.

## Add a plugin with a condition

Add the Request Termination plugin to your Route with a `condition` expression.
Expand Down
4 changes: 4 additions & 0 deletions app/_includes/banners/stage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{%- if include.beta -%}{%- assign type = 'beta' -%}{%- endif -%}
{%- if include.tech_preview -%}{%- assign type = 'tech_preview' -%}{%- endif -%}
{%- assign stage = site.data.stages[type] -%}
<blockquote class="warning"><span>This feature is currently in <a href="{{stage.url}}">{{ stage.text }}</a> and should not be used in a production environment.</span></blockquote>
5 changes: 4 additions & 1 deletion app/_includes/layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,16 @@ <h1 id="{{page.title | slugify}}" class="link-anchor">{{ page.title | liquify }}
{% contentblock nav_header %}
</section>
{% endifhascontent %}

{%- if page.beta == true or page.tech_preview == true -%}
{%- include_cached banners/stage.html beta=page.beta tech_preview=page.tech_preview -%}
{%- endif -%}
Comment thread
lena-larionova marked this conversation as resolved.
Comment thread
lena-larionova marked this conversation as resolved.
</div>

{% if page.layout == 'with_aside' or layout.layout == 'with_aside' %}
<div class="flex flex-col gap-3 md:hidden">
{% include layouts/aside.html mobile=true %}
</div>
{% endif %}

{{ content }}
</main>
3 changes: 2 additions & 1 deletion app/_plugins/generators/data/llm_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def frontmatter
'min_version' => @page.data['min_version'],
'tier' => @page.data['tier'],
'products' => resolve_names(@page.data['products'], 'products'),
'tools' => resolve_names(@page.data['tools'], 'tools')
'tools' => resolve_names(@page.data['tools'], 'tools'),
'beta' => @page.data['beta']
}
data['tags'] = @page.data['tags'] if @page.data.fetch('tags', []).any?
data['canonical'] = @page.data['canonical?'] unless @page.data['canonical?'].nil?
Expand Down
3 changes: 0 additions & 3 deletions app/gateway/plugins/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ related_resources:

---

{:.warning}
> This feature is currently in [beta](/stages-of-software-availability/#beta) and should not be used in a production environment.

Plugin conditions allow you to attach an optional `condition` expression to any plugin.
When a request comes in, {{site.base_gateway}} evaluates the expression immediately before the plugin's `access` phase.
If the expression evaluates to `true`, the plugin runs normally. If it evaluates to `false`, the plugin is skipped for that request.
Expand Down
Loading