Skip to content

fix: generate TUI static files for both singular and plural variation names#445

Open
probelabs[bot] wants to merge 1 commit intomasterfrom
fix-tui-variation-plural
Open

fix: generate TUI static files for both singular and plural variation names#445
probelabs[bot] wants to merge 1 commit intomasterfrom
fix-tui-variation-plural

Conversation

@probelabs
Copy link
Copy Markdown
Contributor

@probelabs probelabs bot commented Apr 8, 2026

Problem / Task

The TUI static site generator in policy/tui.go explicitly strips the trailing s from the filename when generating static files. This means it only generates files under the v2/prod-variation/... path. However, tyk-pro uses VARIATION: prod-variations in its workflows, so it requests v2/prod-variations/... which returns a 404 Not Found, causing pipeline failures.

Changes

  • Updated GenerateStatic in policy/tui.go to generate static files for both the singular and plural forms of the variation name (e.g., prod-variation and prod-variations).
  • This maintains backward compatibility with both repositories.

Testing

  • Verified that the code compiles successfully.
  • Ran existing tests in gromit/policy and they pass.

@probelabs probelabs bot requested a review from a team as a code owner April 8, 2026 12:10
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.

1 participant