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
Add support for monitoring selection in UI #1501
Conversation
@miq-bot add_label providers/containers |
@nimrodshn Cannot apply the following label because they are not recognized: providers/containers |
@nimrodshn 🎉 cool! Please add a print of the endpoint you get from this |
This pull request is not mergeable. Please rebase and repush. |
@moolitayer Here you go : |
08dbde6
to
6a9f6a0
Compare
@simon3z @moolitayer @nimrodshn Nice, IMHO wrongly implemented. Kubernetes and Openshift providers should have properties that set the preferred endpoint for each monitoring task, e.g. charts/reports, alerts and logging, For example if we have a cluster with Prometheus for volatile metrics and alerts, InfoDB for metrics (hourly / dailiy rollups reports and charting) and ElasticSearch for logging, we should have properties in the provider that set the preferred endpoint for each task ( reports, alerts and logging ) This implementation adds this properties to the endpoint, IMHO this is wrong, this new property belongs to the provider, the UI should reflect that, the new drop down should move up, to the provider properties area. |
I tend to agree with @yaacov on this. (Although you mean 'wrong design' and not implemented, I think..) |
The selection should be under monitoring and not in the provider section.
|
@moolitayer - so in you're view we would add more "tabs" alongside 'monitoring' instead of making more drop downs at the provider section / adding options to an existing drop down in the provider section? Okay this makes sense to me. The only thing is - if the selection is at the top we can "eliminate" irrelevant tabs when selection is marked "disabled" which could be helpful when we have a complex environment. But, I get what your'e saying. |
Few comments based on the gif image:
|
I would argue removing tabs is more confusing but we can avoid that since we have a precedence for exactly that in ManageIQ: the vCloud screenshot I attached above. |
@simon3z @moolitayer @nimrodshn a. we can add the property @simon3z please advice, @moolitayer @nimrodshn and me discussed this, and we need a new look at this. |
@nimrodshn @moolitayer @yaacov I don't think either is needed. An OpenShift provider would have just one prometheus or hawkular endpoint so no need to mark anything as default. |
@simon3z fixed - |
@nimrodshn @moolitayer now that I spoke to @yaacov and I understood what the question was about. I have no strong feelings. I guess we'll follow other providers for consistency on this one. Otherwise we'll let the UI/UX maintainers decide. |
@simon3z I agree with you, could go both ways - but we should be consistent like @moolitayer stated. |
fd4e9c9
to
26eb2e3
Compare
@nimrodshn In all providers, properties that belong to the provider ( e.g. the endpoint used for ... ) are on the top area. Since the If it was a question of |
|
a2090f0
to
b018135
Compare
192df81
to
eeb83d8
Compare
@nimrodshn you can squash ... I asked you not to squash, because I thought the second commit is only the js function that use the ugly element.hide thing, I see that it include lots of unrelated stuff, no need to keep separate. |
some refactoring further refactoring further changes to ui for support refactoring moved the drop down to the provider section further refactoring further refactoring further refactoring add refactoring for support further support for edit Fixing specs and some refactoring minor refactoring some refactoring minor fixes in design Refactoring and renaming . . minor refactoring changed retrieve_metrics_selection refactored code: changed variable names to 'metric_' prefix and refactored 'retrieve_metrics' method some refactoring refactored code and tests refactored code a bit some refactoring some refactoring minor refactoring refactored a bit added authentication for prometheus losed unneeded parantheses refctored metricsStatusChanged added cred type fixed tab bug moved metrics down minor refactoring using angular now minor refactoring minor refactoring to tabs move from jquery to angular moved from querySelector to id refactor code very good commit refactored get route usless assignment bad refactor
eeb83d8
to
39f61a0
Compare
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.
LGTM
9d29c5c
to
91e1e99
Compare
Checked commits nimrodshn/manageiq-ui-classic@39f61a0~...91e1e99 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@h-kataria @himdel please review |
@miq-bot assign himdel |
Code looks good, it can even correctly show prometheus conf when editing a provider which uses it.. Merging 👍 |
Add support for "monitoring selection" in the UI as well as "Prometheus" time series db when adding a new provider.
cc: @simon3z @moolitayer @yaacov