flogo icon indicating copy to clipboard operation
flogo copied to clipboard

web ui: allow import of applications when a flow contains an activity not already installed

Open mellistibco opened this issue 7 years ago • 5 comments
trafficstars

I'm submitting a ... (check one with "x")

[] bug report => search github for a similar issue or PR before submitting
[x] feature request
[] support request
[] general question

Current behavior (how does the issue manifest): Today, when I try to import an activity that is not already installed, web ui will alert me to the missing activity, but will not allow the app to be imported.

Expected behavior: Import the application, display any missing activity in a flow with a '?' or suitable icon. Also, disable debugging.

Minimal steps to reproduce the problem (not required if feature enhancement):

What is the motivation / use case for changing the behavior? Allow users to switch activities, review logic, etc.

Please tell us about your environment (Operating system, docker version, browser & web ui version, etc):

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X

Additional information you deem important (e.g. issue happens only occasionally):

mellistibco avatar Apr 05 '18 20:04 mellistibco

@mellistibco Would it not be even better to get the system to import the missing activities ? The imported app json contains all the required information, so why not import them as well ? Or give the option to do so ... If you've going to simplify, REALLY simplify :-)

ayh20 avatar Apr 06 '18 11:04 ayh20

thanks @ayh20. Perhaps we can look at doing a background install or something along those lines... The issue could be, if the remote git repo isn't reachable (an activity on a private repo) or the repo is very large and takes a considerable amount of time to pull the activities...

What do you think about this: Import, show a '?' mark on missing activities, if clicked, the user can select an "Install Activity" button?

mellistibco avatar Apr 06 '18 14:04 mellistibco

Seems reasonable ... Note: If the git repo isn't available then it's never going to work either way ;-)

ayh20 avatar Apr 06 '18 14:04 ayh20

So is there currently a way to install an missing activity via the web ui? What are the steps for this, I cannot find the documentation in this case.

hansamann avatar Aug 08 '18 11:08 hansamann

hansamann,

Adding missing activities isn't an intuitive as it should be ... you can only do it from the flow designer ... So from an existing app (or new one) ... then edit a flow ... click on an activity tile (which brings up the list of activities) ... and at the top of the list there is an Add activty button .... you can use this to add activities and triggers

ayh20 avatar Aug 08 '18 12:08 ayh20