Skip to content

[26.0] Fix sample sheet upload without sample-sheet-specific columns #22488

Open
mvdbeek wants to merge 1 commit intogalaxyproject:release_26.0from
mvdbeek:fix-materialization-extended-metadata-non-celery
Open

[26.0] Fix sample sheet upload without sample-sheet-specific columns #22488
mvdbeek wants to merge 1 commit intogalaxyproject:release_26.0from
mvdbeek:fix-materialization-extended-metadata-non-celery

Conversation

@mvdbeek
Copy link
Copy Markdown
Member

@mvdbeek mvdbeek commented Apr 15, 2026

When a collection typed as sample_sheet was populated without any column definitions (or with an empty list), validate_row raised RequestParameterInvalidException: Sample sheet row is missing because the early-return only triggered on column_definitions is None and generate_elements unconditionally required a rows dict.

Treat missing/empty column_definitions as list-like: skip row validation and synthesize per-identifier None rows.

Refs #22487

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

When a collection typed as `sample_sheet` was populated without any
column definitions (or with an empty list), `validate_row` raised
`RequestParameterInvalidException: Sample sheet row is missing` because
the early-return only triggered on `column_definitions is None` and
`generate_elements` unconditionally required a rows dict.

Treat missing/empty column_definitions as list-like: skip row
validation and synthesize per-identifier `None` rows.

Refs galaxyproject#22487
@mvdbeek mvdbeek changed the title [26.0] Fix materialization extended metadata non celery [26.0] Fix sample sheet upload without sample-sheet-specific columns Apr 15, 2026
@github-actions github-actions bot added area/testing area/database Galaxy's database or data access layer labels Apr 15, 2026
@github-actions github-actions bot added this to the 26.1 milestone Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/database Galaxy's database or data access layer area/testing

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

2 participants