-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate st2flow #759
Integrate st2flow #759
Conversation
re Super expression error: trying to do this
gets this error:
StackOverflow says (https://stackoverflow.com/questions/35777991/typeerror-super-expression-must-be-null-or-a-function-not-undefined-with-babel):
I've tried both:
and
(all 4 combinations of export/import, actually. with export class and import Editor or with export default class and import { Editor }, superClass is undefined) Re redux possibility: |
based on feedback from Bitovi internal, I changed this
to this:
for better or worse, this helped... will evaluate if this is a proper solution |
re
It is a serviceable solution. See discussion on Bitovi's community slack: here _( if you don't have access to Bitovi's community slack, sign up here: https://www.bitovi.com/community/slack) _ |
@mickmcgrath13, I came across the following issue when trying out this PR. I am not using docker compose to run it. I'm using When I edit a workflow or open a blank canvas with the "plus" button, a new tab open but it is blank and I get the following error in the developer tools on Chrome.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a couple of problems that exists in this version of st2web that didn't exist in EWC (though that may be the same underlying problem). The scenarios are:
Scenario 1 - Loose Save indicator on Re-arrange workflow
- Add an action to a saved workflow - as there is unsaved changes the Save icon has a red outline to indicate there are unsaved changes
- Hit the re-arrange tasks button. The Save icon looses it's red outline - so you don't know there are unsaved changes.
In EWC then the button would have remained red.
Scenario 2- moving a task doesn't indicate Save is needed
- Edit an existing workflow and move the locaiton of a task. The Save indicator doesn't go red to indicate a change has been made. In EWC moving a task would have showed that a change had been made.
Save indicator should light up on task rearrangement or addition
save indicator gets light up on rearrangeing the tasks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workflow composer looks great, had a good play with editing and creating new workflows. Lot of testing on the Save indicator, and that all looks good.
Excellent work.
…ication chaging parameter name causing for duplication of parameter issue fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shital, This is an awesome job! Thank you for brining this effort to completion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per initial @mickmcgrath13 message, PR added the Workflow
tab nav item and I found that brilliant idea as previously the st2flow
feature was pretty much hidden from users.
I couldn't find Workflows
button in current implementation. Please include that too.
I believe the workflow tab caused some problems, and so was taken out of this PR a few rounds back. I think the intention was to get equivalent functionality to EWC in and then try and get the workflow tab in separately. |
@armab This is the comment from a few months ago when the workflow tab was taken out. (I know when it was in there were other problems as well as what was mentioned above). |
Had another re-test on latest version - looks good to me. |
From the TSC: We need to update copyright headers in all repo files in this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks everyone involved in this! 🎉
Closes #758
This just copies the relevant modules from st2flow to st2web and changes a few things to wire it up to work.
It adds a "Workflows" top nav item:
It also adds a new route for
/action
which has the standard ST2 UI Header:It adds an "Edit" link in the details panel of actions that are orquesta or mistral workflows:
It adds a "new" link (plus button) to the bottom right of the actions list on the actions page:
how to test
add a file called config.local.js like:
and then run
Known issues:
eslintrc
seeResolvednotice/notice
in.eslintrc.yml
Super expression error
(partially resolved.. see comments)
Rebase with master
Master has updated to clean up old and unused dependencies (among other things).
I've attempted this locally, and changes to the files (even with a
docker-compose up --build
and forcibly pruning docker images) didn't seem to have an effect on the built files.CSS
I didn't copy any of the css or
modules/st2-style
from st2flow to st2webSome icons are missing. I didn't get a chance to test anything else
Remaining items