Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: return num_passages in Source.metadata_ from REST list sources endpoint #1178

Merged
merged 16 commits into from
Mar 21, 2024

Conversation

sarahwooders
Copy link
Collaborator

Please describe the purpose of this pull request.
Previously the num_passages field was returning 0, this replaces it with an actual lookup in the passage database.

How to test
New tests checking for metadata fields in test_client.py

Have you tested this PR?
Yes

@sarahwooders sarahwooders requested a review from cpacker March 21, 2024 21:19
Copy link
Collaborator

@cpacker cpacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpacker cpacker merged commit 464bda4 into main Mar 21, 2024
4 checks passed
@cpacker cpacker deleted the source_metadata_response branch March 21, 2024 22:41
mattzh72 pushed a commit that referenced this pull request Oct 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants