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

fix: FeedbackDataset fields with required=False failing on push_to_huggingface #4006

Merged
merged 3 commits into from
Oct 20, 2023

Conversation

alvarobartt
Copy link
Member

Description

This PR addresses an issue reported by @dvsrepo, that was preventing from uploading a FeedbackDataset to the Hugging Face Hub via push_to_huggingface when there were any optional fields not provided.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

  • Add unit tests for FeedbackDataset with optional i.e. required=False fields

Checklist

  • I followed the style guidelines of this project
  • I did a self-review of my code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I filled out the contributor form (see text above)
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
...lient/feedback/integrations/huggingface/dataset.py 90.39% <100.00%> (ø)

📢 Thoughts on this report? Let us know!.

@github-actions
Copy link

The URL of the deployed environment for this PR is https://argilla-quickstart-pr-4006-ki24f765kq-no.a.run.app

@frascuchon frascuchon merged commit da3e1fb into develop Oct 20, 2023
16 checks passed
@frascuchon frascuchon deleted the fix/optional-fields-in-huggingface-hub branch October 20, 2023 14:49
damianpumar pushed a commit that referenced this pull request Oct 24, 2023
…to_huggingface` (#4006)

# Description

This PR addresses an issue reported by @dvsrepo, that was preventing
from uploading a `FeedbackDataset` to the Hugging Face Hub via
`push_to_huggingface` when there were any optional fields not provided.

**Type of change**

- [x] Bug fix (non-breaking change which fixes an issue)

**How Has This Been Tested**

- [x] Add unit tests for `FeedbackDataset` with optional i.e.
`required=False` fields

**Checklist**

- [x] I followed the style guidelines of this project
- [x] I did a self-review of my code
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK)
(see text above)
- [ ] I have added relevant notes to the `CHANGELOG.md` file (See
https://keepachangelog.com/)

---------

Co-authored-by: Francisco Aranda <[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