Skip to content

Fix persist workflow error - #2091

Merged
Yicong-Huang merged 15 commits into
masterfrom
yicong-fix-persist-workflow
Jul 27, 2023
Merged

Yicong-Huang merged 15 commits into
masterfrom
yicong-fix-persist-workflow

Conversation

@Yicong-Huang

@Yicong-Huang Yicong-Huang commented Jul 25, 2023 •

Copy link
Copy Markdown
Contributor

This PR fixes an issue where manually persisting a workflow would throw an [object object] issue. The root of the problem lies in the invocation of project/{pid}/workflow/{wid}/add (introduced in #1461) during the persistence process. The issue arises when the project id is missing, leading to the request parameter being set as NaN. As a consequence, an error occurs, and it is not being handled appropriately. Now this faulty logic has been fixed.

@Yicong-Huang
Yicong-Huang merged commit eebab22 into master Jul 27, 2023
@Yicong-Huang
Yicong-Huang deleted the yicong-fix-persist-workflow branch July 27, 2023 08:27
@Yicong-Huang Yicong-Huang removed the bug label Oct 4, 2025
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This PR fixes an issue where manually persisting a workflow would throw
an `[object object]` issue. The root of the problem lies in the
invocation of `project/{pid}/workflow/{wid}/add` (introduced in apache#1461)
during the persistence process. The issue arises when the project id is
missing, leading to the request parameter being set as `NaN`. As a
consequence, an error occurs, and it is not being handled appropriately.
Now this faulty logic has been fixed.

---------

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants