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

feat(graphCard,redux): issues/185 maintain state by view #202

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

cdcabrera
Copy link
Member

What's included

  • feat(graphCard,redux): issues/185 maintain state by view
    • graphCard, required productId, initial granularity use options type
    • graphCardTypes, expand select default and options
    • graphReducer, apply viewId, avoid resetting state
    • graphCardSelectors, restructure, apply viewId
    • openshiftView, remove granularity, pathId, routeDetail required
    • rhelView, remove granularity, pathId, routeDetail required
    • rhsmActions, use generated metaId for state store
    • routerTypes, add pathId for state cache

Notes

  • No visual updates, behind the scenes
  • Restructure partially related to using the "view" as a way to maintain graph filters, and future toolbar updates

How to test

Proxy run check

  1. update the NPM packages with $ yarn
  2. make sure Docker is running, plus on network, then
  3. $ yarn start:proxy
  4. confirm no errors are generated beyond the potential platform optimization, platform app name warning, and maybe a sockjs warning
  5. Next navigate to the path rhel/all and select a granularity type other than daily
  6. confirm that navigating between all RHEL product types maintains the granularity type in the select list and displayed graph data

Example

...

Updates issue/story

Updates #185

…hts#202)

* graphCard, required productId, initial granularity use options type
* graphCardTypes, expand select default and options
* graphReducer, apply viewId, avoid resetting state
* graphCardSelectors, restructure, apply viewId
* openshiftView, remove granularity, pathId, routeDetail required
* rhelView, remove granularity, pathId, routeDetail required
* rhsmActions, use generated metaId for state store
* routerTypes, add pathId for state cache
@codecov-io
Copy link

Codecov Report

Merging #202 into ci will increase coverage by 0.02%.
The diff coverage is 97.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##               ci     #202      +/-   ##
==========================================
+ Coverage   90.64%   90.66%   +0.02%     
==========================================
  Files          38       38              
  Lines         748      750       +2     
  Branches      185      187       +2     
==========================================
+ Hits          678      680       +2     
  Misses         65       65              
  Partials        5        5
Impacted Files Coverage Δ
src/components/rhelView/rhelView.js 100% <ø> (ø) ⬆️
src/redux/reducers/graphReducer.js 100% <ø> (ø) ⬆️
src/components/openshiftView/openshiftView.js 100% <ø> (ø) ⬆️
src/redux/actions/rhsmActions.js 100% <ø> (ø) ⬆️
src/components/router/routerTypes.js 100% <ø> (ø) ⬆️
src/components/graphCard/graphCardTypes.js 100% <100%> (ø) ⬆️
src/redux/selectors/graphCardSelectors.js 100% <100%> (ø) ⬆️
src/components/graphCard/graphCard.js 68% <90%> (+3.55%) ⬆️

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 d478ed3...00b7639. Read the comment docs.

@cdcabrera cdcabrera merged commit 5b1df0c into RedHatInsights:ci Feb 12, 2020
cdcabrera added a commit that referenced this pull request Feb 25, 2020
* graphCard, required productId, initial granularity use options type
* graphCardTypes, expand select default and options
* graphReducer, apply viewId, avoid resetting state
* graphCardSelectors, restructure, apply viewId
* openshiftView, remove granularity, pathId, routeDetail required
* rhelView, remove granularity, pathId, routeDetail required
* rhsmActions, use generated metaId for state store
* routerTypes, add pathId for state cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants