Skip to content

fix: point table validation to public sanitizer#1

Draft
stanbot8 wants to merge 1 commit into
mainfrom
fix/1154-sanitize-table-path
Draft

fix: point table validation to public sanitizer#1
stanbot8 wants to merge 1 commit into
mainfrom
fix/1154-sanitize-table-path

Conversation

@stanbot8

@stanbot8 stanbot8 commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Preview. Text in square brackets becomes links in the submission.

Summary

The table-name validation error in issue [issue 1154] points to spatialdata.utils.sanitize_table(adata). This path does not exist. The error now points to spatialdata.sanitize_table(adata). Closes issue 1154.

Design

Use the top-level function that spatialdata exports. Keep validation and sanitization behavior unchanged.

The implementation changes [src/spatialdata/_core/validation.py].

Limitations

This change does not add a compatibility alias for the invalid spatialdata.utils path.

Tests

The regression test fails on main and passes on this branch. The full suite passes with 1,365 tests, 7 skips, and 1 expected failure. The installed wheel passes the reported sanitize-and-validate workflow.

The tests are in [tests/models/test_models.py].

All 7 [CPU matrix jobs] passed.

Commands
uv run pytest tests/models/test_models.py::TestModels::test_table_model_invalid_name_suggests_public_sanitizer -q

@stanbot8
stanbot8 force-pushed the fix/1154-sanitize-table-path branch from 35c771b to 63a5780 Compare July 24, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant