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(graphCardHelpers): sw-235 generateChartId threshold #1001

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

cdcabrera
Copy link
Member

@cdcabrera cdcabrera commented Nov 10, 2022

What's included

  • fix(graphCardHelpers): sw-235 generateChartId threshold

Notes

  • minimal visual differences for legend tooltips on RHEL and OpenShift Container Platform

  • resolves a future issue where duplicate metric IDs can be used for both Tally and Capacity by adding the isCapacity/isThreshold ID

    • This may also have allow us to store both Tally and Capacity results under the same parent state via Redux
  • we have an awkward situation where the deprecated graph component used by RHEL, and OpenShift (Container, Metric/On-Demand, Dedicated) product displays makes use of a common graph legend component that's being updated towards using a generated ID. That generated ID takes into account...

    • product id
    • category
    • isCapacity/isThreshold
    • metric id

    ... but creates a copy regression scenario for the aforementioned product displays. The products still display strings, just not the ones tailored for them specifically, the context fallback strings, because the deprecated graph component doesn't pass the required IDs to generate the unique legend ID used by the copy tooling.

    We could try to fix the deprecated component, but it is deprecated for a reason, and we are following this PR up with a subsequent PR that moves RHEL, OpenShift et all, and Satellite over to the new graph. Which means that effort would immediately be unused.

    We'll make sure to note the related PR, and merge sequentially @mirekdlugosz
    - subsequent PR refactor(config): sw-690 rhel, satellite, openshift metric graph #1002

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 that existing On-Demand display tooltips behave as intended

Example

...

Updates issue/story

sw-235
related sw-690
partially fixes sw-689
expands #1000

@cdcabrera cdcabrera added the 202212 project phase label Nov 10, 2022
* locale, graph legend, minor regression RHEL, OpenShift
* graphCardChartLegend, string context
* graphCardHelpers, generateChartId add threshold
* rhsmActions, update generateChartId
@cdcabrera cdcabrera force-pushed the sw-235-graphCardHelpers branch from 4689180 to 4c902b2 Compare November 11, 2022 14:35
@cdcabrera cdcabrera added the bug Something isn't working label Nov 17, 2022
@cdcabrera cdcabrera marked this pull request as ready for review November 17, 2022 19:38
@cdcabrera cdcabrera merged commit 213cd64 into RedHatInsights:dev Nov 17, 2022
cdcabrera added a commit that referenced this pull request Dec 5, 2022
* locale, graph legend, minor regression RHEL, OpenShift
* graphCardChartLegend, string context
* graphCardHelpers, generateChartId add threshold
* rhsmActions, update generateChartId
cdcabrera added a commit that referenced this pull request Dec 5, 2022
* locale, graph legend, minor regression RHEL, OpenShift
* graphCardChartLegend, string context
* graphCardHelpers, generateChartId add threshold
* rhsmActions, update generateChartId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
202212 project phase bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant