Skip to content
Open
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 on lines +55 to +57
Comment on lines +55 to +57
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine. The beta warning is in the metadata already, so the LLM will have that information. This change is specifically for human eyes that aren't noticing the badge.

</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: 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