-
Notifications
You must be signed in to change notification settings - Fork 21
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
Tell users to provide extension for deployment via options or file-/directory-name #18
Comments
steps:
Result: Expected result: |
Current code is as follows:
Doesn't this fix the issue? |
@robstryker error is helpful, no doubt. But we should also inform upfront, before the users possibly runs into the error. For the noob user this leads to the following unsatisfactory user experience:
Result: |
I agree with you. I welcome specific suggestions on whether the language of the error message needs to change, or the API, or the workflow. |
How can we inform the user upfront? The rsp-server itself has no ability to inform anything since no request has been made of it yet (ie you didn't attempt to add a deployment yet). Furthermore, I don't believe the UI can possibly know what conditions could cause a deployment to fail without hard-coding specific situations for specific server types. So I'm not sure how we can accomplish this goal. |
Currently, if a user uses Windows or Linux he has the ability to choose/specify which deployment he wants to add to the server through the quickpick (file or exploded). We could remove the step where we ask the user if he wants to edit optional deployment parameters if he choose the exploded option. Is there any reason he could answer 'No' in this case? If not, it's useless to keep this step, it's obvious the answer will be a yes and we can skip this question. We could have a problem in Mac OS because in this case we currently don't show any quickpick but we can change this part as well and make all OSes work in the same way. |
Simply removing the quickpick is not good. What if a server type such as karaf or something (making this up) can perform exploded deployments with no suffix but still has other optional attributes it may want the user to be able to fill out? Remember, a protocol must work for as many runtimes as possible. It has to be as generic as possible. Your suggestion here would make ALL optional parameters either become required or disappear if the user is doing exploded deployment on any runtime. Bad idea. The only other option I can see is to change the add-deployment into a workflow with many steps, but, this will probably have a lot of negative effects not just on code but also on usability for the user. But if this was a multiple-step process, a server adapter (like WildFly) could first analyze the prospective deployment and then come up with its list of optional vs required attributes. But this would require a LOT of work, a re-org of part of the protocol, and would really slow down the process for the user. I think it's a bad idea. We basically have two choices here: either define a static workflow for this action, and force everyone to use it no matter its deficiencies, or design a dynamic workflow for this action, which may be much more complicated, force the UI to handle a dynamic process, and slow down the request for the user substantially... |
Perhaps this would be best solved with a webview workflow where all options can be visible at once instead of the horrific quickpick implementation? |
So adding web view form instead of input box when adding deployment? |
If yes, then yes - it could be more informative for user. |
I was a bit confused that I actually could choose a folder with deployment (without need to name it xxx.war beforehand) when deploying to the wildfly server. I chose a folder and got hint "Do you want to edit optional deployment parameters?" which correctly guided me to choose a name for new deployment with war suffix, but still, it was not clear in the beginning.
The text was updated successfully, but these errors were encountered: