Closed jombooth closed 9 months ago
All modified and coverable lines are covered by tests :white_check_mark:
:exclamation: No coverage uploaded for pull request base (
master@8a93eb6
). Click here to learn what that means.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The black
lint job fails for files that weren't changed in this PR. To avoid a mess of changes, I'm not planning to run black
on the LSC code; we can do that in a followup if desired.
Repeater annotations previously didn't work with the JSON-MIN export because the annotations have from_names like
my_tag_0
,my_tag_1
due to the use of index variables in from names in repeater configs, eg:And before this PR, if annotation results' from names didn't exactly match the output tags from the labeling config (which would in this case be
labels_{{idx}}
andcategories_{{idx}}
), we'd skip those results. The labeling configs LSC receives from the Label Studio frontend contain information about variables like{{idx}}
though, in their'regex'
key (seelabel_config_repeater.json
); this PR enables LSC to recognizefrom_name
s in annotation results that match these regexes.All LSC tests have been restored+refactored to run with
pytest
and test coverage has been added for the JSON_MIN export.