Skip to content
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

Ignore null template key values #679

Closed
wants to merge 3 commits into from

Conversation

jbarton123
Copy link

Currently for values set to ~ that are compiled together using this function, these values are still appended to the output. This ensures that for any null values passed into this function, that they are ignored.

@jbarton123 jbarton123 added the bug Something isn't working label Apr 21, 2022
@@ -85,4 +86,5 @@ server {
fastcgi_param APPLICATION_STORE {{ store_code }};
}
}
{% endif %}
Copy link
Contributor

Choose a reason for hiding this comment

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

misses zed api further down, however there's another PR for that #685

@@ -3,7 +3,7 @@
{% set syncvolume = true %}
{% endif %}
{% set hostnames = [@('hostname')] %}
{% set hostnames = hostnames|merge(@('hostname_aliases')|map(alias => "#{alias}." ~ @('domain'))) %}
{% set hostnames = hostnames|merge(@('hostname_aliases')| filter(v => v is not empty) | map(alias => "#{alias}." ~ @('domain'))) %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Just this bit now that is what we want to keep after @Chemaclass's PRs now merged

Copy link
Contributor

Choose a reason for hiding this comment

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

although should also be done for varnish. I'll create a PR

Copy link
Contributor

Choose a reason for hiding this comment

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

#689, I've instead done at the source

Comment on lines +258 to +260
if ($value === null) {
continue;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Already done: #686

@andytson-inviqa andytson-inviqa deleted the ignore-null-template-key-values branch April 28, 2022 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants