Skip to content

Enforce integer step counts for ancestor enrichment#48

Merged
ubyndr merged 1 commit into
mainfrom
fix-ancestor-step-type
Nov 28, 2025
Merged

Enforce integer step counts for ancestor enrichment#48
ubyndr merged 1 commit into
mainfrom
fix-ancestor-step-type

Conversation

@ubyndr

@ubyndr ubyndr commented Nov 28, 2025

Copy link
Copy Markdown
Collaborator
  • Updated Query.ancestor_enrichment and get_ancestor_enrichment_query so step_count must be an integer ≥ 1. Passing strings or non-positive values now raises a helpful error instead of silently misbehaving.
  • Added targeted tests in test/test_query.py and test/utils/test_sparql_queries.py to verify the new validation paths and keep the behavior pinned down.

This ensures the ancestor enrichment queries only run with valid hop counts and prevents subtle bugs caused by string inputs.

@ubyndr ubyndr merged commit 8b86082 into main Nov 28, 2025
2 checks passed
@ubyndr ubyndr deleted the fix-ancestor-step-type branch November 28, 2025 12:08
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