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

[QOLDEV-1011] ensure we only fall back to 'c' if parameters are undef… #258

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

ThrawnCA
Copy link
Contributor

@ThrawnCA ThrawnCA commented Dec 5, 2024

…ined (not just falsy)

@ThrawnCA ThrawnCA requested a review from a team December 5, 2024 00:35
{% set datarequest = datarequest or c.datarequest %}
{% set errors = errors or c.errors %}
{% set errors_summary = errors_summary or c.errors_summary %}
{% if datarequest is not defined %}
Copy link
Member

Choose a reason for hiding this comment

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

why is datarequest the controller of this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a good indicator of whether we're running a version of ckanext-datarequests that relies on c or uses extra_vars. The other option would be to individually test for the presence of each parameter, but that seems unnecessary when this is a temporary shim.

@ThrawnCA ThrawnCA force-pushed the QOLDEV-1011-datarequests-ckan-2.11 branch from 183c300 to 775ca00 Compare December 5, 2024 01:54
@ThrawnCA ThrawnCA merged commit a43b096 into develop Dec 5, 2024
7 of 11 checks passed
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.

2 participants