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

[ENHANCEMENT] argilla server: Return users on dataset progress #5701

Merged
merged 16 commits into from
Nov 21, 2024

Conversation

frascuchon
Copy link
Member

Description

This PR adds support to return a list of usernames in the dataset progress endpoint.

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

Checklist

  • 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/)

@frascuchon frascuchon requested a review from jfcalvo November 20, 2024 16:35
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.95%. Comparing base (ab6b2f0) to head (9ff6e46).
Report is 1 commits behind head on develop.

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     
Flag Coverage Δ
argilla-server 91.95% <100.00%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@frascuchon frascuchon changed the title [DRAFT][ENHANCEMENT] argilla server: Return users on dataset progress [ENHANCEMENT] argilla server: Return users on dataset progress Nov 21, 2024
) -> 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()))
Copy link
Member

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.

argilla-server/src/argilla_server/database.py Outdated Show resolved Hide resolved
@frascuchon frascuchon requested a review from jfcalvo November 21, 2024 14:24
@frascuchon frascuchon merged commit 6129ce8 into develop Nov 21, 2024
6 checks passed
@frascuchon frascuchon deleted the feat/argilla-server/track-dataset-users branch November 21, 2024 15:38
frascuchon added a commit that referenced this pull request Nov 27, 2024
# 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]>
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.

2 participants