Skip to content

Commit 36e72e5

Browse files
hakan458hakan458
andauthored
fix: UTC-231: Fix prediction validation FF usage (#8183)
Co-authored-by: hakan458 <[email protected]>
1 parent 8cafd56 commit 36e72e5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

label_studio/data_import/functions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ def async_import_background(
5454
tasks = reformat_predictions(tasks, project_import.preannotated_from_fields, project, raise_errors)
5555

5656
# Always validate predictions regardless of commit_to_project setting
57-
if project.label_config_is_not_default:
57+
if project.label_config_is_not_default and flag_set(
58+
'fflag_feat_utc_210_prediction_validation_15082025', user=project.organization.created_by
59+
):
5860
validation_errors = []
5961
li = LabelInterface(project.label_config)
6062

label_studio/tasks/serializers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,9 @@ def add_predictions(self, task_predictions):
456456
db_predictions = []
457457
validation_errors = []
458458

459-
should_validate = self.project.label_config_is_not_default
459+
should_validate = self.project.label_config_is_not_default and flag_set(
460+
'fflag_feat_utc_210_prediction_validation_15082025', user='auto'
461+
)
460462

461463
# add predictions
462464
last_model_version = None

0 commit comments

Comments
 (0)