Skip to content
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

refactor(config): sw-690 rhel, satellite, openshift metric graph #1002

Merged
merged 5 commits into from
Nov 18, 2022

Conversation

cdcabrera
Copy link
Member

@cdcabrera cdcabrera commented Nov 11, 2022

What's included

  • refactor(config): sw-690 rhel, satellite, openshift inventory
  • fix(inventoryGuests): sw-235 close on redraw
  • refactor(config): sw-690 rhel, satellite, openshift metric graph
  • refactor(rhsmConstants): sw-690 remove rhsmApiTypes
  • refactor(rhsmConstants): sw-690 rhel, satellite, openshift

Notes

  • Commit refactor(config): sw-690 rhel, satellite, openshift metric graph 071f72e introduces a regression where both sockets and cores columns for inventory display at the same time for the OpenShift Container product display when run by itself see below example. Subsequent commits correct the issue

  • it was noted to UX/design the placement of the granularity based filters would temporarily move, this is expected @mirekdlugosz

  • move RHEL, Satellite, and OpenShift et all product displays to the updated metric graph component.

    • this should allow us to remove the old deprecated graph component
    • we're also including a move to an updated inventory component but using hosts which gives us the ability to remove the old deprecated inventory component

How to test

Coverage and basic unit test check

  1. update the NPM packages with $ yarn
  2. $ yarn test
  3. confirm tests come back clean

Local run check

  1. update the NPM packages with $ yarn
  2. $ yarn start
  3. confirm RHEL, OpenShift, OpenShift Dedicated, and Satellite product displays behave as expected

Example

Metric graph component applied to RHEL, OpenShift and Satellite

  • it was noted to UX/design the placement of the granularity based filters would temporarily move, this is expected
    Screenshot 2022-11-17 at 15-09-13 Standalone Curiosity
    Screenshot 2022-11-17 at 15-08-57 Standalone Curiosity
    Screenshot 2022-11-17 at 15-09-49 Standalone Curiosity
    Screenshot 2022-11-17 at 15-09-32 Standalone Curiosity

standalone commit regression for OpenShift Container views

  • this is only accessible if someone runs the commit
    Screen Shot 2022-11-17 at 12 14 11 PM

Updates issue/story

sw-690
fixes sw-689 @mirekdlugosz
relates sw-235 sw-223 sw-630

@cdcabrera cdcabrera added tech debt We've ignored it this long... 202212 project phase labels Nov 11, 2022
@cdcabrera cdcabrera force-pushed the sw-223-630-rhel branch 3 times, most recently from 5d054cb to ce8517e Compare November 17, 2022 02:34
@cdcabrera cdcabrera changed the title perf(config): sw-235 rhel, satellite, openshift metric graph refactor(config): sw-235 rhel, satellite, openshift metric graph Nov 17, 2022
@cdcabrera cdcabrera force-pushed the sw-223-630-rhel branch 2 times, most recently from 9fac743 to a27eb46 Compare November 17, 2022 07:16
@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2022

Codecov Report

Merging #1002 (8bff574) into dev (213cd64) will decrease coverage by 0.36%.
The diff coverage is 79.89%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1002      +/-   ##
==========================================
- Coverage   93.91%   93.54%   -0.37%     
==========================================
  Files         131      129       -2     
  Lines        4208     4215       +7     
  Branches     1663     1681      +18     
==========================================
- Hits         3952     3943       -9     
- Misses        237      254      +17     
+ Partials       19       18       -1     
Impacted Files Coverage Δ
src/common/dateHelpers.js 89.83% <ø> (ø)
src/components/inventoryCard/inventoryCardHosts.js 100.00% <ø> (ø)
src/components/toolbar/toolbar.js 100.00% <ø> (ø)
...c/components/toolbar/toolbarFieldSelectCategory.js 72.91% <ø> (ø)
src/config/routes.js 100.00% <ø> (ø)
src/services/rhsm/rhsmTransformers.js 100.00% <ø> (ø)
src/components/graphCard/graphCardChart.js 81.81% <50.00%> (ø)
src/config/product.openshiftContainer.js 71.42% <50.00%> (-11.08%) ⬇️
src/config/product.rhel.js 72.34% <57.14%> (-11.76%) ⬇️
src/config/product.satellite.js 75.67% <61.53%> (-12.90%) ⬇️
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 213cd64...8bff574. Read the comment docs.

@cdcabrera cdcabrera changed the title refactor(config): sw-235 rhel, satellite, openshift metric graph refactor(config): sw-690 rhel, satellite, openshift metric graph Nov 17, 2022
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Nov 17, 2022
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Nov 17, 2022
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Nov 17, 2022
…HatInsights#1002)

* config, rhel, satellite, openshift move to metric graph
* toolbar, allow anything secondary fields
* graphCardChart, cardHelpers, adjust callback data
* productView, hosts, updated table condition
* productViewContext, metric vs id uom filter
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Nov 17, 2022
* inventoryCard, state for parsed data
* inventoryCardHelpers, productId for strings
* inventoryGuests, move state to context
* inventoryGuestsContext, infinite scroll, fix offset
* inventoryReducer, types, clear guests data on close
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Nov 17, 2022
…Insights#1002)

* config, rhel, openshift, satellite, inventory ids
* locale, inventory strings
* productView, allow updated hosts inventory
* rhsmConstants, add missing sort types
* rhsmTransformers, pass original props, number of guests
@cdcabrera cdcabrera marked this pull request as ready for review November 17, 2022 20:13
…HatInsights#1002)

* config, rhel, satellite, openshift move to metric graph
* toolbar, allow anything secondary fields
* graphCardChart, cardHelpers, adjust callback data
* productView, hosts, updated table condition
* productViewContext, metric vs id uom filter
* inventoryCard, state for parsed data
* inventoryCardHelpers, productId for strings
* inventoryGuests, move state to context
* inventoryGuestsContext, infinite scroll, fix offset
* inventoryReducer, types, clear guests data on close
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Nov 17, 2022
…Insights#1002)

* config, rhel, openshift, satellite, inventory ids
* locale, inventory strings
* productView, allow updated hosts inventory
* rhsmConstants, add missing sort types
* rhsmTransformers, pass original props, number of guests
…Insights#1002)

* config, rhel, openshift, satellite, inventory ids
* locale, inventory strings
* productView, allow updated hosts inventory
* rhsmConstants, add missing sort types
* rhsmTransformers, pass original props, number of guests
@cdcabrera cdcabrera merged commit db993ca into RedHatInsights:dev Nov 18, 2022
cdcabrera added a commit that referenced this pull request Nov 18, 2022
* config, move to rhsmConstants from rhsmApiTypes
cdcabrera added a commit that referenced this pull request Nov 18, 2022
* config, rhel, satellite, openshift move to metric graph
* toolbar, allow anything secondary fields
* graphCardChart, cardHelpers, adjust callback data
* productView, hosts, updated table condition
* productViewContext, metric vs id uom filter
cdcabrera added a commit that referenced this pull request Nov 18, 2022
* inventoryCard, state for parsed data
* inventoryCardHelpers, productId for strings
* inventoryGuests, move state to context
* inventoryGuestsContext, infinite scroll, fix offset
* inventoryReducer, types, clear guests data on close
cdcabrera added a commit that referenced this pull request Dec 5, 2022
* config, move to rhsmConstants from rhsmApiTypes
cdcabrera added a commit that referenced this pull request Dec 5, 2022
* config, rhel, satellite, openshift move to metric graph
* toolbar, allow anything secondary fields
* graphCardChart, cardHelpers, adjust callback data
* productView, hosts, updated table condition
* productViewContext, metric vs id uom filter
cdcabrera added a commit that referenced this pull request Dec 5, 2022
* inventoryCard, state for parsed data
* inventoryCardHelpers, productId for strings
* inventoryGuests, move state to context
* inventoryGuestsContext, infinite scroll, fix offset
* inventoryReducer, types, clear guests data on close
cdcabrera added a commit that referenced this pull request Dec 5, 2022
* config, rhel, openshift, satellite, inventory ids
* locale, inventory strings
* productView, allow updated hosts inventory
* rhsmConstants, add missing sort types
* rhsmTransformers, pass original props, number of guests
cdcabrera added a commit that referenced this pull request Dec 5, 2022
* config, move to rhsmConstants from rhsmApiTypes
cdcabrera added a commit that referenced this pull request Dec 5, 2022
* config, rhel, satellite, openshift move to metric graph
* toolbar, allow anything secondary fields
* graphCardChart, cardHelpers, adjust callback data
* productView, hosts, updated table condition
* productViewContext, metric vs id uom filter
cdcabrera added a commit that referenced this pull request Dec 5, 2022
* inventoryCard, state for parsed data
* inventoryCardHelpers, productId for strings
* inventoryGuests, move state to context
* inventoryGuestsContext, infinite scroll, fix offset
* inventoryReducer, types, clear guests data on close
cdcabrera added a commit that referenced this pull request Dec 5, 2022
* config, rhel, openshift, satellite, inventory ids
* locale, inventory strings
* productView, allow updated hosts inventory
* rhsmConstants, add missing sort types
* rhsmTransformers, pass original props, number of guests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
202212 project phase tech debt We've ignored it this long...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants