Skip to content

Refactor the nginx upstream creation for Joe's PR#4679

Merged
supersven merged 15 commits intoreplace-nginz-disco-by-native-upstream-resolution-WPB-15302from
replace-nginz-disco-by-native-upstream-resolution-WPB-15302_SVEN
Jul 24, 2025
Merged

Refactor the nginx upstream creation for Joe's PR#4679
supersven merged 15 commits intoreplace-nginz-disco-by-native-upstream-resolution-WPB-15302from
replace-nginz-disco-by-native-upstream-resolution-WPB-15302_SVEN

Conversation

@supersven
Copy link
Contributor

@supersven supersven commented Jul 22, 2025

My branch to try refactorings on the base branch (instead of messing with it directly.)

Besides minor cleanups, I'm now using an Attoparsec Parser to identify and drop upsteam <name> { <code> } blocks (blocks can be nested, thus a simple regex won't help) and Interpolate Template Haskell templates to generate new upstream blocks.

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@supersven supersven added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jul 22, 2025
@supersven supersven marked this pull request as ready for review July 24, 2025 13:20
@supersven supersven requested a review from a team as a code owner July 24, 2025 13:20
@supersven supersven changed the title Formatting, refactor scopes and upstream dropping Refactor the nginx upstream creation for Joe's PR Jul 24, 2025
@supersven supersven merged commit 4352f49 into replace-nginz-disco-by-native-upstream-resolution-WPB-15302 Jul 24, 2025
7 checks passed
@supersven supersven deleted the replace-nginz-disco-by-native-upstream-resolution-WPB-15302_SVEN branch July 24, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant