project.get_labeled_tasks API returns BROKEN json #5286
Labels
community:bug
Triaged by the community team + confirmed to be bug.
community:issue
A community reported issue
community:reviewed
Issue has been reviewed by the Label Studio Community Team.
Describe the bug
NB: This could be a "feature" and not a "bug" since how obviously it is "broken". Perhaps I'm mis-using API and have wrong expectations of it.
This commit line deliberately breaks parsable json:
c65330c0#diff-7ce60240b37e69943356ab25fe22bef989b3eed3066f58372bdfd8edb029b6dbR222
To Reproduce
Expected behavior
json is parsed
Additional context
I understand the motivation of that PR, which was to "speed up" slow execution. Changes like "json -> ujson" were introduced. But at the same time, modifying "annotations_results" field this way makes it practically unusable. Perhaps the intention that this API would be used in UI, and NOT for accessing "annotations_results" programmatically. If that's the case - then perhaps there should be alternative way to retrieve FULL results, perhaps with pagination.
The text was updated successfully, but these errors were encountered: