Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@wssheldon
Copy link
Contributor

@wssheldon wssheldon commented May 21, 2025

Tests

python -c "from sqlalchemy.orm import Session; from dispatch.database.core import engine; from dispatch.database.service import get_query_models; from dispatch.case.models import Case; from dispatch.tag.models import Tag; session = Session(engine); query = session.query(Case).join(Case.t
ags); models = get_query_models(query); print(f'Models found in joined query: {list(models.keys())}')"
Models found in joined query: ['Case', 'Tag']
python -c "from sqlalchemy.orm import Session; from dispatch.database.core import engine; from dispatch.search.fulltext import search; from dispatch.case.models import Case; from dispatch.tag.models import Tag; session = Session(engine); query = session.query(Case).join(Case.tags); resul
t = search(query, 'test'); print('End-to-end search executed successfully')"
End-to-end search executed successfully

I also tested case name search functionality via the FTS search bar and got the expected results without error.

@wssheldon wssheldon self-assigned this May 21, 2025
@wssheldon wssheldon added the bug Something isn't working label May 21, 2025
@wssheldon wssheldon merged commit 477a486 into main May 21, 2025
10 checks passed
@wssheldon wssheldon deleted the fix/entities-sqlalchemy branch May 21, 2025 18:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants