argilla-io / argilla

Argilla is a collaboration tool for AI engineers and domain experts to build high-quality datasets
https://docs.argilla.io
Apache License 2.0
4k stars 378 forks source link

[BUGFIX] `argilla server`: Prevent passing non-string values to text fields #5682

Closed frascuchon closed 2 days ago

frascuchon commented 1 week ago

Description

This PR prevents creating records with non-string values for text fields. Currently, users can create records with dictionary values as values for text fields.

Type of change

How Has This Been Tested

Checklist

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.56%. Comparing base (f47f20d) to head (19ff998). Report is 1 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #5682 +/- ## =========================================== + Coverage 91.55% 91.56% +0.01% =========================================== Files 165 165 Lines 6675 6686 +11 =========================================== + Hits 6111 6122 +11 Misses 564 564 ``` | [Flag](https://app.codecov.io/gh/argilla-io/argilla/pull/5682/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=argilla-io) | Coverage Δ | | |---|---|---| | [argilla-server](https://app.codecov.io/gh/argilla-io/argilla/pull/5682/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=argilla-io) | `91.56% <100.00%> (+0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=argilla-io#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: