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

fix(toolbar): issues/377 openshiftView, remove usage filter #378

Merged
merged 1 commit into from
Aug 13, 2020

Conversation

cdcabrera
Copy link
Member

@cdcabrera cdcabrera commented Aug 13, 2020

What's included

  • fix(toolbar): issues/377 openshiftView, remove usage filter
    • graphCard,c3GraphCard, switch redux granularity type
    • locale, i18n, switch toolbar strings to context
    • openshiftView, rhelView, apply filters for toolbar
    • redux, queryTypes, viewReducer, granularity, sla, usage types
    • toolbar, convert to config based filter display
    • toolbarTypes, use context for locale strings

Notes

  • Applies minimal filter configuration to the toolbar filter fields to allow enabling/disabling. Intended for UI/UX around products that don't have the associated filtered data.

How to test

Local run check

  1. update the NPM packages with $ yarn
  2. $ yarn start
  3. Navigate to http://localhost:3000/rhel-sw/all and observe that both the SLA and Usage filter types are available.
  4. Next, navigate to http://localhost:3000/openshift-sw/ and observe that ONLY the SLA filter type is available

Example

RHEL view

Screen Shot 2020-08-13 at 11 10 00 AM

OpenShift view

Screen Shot 2020-08-13 at 11 11 37 AM

Updates issue/story

Updates #377
Unblocks #376
Relates #10

@cdcabrera
Copy link
Member Author

cdcabrera commented Aug 13, 2020

As of 20200813 unit tests, snapshots, need to be updated to get this PR merged are updated

cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Aug 13, 2020
…sights#378)

* graphCard,c3GraphCard, switch redux granularity type
* locale, i18n, switch toolbar strings to context
* openshiftView, rhelView, apply filters for toolbar
* redux, queryTypes, viewReducer, granularity, sla, usage types
* toolbar, convert to config based filter display
* toolbarTypes, use context for locale strings
@cdcabrera cdcabrera changed the title WIP fix(toolbar): issues/377 openshiftView, remove usage filter fix(toolbar): issues/377 openshiftView, remove usage filter Aug 13, 2020
Copy link
Member Author

@cdcabrera cdcabrera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor annotations need to be updated

src/components/rhelView/rhelView.js Show resolved Hide resolved
src/components/openshiftView/openshiftView.js Show resolved Hide resolved
…sights#378)

* graphCard,c3GraphCard, switch redux granularity type
* locale, i18n, switch toolbar strings to context
* openshiftView, rhelView, apply filters for toolbar
* redux, queryTypes, viewReducer, granularity, sla, usage types
* toolbar, convert to config based filter display
* toolbarTypes, use context for locale strings
@codecov-commenter
Copy link

codecov-commenter commented Aug 13, 2020

Codecov Report

Merging #378 into qa will decrease coverage by 0.06%.
The diff coverage is 95.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##               qa     #378      +/-   ##
==========================================
- Coverage   92.47%   92.40%   -0.07%     
==========================================
  Files          64       64              
  Lines        1528     1528              
  Branches      355      355              
==========================================
- Hits         1413     1412       -1     
- Misses        100      101       +1     
  Partials       15       15              
Impacted Files Coverage Δ
src/components/c3GraphCard/c3GraphCard.js 88.67% <ø> (ø)
src/components/graphCard/graphCard.js 83.67% <ø> (ø)
src/components/toolbar/toolbarTypes.js 100.00% <ø> (ø)
src/redux/reducers/viewReducer.js 100.00% <ø> (ø)
src/components/toolbar/toolbar.js 91.07% <94.44%> (-1.53%) ⬇️
src/components/openshiftView/openshiftView.js 100.00% <100.00%> (ø)
src/components/rhelView/rhelView.js 100.00% <100.00%> (ø)
src/redux/types/queryTypes.js 100.00% <100.00%> (ø)

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 51234d3...c7f437e. Read the comment docs.

@cdcabrera cdcabrera merged commit 2a97ca4 into RedHatInsights:qa Aug 13, 2020
cdcabrera added a commit that referenced this pull request Aug 17, 2020
* graphCard,c3GraphCard, switch redux granularity type
* locale, i18n, switch toolbar strings to context
* openshiftView, rhelView, apply filters for toolbar
* redux, queryTypes, viewReducer, granularity, sla, usage types
* toolbar, convert to config based filter display
* toolbarTypes, use context for locale strings
cdcabrera added a commit that referenced this pull request Aug 24, 2020
* graphCard,c3GraphCard, switch redux granularity type
* locale, i18n, switch toolbar strings to context
* openshiftView, rhelView, apply filters for toolbar
* redux, queryTypes, viewReducer, granularity, sla, usage types
* toolbar, convert to config based filter display
* toolbarTypes, use context for locale strings
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