Skip to content
New issue

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

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

Already on GitHub? Sign in 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

Copy link
Owner

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants