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(config): sw-922 product custom card metrics #1077

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

cdcabrera
Copy link
Member

@cdcabrera cdcabrera commented Mar 9, 2023

What's included

  • feat(config): sw-922 product custom card metrics

Notes

  • this affects the following on-demand displays; RHOSAK/streams, RHODS, RHACS
  • moves the hardcoded aspects of metric cards onto product configuration
    • allows the use of shared metric cards under general graph settings
    • allows the use of override metric cards at the filter settings level
    • allows independent metric card disabling
  • leverages the newer ability to place testIds against locale strings... RHOSAK/streams, RHODS, RHACS now use the following identifiers against data
    • graphDailyTotalCard-header (description area)
    • graphDailyTotalCard-body (numeric/total area)
    • graphDailyTotalCard-footer (date area)
    • graphMonthlyTotalCard-header (description area)
    • graphMonthlyTotalCard-body (numeric/total area)
    • graphMonthlyTotalCard-footer (date area)

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

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 that the following products have their metric card displays "unchanged"
    • RHACS
    • RHODS
    • RHOSAK/streams

Example

...

Updates issue/story

sw-922 sw-923

@cdcabrera cdcabrera added the 202304 project phase label Mar 9, 2023
@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2023

Codecov Report

Merging #1077 (5514192) into dev (047387f) will increase coverage by 0.06%.
The diff coverage is 91.42%.

❗ Current head 5514192 differs from pull request most recent head a9833ea. Consider uploading reports for the commit a9833ea to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1077      +/-   ##
==========================================
+ Coverage   93.50%   93.57%   +0.06%     
==========================================
  Files         123      121       -2     
  Lines        4128     4155      +27     
  Branches     1681     1686       +5     
==========================================
+ Hits         3860     3888      +28     
+ Misses        250      249       -1     
  Partials       18       18              
Impacted Files Coverage Δ
src/components/pageLayout/pageColumns.js 100.00% <ø> (ø)
src/config/product.rhacs.js 85.71% <85.71%> (ø)
src/config/product.rhods.js 85.71% <85.71%> (ø)
src/config/product.rhosak.js 84.21% <85.71%> (+0.48%) ⬆️
src/common/helpers.js 100.00% <100.00%> (ø)
src/components/graphCard/graphCard.js 100.00% <100.00%> (+7.14%) ⬆️
src/components/graphCard/graphCardHelpers.js 94.79% <100.00%> (+0.28%) ⬆️
src/components/graphCard/graphCardMetricTotals.js 100.00% <100.00%> (+4.87%) ⬆️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@cdcabrera cdcabrera force-pushed the sw-922 branch 2 times, most recently from 5514192 to a9833ea Compare March 10, 2023 00:51
@cdcabrera
Copy link
Member Author

/retest

@cdcabrera cdcabrera force-pushed the sw-922 branch 2 times, most recently from 528b1a3 to 5ac84af Compare March 14, 2023 15:41
* config, rhacs, rhods, rhosak, card metrics to display
* helpers, setImmutableData
* graphCard, move isMetricDisplay check to totals comp
* graphCardHelpers, set, or determine, isMetricDisplay
* graphCardMetricTotals, passthrough, call card callbacks
* pageColumns, adjust children isRequired
@cdcabrera cdcabrera merged commit 03a07c2 into RedHatInsights:dev Mar 14, 2023
@cdcabrera cdcabrera changed the title refactor(config): sw-922 product custom card metrics feat(config): sw-922 product custom card metrics Mar 14, 2023
cdcabrera added a commit that referenced this pull request Mar 21, 2023
* config, rhacs, rhods, rhosak, card metrics to display
* helpers, setImmutableData
* graphCard, move isMetricDisplay check to totals comp
* graphCardHelpers, set, or determine, isMetricDisplay
* graphCardMetricTotals, passthrough, call card callbacks
* pageColumns, adjust children isRequired
cdcabrera added a commit that referenced this pull request Apr 6, 2023
* config, rhacs, rhods, rhosak, card metrics to display
* helpers, setImmutableData
* graphCard, move isMetricDisplay check to totals comp
* graphCardHelpers, set, or determine, isMetricDisplay
* graphCardMetricTotals, passthrough, call card callbacks
* pageColumns, adjust children isRequired
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
202304 project phase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants