-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finish conversion to EPP templates #2545
Open
smortex
wants to merge
8
commits into
main
Choose a base branch
from
epp
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+1,104
−2,447
Commits on Jun 6, 2024
-
This code section is weird. My guess is someone unexpectedly pressed `J` in vi and joined multiple lines.
Configuration menu - View commit details
-
Copy full SHA for ae3632a - Browse repository at this point
Copy the full SHA ae3632aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2b0350 - Browse repository at this point
Copy the full SHA b2b0350View commit details -
Fix apache::vhost::error_documents data type
The template in templates/vhost/_error_document.erb is only functionnal if we pass an array of hashes. This is going to be simplified in a future commit so only accept values that produce working configuration and reject configuration that is invalid and ignored.
Configuration menu - View commit details
-
Copy full SHA for e3320a5 - Browse repository at this point
Copy the full SHA e3320a5View commit details -
Make sure we still support ERB templates when provided
`apache::mod::php` allows to pass an ERB template, switching the default template to EPP will require us to change the default value of the `template` parameter which is generally a breaking change. Users who rely on this parameter to provide a custom template are currently using an ERB template, so we must preserve the legacy behavior for them, and detect if the template should be processed as ERB or EPP. For this purpose, we check the file extension in a conservative way (any template whose filename does not end with `.epp` is assumbed to be an ERB template). As a result, this change is backwards-compatible for end-users.
Configuration menu - View commit details
-
Copy full SHA for ce29022 - Browse repository at this point
Copy the full SHA ce29022View commit details -
A lot of work was done to convert the module templates form ERB to EPP, but a few templates where still to be converted. Along with various benefits, EPP templates offer better detection for access to undefined variables. This refactoring therefore fix a few issues that where reported while converting. Also a bunch of outdated comments about which template use which variable where removed no that this usage is explicit. The extensive test suite helped ensure the conversion was not introducing regressions.
Configuration menu - View commit details
-
Copy full SHA for adb5b1a - Browse repository at this point
Copy the full SHA adb5b1aView commit details -
A required variable in the template does not exist in the class parameters. Maybe nobody use this and we can just ignore this for the next few weeks RedHat 7 (the only OS exercising this code path) is supported?
Configuration menu - View commit details
-
Copy full SHA for 14f2189 - Browse repository at this point
Copy the full SHA 14f2189View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c48bce - Browse repository at this point
Copy the full SHA 7c48bceView commit details -
The typing system allows us to build more straightforward type checking, while here replace some conditional constructs to non-conditional ones as we usualy do nowadays.
Configuration menu - View commit details
-
Copy full SHA for 6d15dbe - Browse repository at this point
Copy the full SHA 6d15dbeView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.