Skip to content

docs(gateway): explain dynamic plugin ordering and the plugin_ordering_algorithm option#5936

Draft
findns94 wants to merge 7 commits into
mainfrom
walker.zhao/FTI-7177
Draft

docs(gateway): explain dynamic plugin ordering and the plugin_ordering_algorithm option#5936
findns94 wants to merge 7 commits into
mainfrom
walker.zhao/FTI-7177

Conversation

@findns94

@findns94 findns94 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Description

Add a standalone explainer for dynamic plugin ordering and document the new plugin_ordering_algorithm option that selects which ordering algorithm runs.

  • app/gateway/plugins/plugin-ordering.md (new): the principle behind dynamic ordering ("at each step, run the highest-priority plugin whose after requirements are already met"), a hand-worked step-by-step example so readers can predict the exact order, a new-vs-legacy comparison (including the FTI-7177 displacement and the before != after asymmetry, with concrete sorted results), the guarantees and non-guarantees, how request scope changes the result, and how to adopt new on upgrade.
  • app/_gateway_entities/plugin.md: trim the "Dynamic plugin ordering" reference section to link to the new explainer, and note the plugin_ordering_algorithm option under known limitations.
  • app/_indices/gateway.yaml: add the new page to the "How Gateway Works" navigation.

Fixes FTI-7177

Preview Links

https://deploy-preview-5936--kongdeveloper.netlify.app/gateway/plugins/plugin-ordering/
https://deploy-preview-5936--kongdeveloper.netlify.app/gateway/entities/plugin/#dynamic-plugin-ordering

Checklist

  • Tested how-to docs. If not, note why here.
  • All pages contain metadata.
  • Any new docs link to existing docs.
  • All autogenerated instructions render correctly (API, decK, Konnect, Kong Manager).
  • Style guide (capitalized gateway entities, placeholder URLs) implemented correctly.
  • Every page has a description entry in frontmatter.
  • Add new pages to the product documentation index (if applicable).

…g_algorithm option

Add a standalone explainer for dynamic plugin ordering and document the new
`plugin_ordering_algorithm` option that selects which ordering algorithm runs.

  * app/gateway/plugins/plugin-ordering.md (new): the principle behind dynamic
    ordering ("at each step, run the highest-priority plugin whose `after`
    requirements are already met"), a hand-worked step-by-step example so readers can
    predict the exact order, a new-vs-legacy comparison (including the FTI-7177
    displacement and the `before` != `after` asymmetry, with concrete sorted results),
    the guarantees and non-guarantees, how request scope changes the result, and how
    to adopt `new` on upgrade.
  * app/_gateway_entities/plugin.md: trim the "Dynamic plugin ordering" reference
    section to link to the new explainer, and note the `plugin_ordering_algorithm`
    option under known limitations.
  * app/_indices/gateway.yaml: add the new page to the "How Gateway Works" navigation.

FTI-7177

Signed-off-by: Walker Zhao <walker.zhao@konghq.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@findns94 findns94 self-assigned this Jul 14, 2026
@findns94 findns94 requested a review from a team as a code owner July 14, 2026 10:03
Copilot AI review requested due to automatic review settings July 14, 2026 10:03
@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 5e9c45f
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/6a560ccf5ede3800081c2286
😎 Deploy Preview https://deploy-preview-5936--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Gateway reference page explaining how dynamic plugin ordering is computed (including a worked example and a new vs legacy comparison) and wires it into the existing Plugin entity docs and Gateway index navigation.

Changes:

  • Adds a standalone explainer page for dynamic plugin ordering behavior and upgrade guidance.
  • Updates the Plugin entity reference to link out to the explainer and mentions plugin_ordering_algorithm.
  • Adds the new page to the Gateway “How Gateway Works” index section.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
app/gateway/plugins/plugin-ordering.md New reference page describing the ordering rule/algorithm behavior, examples, and limitations.
app/_gateway_entities/plugin.md Links to the new explainer from the Dynamic plugin ordering section and mentions algorithm selection.
app/_indices/gateway.yaml Adds the new page to the Gateway documentation index/navigation.

Comment thread app/gateway/plugins/plugin-ordering.md
Comment thread app/gateway/plugins/plugin-ordering.md Outdated
Comment thread app/gateway/plugins/plugin-ordering.md Outdated
Comment thread app/gateway/plugins/plugin-ordering.md Outdated
Comment thread app/_gateway_entities/plugin.md Outdated
findns94 and others added 6 commits July 14, 2026 18:12
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
works_on:
  - on-prem
  - konnect

Signed-off-by: Walker Zhao <walker.zhao@konghq.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@findns94 findns94 marked this pull request as draft July 14, 2026 10:53
@lena-larionova lena-larionova added this to the Gateway 3.16 milestone Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants