Skip to content

Conversation

@galoiring
Copy link
Contributor

@galoiring galoiring commented Aug 30, 2022

This PR is about the new widget added to the storage system manager page , that shows the event on a graph (per storage system) that show the distribution between fix and unfixed event.

Screen Shot 2022-08-30 at 20 15 08

@galoiring galoiring changed the title [WIP] Gal/311498 visualize events to physical storage page Gal/311498 visualize events to physical storage page Aug 31, 2022
@galoiring galoiring force-pushed the Gal/311498_Visualize_events_to_physical_storage_page branch from f7b5551 to 020213b Compare August 31, 2022 09:19
@agrare
Copy link
Member

agrare commented Aug 31, 2022

@galoiring if this is dependent on other PRs can you please list them in the description?

@galoiring
Copy link
Contributor Author

galoiring commented Aug 31, 2022

@galoiring if this is dependent on other PRs can you please list them in the description?

This PR isn't depend on other PR's..

@agrare
Copy link
Member

agrare commented Aug 31, 2022

This PR is about the new widget added to the storage system manager page , that shows the event on a graph (per storage system) that show the distribution between fix and unfixed event.

Isn't that widget not merged yet? ManageIQ/manageiq#22081

@galoiring
Copy link
Contributor Author

This PR is about the new widget added to the storage system manager page , that shows the event on a graph (per storage system) that show the distribution between fix and unfixed event.

Isn't that widget not merged yet? ManageIQ/manageiq#22081

if you meant it regarding to PR #22081 , this has similarity but operate in a different way.

@agrare
Copy link
Member

agrare commented Aug 31, 2022

if you meant it regarding to PR #22081 , this has similarity but operate in a different way.

Do we need both? I'm confused what these two do and why do them two different ways

@galoiring
Copy link
Contributor Author

if you meant it regarding to PR #22081 , this has similarity but operate in a different way.

Do we need both? I'm confused what these two do and why do them two different ways

In the general dashboard we wish to display general distribution of fixed vs unfixed event for all managers and storage systems.
In a specific manager's dashboard we wish to display only the events from that manager, and this by distribution of both the storage system from which they came and their fixed/unfixed status

@agrare
Copy link
Member

agrare commented Sep 2, 2022

@jeffibm @GilbertCherrie @DavidResende0 can you guys review this? I'm surprised how much ruby code is required here I thought the report definitions were yaml but I might be missing something.

@jeffibm
Copy link
Member

jeffibm commented Sep 5, 2022

Hey @galoiring, could you please squash the commits if it's ready to be reviewed & merged? Could you also provide a before/after screenshot of full page for sprint review documentation purpose.

@galoiring
Copy link
Contributor Author

galoiring commented Sep 5, 2022

Hey @galoiring, could you please squash the commits if it's ready to be reviewed & merged? Could you also provide a before/after screenshot of full page for sprint review documentation purpose.

I will squash right now.
Regards to the 'before' image, this is a new widget

p.s
@jeffibm I deleted you as reviewer by mistake , sorry .

@galoiring galoiring force-pushed the Gal/311498_Visualize_events_to_physical_storage_page branch from c27f846 to 1e4bb46 Compare September 5, 2022 10:35
@galoiring galoiring requested review from agrare and removed request for GilbertCherrie and jeffibm September 6, 2022 08:05
@jeffibm
Copy link
Member

jeffibm commented Sep 6, 2022

Hi @galoiring , could you please add few steps on how/where to check this in UI.
The Code seems good, just need to check the screens in local env.

@galoiring
Copy link
Contributor Author

galoiring commented Sep 6, 2022

Hi @galoiring , could you please add few steps on how/where to check this in UI.
The Code seems good, just need to check the screens in local env.

@jeffibm
yes sir.
this widget to be found inside the Storage->manager (after connecting some storage manager)
(similar to the Heat Map Graph for example)

@jeffibm
Copy link
Member

jeffibm commented Sep 12, 2022

can you post a full-page screenshot here?

@galoiring
Copy link
Contributor Author

can you post a full-page screenshot here?

This is for example , with two storage managers.

Screen Shot 2022-09-12 at 12 06 54

@jeffibm
Copy link
Member

jeffibm commented Sep 12, 2022

Hey, I am not sure if am doing it right. but this is what I see in local env.
image

image

@galoiring
Copy link
Contributor Author

@jeffibm
While trying to reproduce your error, I was creating a new cinder manager (via the rails console).
As you can see here it is working..
(This is on Vm)

Screen Shot 2022-09-13 at 10 55 44

@jeffibm
Copy link
Member

jeffibm commented Sep 13, 2022

@jeffibm While trying to reproduce your error, I was creating a new cinder manager (via the rails console). As you can see here it is working.. (This is on Vm)

Screen Shot 2022-09-13 at 10 55 44

great..could you also have a look into the lint errors please..

@galoiring galoiring force-pushed the Gal/311498_Visualize_events_to_physical_storage_page branch from 1e4bb46 to fab9ba9 Compare September 14, 2022 10:46
@galoiring galoiring force-pushed the Gal/311498_Visualize_events_to_physical_storage_page branch 3 times, most recently from 6f4b889 to f35bd31 Compare September 14, 2022 11:27
@galoiring
Copy link
Contributor Author

@jeffibm While trying to reproduce your error, I was creating a new cinder manager (via the rails console). As you can see here it is working.. (This is on Vm)
Screen Shot 2022-09-13 at 10 55 44

great..could you also have a look into the lint errors please..

@jeffibm
I fix what I can.
the loops can't be combined, need to iterate two times..

@galoiring
Copy link
Contributor Author

@GilbertCherrie @agrare @jeffibm
kind reminder, thanks :)

@jeffibm
Copy link
Member

jeffibm commented Sep 20, 2022

@GilbertCherrie @agrare @jeffibm
kind reminder, thanks :)

hey, could you please have a look at the lint error by making use of the rubucop feature as mentioned in the above comment. once that is done we can merge this PR...

@galoiring galoiring force-pushed the Gal/311498_Visualize_events_to_physical_storage_page branch from f35bd31 to 3402d2b Compare September 20, 2022 07:48
@galoiring galoiring requested a review from a team as a code owner September 20, 2022 07:48
@galoiring
Copy link
Contributor Author

galoiring commented Sep 20, 2022

@GilbertCherrie @agrare @jeffibm
kind reminder, thanks :)

hey, could you please have a look at the lint error by making use of the rubucop feature as mentioned in the above comment. once that is done we can merge this PR...

@jeffibm
great, I fix all the error

@galoiring galoiring force-pushed the Gal/311498_Visualize_events_to_physical_storage_page branch from 3402d2b to 6766129 Compare September 20, 2022 09:34
@galoiring galoiring force-pushed the Gal/311498_Visualize_events_to_physical_storage_page branch from 6766129 to a012cbc Compare September 20, 2022 09:39
@miq-bot
Copy link
Member

miq-bot commented Sep 20, 2022

Checked commit Autosde@a012cbc with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
4 files checked, 2 offenses detected

app/views/ems_storage/_show_block_storage_dashboard.html.haml

  • ⚠️ - Line 10 - Avoid using instance variables in partials views
  • ⚠️ - Line 7 - Avoid using instance variables in partials views

@jeffibm jeffibm merged commit dd7330e into ManageIQ:master Sep 20, 2022
jrafanie added a commit to jrafanie/manageiq-ui-classic that referenced this pull request Sep 20, 2022
It was added in a just merged PR:
ManageIQ#8429

There is no need for interpolation here.

Fixes a brakeman warning:

Confidence: Medium
Category: SQL Injection
Check: SQL
Message: Possible SQL injection
Code: EmsEvent.where("ems_id=#{@ems_id}")
File: ../../.gem/ruby/2.7.6/bundler/gems/manageiq-ui-classic-dd7330eae02e/app/services/ems_storage_dashboard_service.rb
Line: 102
@jrafanie
Copy link
Member

jrafanie commented Sep 20, 2022

@galoiring I've opened a PR to fix a security scan that started failing after this was merged, see: #8455

@Fryguy
Copy link
Member

Fryguy commented Sep 20, 2022

I don't think this was ready for merge, unfortunately - I still don't understand the use case. I'm also concerned this isn't going through the API, or perhaps it is? I don't understand how the chart gets the data.

@galoiring
Copy link
Contributor Author

@agrare
I try to fix it by your suggestion,
can you reopen this PR ?

@agrare
Copy link
Member

agrare commented Sep 21, 2022

Hey @galoiring you can't reopen a PR that has been merged but you can create a new branch and open a new PR

@galoiring
Copy link
Contributor Author

Hey @galoiring you can't reopen a PR that has been merged but you can create a new branch and open a new PR

iv opened a new one.
thanks.

#8457

GilbertCherrie pushed a commit to GilbertCherrie/manageiq-ui-classic that referenced this pull request Oct 8, 2025
It was added in a just merged PR:
ManageIQ#8429

There is no need for interpolation here.

Fixes a brakeman warning:

Confidence: Medium
Category: SQL Injection
Check: SQL
Message: Possible SQL injection
Code: EmsEvent.where("ems_id=#{@ems_id}")
File: ../../.gem/ruby/2.7.6/bundler/gems/manageiq-ui-classic-dd7330eae02e/app/services/ems_storage_dashboard_service.rb
Line: 102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants