Skip to content

Add Workflow Exported Results CSV To User Projects - #1489

Merged
shengquan-ni merged 5 commits into
masterfrom
ethan-add-exported-sink-csv-to-project
May 13, 2022
Merged

shengquan-ni merged 5 commits into
masterfrom
ethan-add-exported-sink-csv-to-project

Conversation

@ethanwong16

@ethanwong16 ethanwong16 commented Mar 31, 2022 •

Copy link
Copy Markdown
Contributor

Introduction

This PR aims to improve the functionality of the user project feature by adding automation to exporting workflow results. The goal is to automatically add exported workflow results files to any project(s) that workflow might belong to. More specifically, when exporting results from a sink operator as a CSV file, the exported result should also be added to the current project(s) containing that workflow.

Solution

This PR accomplishes the above goal through two major changes:

  1. Add an endpoint in ProjectResource to add exported CSV workflow results file to all project(s) the workflow belongs to, if any
  2. Update ResultExportService handleCSVRequest function to call the newly created endpoint in ProjectResource

After the above change, any time a workflow sink operator result is exported to a newly created CSV file, we will also check if the workflow belongs to any projects and add the file to them.

Demo

add-sink-export-csv-to-project.mov

Future TODOs

  • Improve usage of user projects with workflows and files by adding color indication of which file / workflow belong to which project

@ethanwong16 ethanwong16 self-assigned this Mar 31, 2022

@shengquan-ni shengquan-ni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Xiao-zhen-Liu

Copy link
Copy Markdown
Contributor

Discussion 2022.05.12: @shengquan-ni will merge this.

@shengquan-ni
shengquan-ni merged commit 436e7b0 into master May 13, 2022
@shengquan-ni
shengquan-ni deleted the ethan-add-exported-sink-csv-to-project branch May 13, 2022 18:29
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
* Add exported CSV from ResultExportService handleCSVRequest() to project(s)

* Fix function description to be more accurate

Co-authored-by: Shengquan Ni <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants