Skip to content

Commit

Permalink
chore: Remove fflag_fix_back_leap_24_tasks_api_optimization_05092023_…
Browse files Browse the repository at this point in the history
…short (#7118)

Co-authored-by: triklozoid <[email protected]>
  • Loading branch information
triklozoid and triklozoid authored Feb 25, 2025
1 parent 7b9b35c commit 00f7cc3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion label_studio/core/feature_flags/stale_feature_flags.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
STALE_FEATURE_FLAGS = {
'fflag_feat_all_dia_13_structured_data_support_short': False,
'fflag_feat_front_optic_66_lazy_chart_evaluation_19092023_short': False,
'fflag_fix_back_leap_24_tasks_api_optimization_05092023_short': False,
'fflag_feat_optic_2_ensure_draft_saved_short': True,
'fflag_feat_front_lsdv_4620_outliner_optimization_310723_short': True,
'fflag_fix_front_lsdv_4600_lead_time_27072023_short': False,
Expand Down
12 changes: 1 addition & 11 deletions label_studio/data_manager/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,6 @@ def paginate_totals_queryset(self, queryset, request, view=None):
def paginate_queryset(self, queryset, request, view=None):
if flag_set('fflag_fix_back_optic_1407_optimize_tasks_api_pagination_counts'):
return self.paginate_totals_queryset(queryset, request, view)
if flag_set('fflag_fix_back_leap_24_tasks_api_optimization_05092023_short'):
return self.async_paginate_queryset(queryset, request, view)
return self.sync_paginate_queryset(queryset, request, view)

def get_paginated_response(self, data):
Expand Down Expand Up @@ -350,15 +348,7 @@ def get(self, request):
evaluate_predictions(tasks_for_predictions)
[tasks_by_ids[_id].refresh_from_db() for _id in ids]

if flag_set('fflag_fix_back_leap_24_tasks_api_optimization_05092023_short'):
serializer = self.task_serializer_class(
page,
many=True,
context=context,
include=get_fields_for_evaluation(prepare_params, request.user, skip_regular=False),
)
else:
serializer = self.task_serializer_class(page, many=True, context=context)
serializer = self.task_serializer_class(page, many=True, context=context)
return self.get_paginated_response(serializer.data)
# all tasks
if project.evaluate_predictions_automatically:
Expand Down

0 comments on commit 00f7cc3

Please sign in to comment.