Skip to content

Fix minor issue in vgridworkflows backend and enable matching regression tests - #614

Open
jonasbardino wants to merge 26 commits into
nextfrom
fix/minor-issues-in-vgridworkflows-backend-and-enable-matching-regression-tests
Open

Fix minor issue in vgridworkflows backend and enable matching regression tests#614
jonasbardino wants to merge 26 commits into
nextfrom
fix/minor-issues-in-vgridworkflows-backend-and-enable-matching-regression-tests

Conversation

@jonasbardino

@jonasbardino jonasbardino commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Fix a minor issue in the vgridworkflows backend identified during #612 development and enable the corresponding regression test prepared there. Namely that it does not check if the feature is actually enabled in configuration.

IMPORTANT: please note that this PR works on top of #612 so it's only really the changes to mig/shared/functionality/vgridworkflows.py and its minor unit test adjustment. It's best to merge #612 first and rebase here for a minimal final merge.

…nd `main`

functions for consistent lazy `environ` and `initialize_main_variables` set up
without clunky `_main` wrappers.
This should make it easier to achieve a standardized runtime environment in all
interfaces, and allow us to considerably simplify the unit tests relying on
more direct access to tweaking the environment and calls.

Extended `environ` passing to `validate_input` for symmetry with
`validate_input_and_cert`. Made argument passing from the latter use explicit
keywords for clarity, too.

Applied various linting suggestions from `ruff`.
Expose `path_info` in `create_http_environ` and rename previously "private"
`_only_output_objects` to "public" `filter_output_objects`.
…s in the

`cat.py` and `datatransfer.py` functionality backends to significantly simplify
the clunky `main` + `_main`  wrapping introduced for their unit tests.
We can proceed with all the other backend functions after adjusting those unit
tests accordingly.
… shared

helpers from wsgisupp. Apply various updates to current unit testing support
helpers.
Tightened a few of the output_object checks to be more thorough about all
entries.
Applied make format and lint with some fixes for consistency.
…d inject

it in `initialize_main_variables` calls there to let individual backends
override options like `op_header` easily. Swapped the order of `environ` and
`init_main_res`, so that `init_kw` sticks with `init_main_res` both in `main`
and `lazy_init_backend`.
Moved the dynamic `op_menu` logic into `initialize_main_variables` so that
backends can just pass 'AUTO' if menu should only be shown if page was accessed
with login (i.e. `client_id` value is set).
…riables

in order to really let unit tests inherit the init_kwargs from main function
e.g. in the docs.py test suite.
Extended docs.py tests to cover more anonymous and authenticated use and in
particular exercise the previsouly mentioned inheritance logic.
NOTE: identified two bugs in the backend while testing. So tests are left
disabled but should be fixed separately with re-enabling the tests.
Most are disabled for now, however, because we hit a similar backend issue as
for vgridworkflows where the title entry lacks the expected style and script
sub-dicts when called from unit tests.
@jonasbardino
jonasbardino force-pushed the fix/minor-issues-in-vgridworkflows-backend-and-enable-matching-regression-tests branch from d324726 to 929c9d4 Compare July 22, 2026 16:46
@jonasbardino jonasbardino changed the title Fix minor issues in vgridworkflows backend and enable matching regression tests Fix minor issue in vgridworkflows backend and enable matching regression tests Jul 22, 2026
@jonasbardino
jonasbardino force-pushed the fix/minor-issues-in-vgridworkflows-backend-and-enable-matching-regression-tests branch from 929c9d4 to 5cb27f4 Compare July 23, 2026 14:23
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.

1 participant