chore: rename apply_post_process (#31511)

This commit is contained in:
Beto Dealmeida
2024-12-19 10:13:28 -05:00
committed by GitHub
parent 531f1b6aa4
commit 7458c4bbd5
4 changed files with 46 additions and 46 deletions

View File

@@ -28,8 +28,8 @@ from marshmallow import ValidationError
from superset import is_feature_enabled, security_manager
from superset.async_events.async_query_manager import AsyncQueryTokenException
from superset.charts.api import ChartRestApi
from superset.charts.client_processing import apply_client_processing
from superset.charts.data.query_context_cache_loader import QueryContextCacheLoader
from superset.charts.post_processing import apply_post_process
from superset.charts.schemas import ChartDataQueryContextSchema
from superset.commands.chart.data.create_async_job_command import (
CreateAsyncChartDataJobCommand,
@@ -356,7 +356,7 @@ class ChartDataRestApi(ChartRestApi):
# This is needed for sending reports based on text charts that do the
# post-processing of data, eg, the pivot table.
if result_type == ChartDataResultType.POST_PROCESSED:
result = apply_post_process(result, form_data, datasource)
result = apply_client_processing(result, form_data, datasource)
if result_format in ChartDataResultFormat.table_like():
# Verify user has permission to export file