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
Ginger should NOT depeden on Ginger s390x #317
Comments
Gingers390x isn't a Ginger dependency, it's the other way around. What you're seeing here might have a simpler explanation: there is no 'Add adapter' backend implemented in Ginger for Intel or Power. This is why you're seeing the UI doing this verification. This is obviously a lousy design and we need to take action. I see 2 alternatives: 1 - move the said API to Ginger, keep the 's390x' hostarch restriction in the UI or 2 - remove this UI code from the Ginger UI and put it into s390x UI. s390x should have its own ways to extend this tab and add its own functionalities. I like (1) better because the 'Add adapter' option in the Storage Devices tab will be implemented sooner or later for other architectures and we're better of if the API is hosted in Ginger. @chandrureddy let me know what you think about this issue and the proposed solutions. |
@danielhb The API provided by Ginger s390x is only to add FCP and ECKD devices which are exclusively for Z systems (from my quick search over the internet) so there is no reason to move those APIs to Ginger. Said that, Ginger s390x should be able to extend Ginger UI without making Ginger dependent of it. So go for your option 2. |
Ok. Option 2 it is We'll need a new bug @ s390x to add this button, extending this Ginger UI,
|
On 4/15/16 5:59 AM, Daniel Henrique Barboza wrote:
Also Ginger in no means have dependency to Ginger s390x. It is just that In my opinion this option looks ugly if we have to come up with
To conclude I do not find both options good and I neither see big
|
But I guess above issue can be fixed as early as possible !!! |
Let's talk about the user experience point of view. I have a s390x machine and want to try Ginger. Ginger depends on WoK and Gingerbase, thus I install Wok+Gingerbase+Ginger. "Add Adapter" button will show because the check is being made for arch = 's390x' instead of checking for gingers390x. The 'onClick' will not work because is checking for gingers390x. So I'll have a button that does nothing because I haven't installed gingers390x and no way of knowing why it's not working. We can't take for granted that anyone running Ginger in s390x will have the Gingers390x plug-in. The UI isn't helping either, it's not informing the user about the missing plug-in, thus the user will not even be aware that it's missing. This is a true user experience problem but can be amended by adding gingers390x checks all over the place. The other problem, however, is more complex and it concerns more about Gingers390x than Ginger. Ginger devs can look at this UI code, think 'wow I do not like this', turn a blind eye and that's it. What about the gingers390x devs? This dev will have an API that's implemented in Gingers390x but the UI is in Ginger. Any backend change in this API in gingers390x will require a UI update in Ginger. I know that today we're talking about the same community, even the same maintainer. However it can be different in the future. Perhaps gingers390x will grow and get its own community, maintainer and agenda apart from Ginger. When you think in these terms having an API in one plug-in and the UI in the other will compromise Gingers390x development directly. I understand that both (1) and (2) options have drawbacks but, for the sake of the Gingers390x coding experience, we can't have the backend there and the UI in Ginger. I will not say that this is a urgent, must fix now bug, but definitely this is something we'll need fixing rather sooner than later. |
On 04/15/2016 09:43 AM, Daniel Henrique Barboza wrote:
I agree with all that. And, TBH, I think the best exit would be to
|
On 04/15/2016 03:37 AM, Chandra Shekhar Reddy wrote:
Well, that doesn't seem to be true according to what @alinefm wrote
If you are explicitly checking for Ginger s390x inside Ginger code, that
|
@chandrureddy I don't agree in having Ginger s390x references in Ginger source code. I have already sent a detailed idea to solve that to the Ginger ML, but I will also post here so everyone can be aware and comment. We need to remove any reference to s390x from Ginger source code. My suggestion is to create a mechanism to inform Ginger needs to load an additional JS file from gingers390x. That gingers390x JS will do what the code in Ginger does today. Said that, let's talk about the technical details:
And THAT IS ALL! \o/ I think that is the best solution to the problem right now. Let me know your thoughts on it. |
I approve Aline's idea. It will be the best approach for the UI setup we On 04/15/2016 02:25 PM, Aline Manera wrote:
|
@alinefm : Thanks for the suggestion |
@alinefm , i followed the steps you mentioned and I am able to fix the issue. Thank you !!. |
Removing gingers390x related changes from ginger js files.
Importing dependent gingers390x js files in Ginger tab files.
Removing gingers390x specific messages from ginger i18n file.
GingerS390x references are deleted from storag help page.
Signed-off-by: Daniel Henrique Barboza <dhbarboza82@gmail.com>
While testing Ginger, I noticed the "Storage Devices" section has an Add button. When selecting it I got the following view:
As you can suppose, I am not running Ginger s390x and because that the 404 Not Found error.
After that, looking at the code, I notice Ginger UI is doing requests to Ginger s390x API.
AFAIK, Ginger should not depend on Ginger s390x, right?
IMO it needs to be fixed ASAP.
The last errors messages scares me about making Ginger s390x a Ginger dependency,
The text was updated successfully, but these errors were encountered: