985 Commits
Author SHA1 Message Date
mvdbeek ba902825b9 Merge branch 'release_26.2' into dev 2026-11-28 06:18:44 +01:00
mvdbeek abefe9d2f8 Merge branch 'release_26.1' into release_26.2 2026-11-28 06:17:21 +01:00
Marius van den Beek 51113d5e58 Merge pull request #25111 from mvdbeek/fix-tabular-column-names-header
[26.1] Label tabular columns with a column index row
2026-11-27 10:35:05 +01:00
mvdbeek eef3cc4f25 Merge branch 'release_26.2' into dev 2026-11-27 06:39:22 +01:00
mvdbeek e45af6e254 Merge branch 'release_26.1' into release_26.2 2026-11-27 06:23:10 +01:00
mvdbeek e3c8844874 Merge branch 'release_26.0' into release_26.1 2026-11-27 06:07:52 +01:00
mvdbeek 4e1a63e3a2 Style only column index cells as the column index
The peek rule matched every th, so header cells that hold file content (RexpBase's first line, QIIME2's labels) became grey and unselectable. column_index_header_cell() now marks its cells with the column-index-header class, as the preview's header cells already are, and the rule targets that class.
2026-11-26 17:54:18 +01:00
mvdbeek 8c7c132fcc Name Pileup preview columns like its peek
Pileup passed its column labels only to its peek, so the preview showed the raw metadata names (chromCol, startCol, baseCol). The labels are now the class's column_parameter_alias, which both the peek and the preview read.
2026-11-26 17:42:13 +01:00
mvdbeek c65a825a03 Name preview columns with the same names as the peek
The dataset preview took its column names only from the dataset's
column_names metadata, so BED, GFF/GTF and other datatypes that define
their column names on the datatype showed only numbers in the preview
while the peek showed names.

TabularData.column_headers() now computes the names once: explicit
names, else the column_names metadata, else the datatype's own
column_names, then column parameter metadata (chromCol, ...) for the
columns still unnamed. The peek header and every preview chunk use it,
and the preview reads the names from the chunk. Interval's column
parameter aliases become a class attribute so both paths see them.

The preview tests now mount the table and check the rendered column
index instead of the fields passed to the table.
2026-11-26 11:50:09 +01:00
mvdbeekandClaude Opus 5.5 f6ac9e3c4d Label tabular columns with a column index row
#22947 removed the generated header from generic tabular peeks and
previews, so that a file's own first line would not look like data
under a header. That also removed the column names that tools such as
DESeq2 set through metadata, and the column numbers users rely on to
fill in column parameters (#25084).

Give every tabular datatype the same header, in both the history peek
and the dataset preview: a column index row styled as interface chrome
rather than as a line of the file. Each cell shows the column number,
left-aligned like a spreadsheet column letter, and the column name from
metadata, centred, when there is one. Thin lines mark where columns
start. The row has a tooltip saying it is Galaxy metadata and not part
of the file, and it cannot be selected, so copying the table copies
exactly the file's lines. Every row below it is the file, line for
line, including a CSV/TSV header line.

The peek cells are built by one helper, column_index_header_cell(),
which the datatypes with their own peek tables (Eland, GenomeGraphs,
SffFlow) now use as well.

Fixes #25084

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:32:46 +01:00
Marius van den Beek ef0e68582f Merge pull request #24453 from jmchilton/issue_24220_drop_collection_matching_26.0
[26.0] Match dropped collections to tool form collection inputs like the server
2026-11-25 19:02:04 +01:00
Marius van den Beek b6bbcf1261 Merge pull request #25094 from mvdbeek/merge-release_26.2-into-dev-2026-11-24
Merge release_26.2 into dev
2026-11-25 08:48:12 +01:00
Marius van den Beek 3a7d127de0 Merge pull request #24967 from adamjohnwright/fasta-sniff-semicolon-comments
Add pearson_fasta datatype for FASTA with a leading `;` comment block
2026-11-24 20:44:12 +01:00
mvdbeek fc319f746b Merge branch 'release_26.2' into dev 2026-11-24 19:20:22 +01:00
mvdbeek 99bff60688 Merge branch 'release_26.1' into release_26.2 2026-11-24 19:15:42 +01:00
Marius van den Beek ce43fda3d5 Merge pull request #25067 from jmchilton/issue_25004_mapped_job_outputs_26_1
[26.1] Fix Dataset Details showing the parent collection as a mapped job's output
2026-11-24 16:24:23 +01:00
John Chilton 30d71956c2 Merge branch 'dev' into storage-usage-live-updates
# Conflicts:
#	lib/galaxy/app/__init__.py
#	lib/galaxy/queue_worker/__init__.py
2026-11-23 15:52:33 -05:00
0394b695a4 Fix converter lint and type checking for pearson_fasta
Point the converter lint at the checkout's datatypes_conf.xml.sample via
DATATYPES_CONF, so it knows datatypes added in the same change instead of
only those in planemo's installed galaxy-tool-util release.

Call the declared sniff_prefix(FilePrefix(...)) in the unit test, as the
parquet and mzspeclib tests do; mypy cannot see the decorator-added sniff.

Co-authored-by: David Molik <9337053+molikd@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-23 09:43:55 -05:00
Adam WrightandClaude Opus 5.5 786ec67f7b Add pearson_fasta datatype for FASTA with a leading ';' comment block
Lines starting with ';' were comments in the FASTA format of Pearson &
Lipman (1988, https://doi.org/10.1073/pnas.85.8.2444), and FAIR-bioHeaders
files write their metadata as such a block. htslib and Biopython's
"fasta" parser reject these lines, so instead of widening the fasta
datatype this adds a separate pearson_fasta datatype that subclasses
Sequence, not Fasta, and so is not offered for fasta inputs directly.

Its sniffer requires a ';' block (';' and empty lines, starting in the
first column) followed by a '>' header; from the header on it applies
the fasta sniffer's checks. It also rejects files whose first sequence
line is numeric (qual454, qualsolid) or color-space (csfasta), so those
stay unrecognised as without the comment block. It runs just before
Fasta in the sample sniff order. Files without a leading ';' line are
not affected.

set_meta counts sequences and data lines from the first header on, so
the values match those of the converted fasta.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-23 09:43:55 -05:00
Marius van den Beek ef810b1dc1 Merge pull request #25058 from mvdbeek/merge-release_26.1-into-release_26.2-2026-11-23
[26.2] Merge release_26.1 into release_26.2
2026-11-23 15:22:59 +01:00
Marius van den Beek f61b3ceeab Merge pull request #24840 from bernt-matthias/mothur-datatypes-empty-dataset
[26.2] mothur datatypes hardening for empty datasets
2026-11-23 12:36:54 +01:00
mvdbeek c8026e63ea Merge branch 'release_26.2' into dev 2026-11-23 11:14:37 +01:00
mvdbeek 7901b1f7b1 Merge branch 'release_26.1' into release_26.2 2026-11-23 10:55:14 +01:00
mvdbeek b122586877 Merge branch 'release_26.0' into release_26.1 2026-11-23 10:37:46 +01:00
mvdbeek 6259954066 Merge branch 'release_25.1' into release_26.0 2026-11-23 10:26:14 +01:00
mvdbeek 902257f319 Merge branch 'release_26.2' into merge-release_26.2-into-dev-2026-11-22-2 2026-11-23 09:02:12 +01:00
Marius van den Beek 71ad3ef725 Merge pull request #25009 from davelopez/fix_extended_metadata_copied_hdas
[25.1] Keep changes made to outputs while an extended metadata job runs
2026-11-23 08:19:58 +01:00
Marius van den Beek 3fa4acca26 Merge pull request #25049 from jmchilton/issue_25040_collection_paths_rewrite_26_2
[26.2] Fix collection and metadata file paths for Pulsar `rewrite_parameters` jobs
2026-11-23 07:44:32 +01:00
John Chilton 91d60392f8 Merge pull request #24983 from mvdbeek/session-cleanup-followups
[26.2] Fix session cleanup follow-ups: range-bounded pages, PG < 12, docs, entry points
2026-11-22 15:07:42 -05:00
John ChiltonandClaude Opus 5.5 b72810c202 Restore implicit collections' job links on history import
History export didn't record which ImplicitCollectionJobs populate an
implicit HDCA, so an imported map-over collection lost that link while
its jobs kept theirs. Export the HDCA's implicit_collection_jobs
identifier and relink it once the jobs are imported. Without this, the
Job Outputs table of an imported mapped job still listed the whole
map-over collection (#25004).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:57:53 +00:00
John ChiltonandClaude Opus 5.5 6b8107e35f Build collection path accessors from the element wrappers
DatasetCollectionWrapper.all_paths, all_metadata_files,
element_identifiers_extensions_paths_and_metadata_files,
get_all_staging_paths and serialize() read their rows from a model query,
DatasetCollection.element_identifiers_extensions_paths_and_metadata_files,
next to the per-element wrappers the collection wrapper already holds.
Build the rows from those wrappers instead, flattening nested collections
from the element list so repeated identifiers are all kept as the query
did. Paths are still where Galaxy stores each dataset.

The rows are cached, as the model-backed row list was, and each dataset
wrapper caches its metadata files, so repeated accessors neither re-walk
the collection nor reload metadata files. all_paths and
get_all_staging_paths no longer load metadata files at all.

Drop the now unused model property and its mapping test assertion. No
change to what the accessors return.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:31:03 +00:00
John ChiltonandClaude Opus 5.5 40bf7e3555 mothur: call sniff_prefix in tests so mypy sees it
sniff is attached at runtime by build_sniff_from_prefix; mypy flagged attr-defined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:05:45 -05:00
mvdbeek 3863254ae3 Merge branch 'release_26.2' into dev
# Conflicts:
#	client/src/components/Form/Elements/FormDirectory.test.js
#	client/src/components/SelectionDialog/SelectionDialog.vue
2026-11-21 17:23:39 +01:00
John Chilton 3cdb655b7a Keep user-defined tools' new datasets in the job's object stores
A user-defined tool job's model store could put a new dataset in any
backend of the instance; only user object stores were limited to the
ones the job uses. New datasets now must use an object store of the
job or its outputs.

With split workflow object stores and no preferred outputs store, the
job recorded None for its workflow outputs, so datasets discovered for
them went to whichever store the metadata step picked. The job now
records the store its precreated outputs settled on.
2026-11-21 12:26:26 +01:00
John ChiltonandClaude Opus 5.5 d466f7e5dd Refuse uuid changes to existing outputs of user-defined tools
With object_store_store_by = uuid a dataset's uuid picks its file, the same
as its object store, so a user-defined tool's model store may no longer
change it for an existing output. The integration test now also runs the
user-defined tool untampered to show its own outputs still import.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 12:26:26 +01:00
mvdbeek 5736a2b278 Restrict a job's extended metadata import to the job's own outputs
With extended metadata, a job writes metadata/outputs_populated and
Galaxy imports it with allow_edit. The import looked up every object the
store named by database id without checking that it belongs to the job,
so whoever can write that directory (the job, a compromised Pulsar node,
or a container escape) could rename, re-type or purge any dataset,
replace any collection's elements, add datasets to any library folder
and report a state for any job.

The import now takes the objects it may edit from the job in the
database: the job, its output datasets, collections and their elements,
the datasets behind them, and library folders the job's user can add
to. Any other id is refused, as is a metadata file uuid that belongs to
other datasets, which would make them share a file.

User-defined tool jobs also may not link an output to a server file
(external_filename), move an existing output to another object store,
or put a new dataset in a user object store their outputs don't use.
Data fetch jobs need external_filename for linked uploads, so the rule
applies only to user-defined tools for now.
2026-11-21 12:26:25 +01:00
mvdbeek fe45503d8a Merge branch 'release_26.2' into dev 2026-11-21 06:49:48 +01:00
mvdbeek 2a8f690fb5 Merge branch 'release_26.1' into release_26.2 2026-11-21 06:33:57 +01:00
mvdbeek 169b994597 Merge branch 'release_26.0' into release_26.1 2026-11-21 06:13:34 +01:00
mvdbeek 09a2939504 Merge branch 'release_25.1' into release_26.0 2026-11-21 06:06:42 +01:00
davelopez 3edef34eaf Keep output names and info edited while an extended metadata job ran
The job-side copy of each output is exported with the name and info it had
at job setup, and the importer wrote them back when the job finished, so a
rename made while the job was queued or running was reverted.

Compare the job's values with the ones exported at job setup and keep the
server's value unless the job changed it. Lines the job appended to info
(stdout) are appended to the edited info, as with the directory strategy.

https://github.com/galaxyproject/galaxy/issues/25000
2026-11-20 14:05:48 +01:00
davelopez 1ff3874fe9 Keep output visibility set while an extended metadata job ran
The job-side copy of each output is exported with the visibility it had at
job setup, and the importer wrote it back when the job finished. This
unhid outputs hidden while the job ran, e.g. the originals of a collection
built with "hide original elements".

Only apply the job's visibility to unhide outputs that failed, which is
the only change the job side makes to it.

https://github.com/galaxyproject/galaxy/issues/25000
2026-11-20 13:06:43 +01:00
davelopez 1827c9eaff Keep datatype metadata on copies of outputs with auto extension
When an extended metadata job finishes, its metadata is copied to every
HDA sharing the output's dataset. copy_dataset_instance_metadata_attributes
set the metadata before the extension, but the metadata setter only keeps
keys known to the target's current datatype. A copy made while the job ran
(e.g. a collection element built from a running upload) still had the
"auto" extension, so data_lines, columns, column_types and the rest were
dropped and the copy ended up as an empty tabular dataset.

Also group the condition selecting the HDAs to copy to, so the output HDA
itself is never selected.

https://github.com/galaxyproject/galaxy/issues/25000
2026-11-20 13:06:35 +01:00
mvdbeek 45229f9d15 Check the installed galaxy-delete-sessions runs the code under test
The cli fixture prefers a galaxy-delete-sessions next to sys.executable,
which is how the package tests exercise the console script. In a venv
with a galaxy-data from another version, it would silently test that
installed code instead. Assert that the module the command's interpreter
imports has the same content as the one pytest imported. Compare
content, not paths: the package tests import from packages/data/src but
run a non-editable install whose copy lives in site-packages.
2026-11-20 11:47:22 +01:00
mvdbeek d3a0315ae9 Sniff BigTIFF files as tiff
The header check added for DICOM support in #21385 only accepts the
classic TIFF magic numbers, so BigTIFF files (II+\0 / MM\0+) are sniffed
as binary since 26.0. The previous tifffile-based sniffer accepted them.
2026-11-20 09:55:08 +01:00
mvdbeek a70deb872f Test that an interrupted cleanup page rolls back on SQLite
sqlite3's legacy transaction control does not BEGIN before WITH-prefixed
DML, so _transaction issues BEGIN itself. Nothing tested that since the
per-page rollback test was dropped: replacing the BEGIN with pass kept
the module green. Without it, a SIGTERM between a page's DELETE and its
commit leaves the page deleted although the reported after_id says it
must be scanned again. The new test interrupts the second page after
its DELETE and fails if the BEGIN is removed.
2026-11-19 15:40:48 +01:00
mvdbeek 59505b803e Point galaxy-prune-histories and galaxy-delete-job-metrics at main()
Both entries named a module as the attribute of galaxy.model.scripts,
so installing galaxy-data produced commands that failed with
AttributeError before parsing any arguments. galaxy-delete-sessions had
the same bug until #24750. Each module already has a main() that parses
argv, so target that, and test that every galaxy-data console script
loads to a callable.
2026-11-19 15:40:47 +01:00
mvdbeek bd88bb8565 Only emit AS MATERIALIZED where the database accepts it
PostgreSQL only accepts the MATERIALIZED keyword from 12 on, so on 9.6
to 11, which db_indexes.yaml still checks the schema against, every
page failed with a syntax error. Those versions always materialize
CTEs, so dropping the keyword there keeps the one-lookup-per-user plan.
SQLite 3.35+, which RETURNING already requires, keeps the hint. The
PostgreSQL 12 floor in the docs no longer applies.
2026-11-19 15:40:47 +01:00
mvdbeek a3565f7c74 Bound session cleanup pages by ID range instead of IN lists
The newest-session CTE and the outer predicate each bound the scanned
page IDs as an expanded IN list, so every statement carried twice the
batch size in bind parameters. Stock SQLite caps a statement at 32766,
so --batch-size above 16383 failed with 'too many SQL variables', and
PostgreSQL had to parse and plan the same large lists on every page.

Select each page as the ID range (after_id, last scanned ID] instead.
The DELETE still re-evaluates the full predicate. Rows committed inside
the range after the scan are now judged by that predicate too, instead
of being skipped until the next full run.

The new test caps SQLite at its stock 32766 variables, because builds
such as Debian's raise the limit and would hide the failure.
2026-11-19 15:40:47 +01:00
mvdbeekandClaude Opus 5.5 7f1209b88f Encode database ids in stored fetch requests and tool landings
The __DATA_FETCH__ request_json job parameter holds decoded ids: the
library folder of a library_folder destination and the precreated HDAs
and HDCAs (object_id). Job show and search, parameters_display and
model store exports returned them as they are, so anyone who could view
the job or dataset saw raw database ids. Encode them on the way out
(with the export identifier for model stores; extended metadata exports
keep them decoded).

Tool landings store their request state with decoded dataset ids and
returned it as is, to anonymous callers too. Encode it with
landing_encode, which also needed the None guard landing_decode has for
unset optional data inputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 10:57:41 +01:00