Files
cellxgene-gateway/cellxgene_gateway
Andy 903d25763f Fix AttributeError by storing ItemSource objects in default_item_source
Previously, default_item_source was set to a string ("s3" or "local"),
but matching_source() tried to access default_item_source.name, causing:
  AttributeError: 'str' object has no attribute 'name'

This bug occurred when source_name=None (single data source configuration)
and has existed since the ItemSource interface was introduced in 2021.

Changes:
- Store the actual ItemSource object reference instead of string name
- Assign to intermediate variables (s3_source, file_source) for clarity

Fixes the error when viewing datasets with a single data source configured.
2025-10-29 14:08:56 -04:00
..
2023-08-08 16:04:03 +01:00
2021-04-03 07:12:50 -04:00
2024-03-10 09:33:50 -04:00
2024-03-10 09:33:50 -04:00
2024-03-10 09:33:50 -04:00