-
Notifications
You must be signed in to change notification settings - Fork 399
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
[ENHANCEMENT] argilla server
: Return users on dataset progress
#5701
Conversation
… when creating responses
…argilla-io/argilla into feat/argilla-server/track-dataset-users
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5701 +/- ##
===========================================
+ Coverage 91.79% 91.95% +0.16%
===========================================
Files 161 161
Lines 6738 6750 +12
===========================================
+ Hits 6185 6207 +22
+ Misses 553 543 -10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
argilla server
: Return users on dataset progressargilla server
: Return users on dataset progress
argilla-server/src/argilla_server/alembic/versions/580a6553186f_add_datasets_users_table.py
Show resolved
Hide resolved
argilla-server/src/argilla_server/alembic/versions/580a6553186f_add_datasets_users_table.py
Show resolved
Hide resolved
argilla-server/src/argilla_server/alembic/versions/580a6553186f_add_datasets_users_table.py
Outdated
Show resolved
Hide resolved
argilla-server/src/argilla_server/alembic/versions/580a6553186f_add_datasets_users_table.py
Outdated
Show resolved
Hide resolved
argilla-server/src/argilla_server/alembic/versions/580a6553186f_add_datasets_users_table.py
Show resolved
Hide resolved
argilla-server/src/argilla_server/alembic/versions/580a6553186f_add_datasets_users_table.py
Outdated
Show resolved
Hide resolved
argilla-server/src/argilla_server/alembic/versions/580a6553186f_add_datasets_users_table.py
Outdated
Show resolved
Hide resolved
) -> Sequence[User]: | ||
query = select(DatasetUser).filter_by(dataset_id=dataset.id).options(selectinload(DatasetUser.user)) | ||
|
||
result = await db.scalars(query.order_by(DatasetUser.inserted_at.asc())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can move the order_by
to the query.
Co-authored-by: José Francisco Calvo <[email protected]>
# Description <!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. --> This PR adds support to return a list of usernames in the dataset progress endpoint. **Type of change** <!-- Please delete options that are not relevant. Remember to title the PR according to the type of change --> - Refactor (change restructuring the codebase without changing functionality) - Improvement (change adding some improvement to an existing functionality) **How Has This Been Tested** <!-- Please add some reference about how your feature has been tested. --> **Checklist** <!-- Please go over the list and make sure you've taken everything into account --> - I added relevant documentation - I followed the style guidelines of this project - I did a self-review of my code - I made corresponding changes to the documentation - I confirm My changes generate no new warnings - I have added tests that prove my fix is effective or that my feature works - I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/) --------- Co-authored-by: José Francisco Calvo <[email protected]>
Description
This PR adds support to return a list of usernames in the dataset progress endpoint.
Type of change
How Has This Been Tested
Checklist