This is an automated email from the ASF dual-hosted git repository.

aicam pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git


The following commit(s) were added to refs/heads/main by this push:
     new d0c2ed12c4 refactor: update workflow result export functions for 
local/dataset to be separate and symmetric (#3916)
d0c2ed12c4 is described below

commit d0c2ed12c49693b652ee58e9a65f1313cdb8453c
Author: Madison Lin <[email protected]>
AuthorDate: Thu Oct 16 16:05:12 2025 -0700

    refactor: update workflow result export functions for local/dataset to be 
separate and symmetric (#3916)
    
    ### What changes were proposed in this PR?
    This PR updates the function names and docstring for workflow result
    exports to local/dataset to be symmetric.
    
    
    ### Any related issues, documentation, discussions?
    Refactors #3728.
    
    
    ### How was this PR tested?
    This PR involves a simple refactoring of the existing workflow result
    export functionality. Apart from verifying that the functionality has
    not changed, no additional tests are needed.
    
    
    ### Was this PR authored or co-authored using generative AI tooling?
    No.
---
 frontend/src/app/dashboard/service/user/download/download.service.ts | 5 ++---
 .../service/workflow-result-export/workflow-result-export.service.ts | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/frontend/src/app/dashboard/service/user/download/download.service.ts 
b/frontend/src/app/dashboard/service/user/download/download.service.ts
index f9cebc3825..53333e744d 100644
--- a/frontend/src/app/dashboard/service/user/download/download.service.ts
+++ b/frontend/src/app/dashboard/service/user/download/download.service.ts
@@ -135,10 +135,9 @@ export class DownloadService {
   }
 
   /**
-   * Export the workflow result. If destination = "local", the server returns 
a BLOB (file).
-   * Otherwise, it returns JSON with a status message.
+   * Export the workflow result to specified dataset(s).
    */
-  public exportWorkflowResult(
+  public exportWorkflowResultToDataset(
     exportType: string,
     workflowId: number,
     workflowName: string,
diff --git 
a/frontend/src/app/workspace/service/workflow-result-export/workflow-result-export.service.ts
 
b/frontend/src/app/workspace/service/workflow-result-export/workflow-result-export.service.ts
index 90983164aa..3fde39774f 100644
--- 
a/frontend/src/app/workspace/service/workflow-result-export/workflow-result-export.service.ts
+++ 
b/frontend/src/app/workspace/service/workflow-result-export/workflow-result-export.service.ts
@@ -318,7 +318,7 @@ export class WorkflowResultExportService {
     } else {
       // Dataset export to dataset via API call
       this.downloadService
-        .exportWorkflowResult(
+        .exportWorkflowResultToDataset(
           exportType,
           workflowId,
           workflowName,

Reply via email to