Skip to content

Migrate obfs datatype from basic to auto_primary_file composite type - #23366

Merged
mvdbeek merged 2 commits into
galaxyproject:devfrom
bgruening:obfs-auto-primary-file
Sep 1, 2026
Merged

Migrate obfs datatype from basic to auto_primary_file composite type#23366
mvdbeek merged 2 commits into
galaxyproject:devfrom
bgruening:obfs-auto-primary-file

Conversation

@bgruening

@bgruening bgruening commented Aug 25, 2026

Copy link
Copy Markdown
Member

Migrates the obfs (OpenBabel Fastsearch) datatype from composite_type='basic' to composite_type='auto_primary_file'.

The basic composite datatype can not be tested I think. And this is ok, for this niche use-case.

The OpenBabel Fastsearch (obfs) datatype was registered with
composite_type='basic', but the upload pipeline (galaxy/tools/data_fetch.py)
only supports 'auto_primary_file' composites -- 'basic' composites trigger
an unimplemented assertion ('basic composite uploads not yet implemented').

This blocked the obfs datatype from being assembled as a tool input in the
test framework, forcing downstream tools that consume obfs (openbabel
subsearch, simsearch) to use expect_failure tests that never actually
exercise the tool.

The obfs primary file is a 0-byte placeholder; the real data lives entirely
in the composite extra files (molecule.fs and the molecule source file),
which is exactly the auto_primary_file pattern. Switch the composite type
and add generate_primary_file/regenerate_primary_file to produce an HTML
index page, following the established pattern (e.g. spaln, gis, neo4j).
@bgruening
bgruening force-pushed the obfs-auto-primary-file branch from 2f7db69 to 61d305d Compare August 25, 2026 19:43
Convert the .format() call to an f-string. Only lint change; ruff check .,
flake8, isort and black are all clean afterward.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G95icoGkoDKbwPotGnvQpk
@mvdbeek
mvdbeek merged commit cc3dd28 into galaxyproject:dev Sep 1, 2026
54 of 56 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in Galaxy Dev - weeklies Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

This PR was merged without a "kind/" label, please correct.

@nsoranzo
nsoranzo deleted the obfs-auto-primary-file branch September 1, 2026 13:01
@nsoranzo nsoranzo added the kind/refactoring cleanup or refactoring of existing code, no functional changes label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/datatypes area/testing kind/refactoring cleanup or refactoring of existing code, no functional changes

Projects

Development

Successfully merging this pull request may close these issues.

4 participants