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-630 architectures, variants as filters #1006

Merged
merged 4 commits into from
Dec 6, 2022

Conversation

cdcabrera
Copy link
Member

@cdcabrera cdcabrera commented Nov 19, 2022

What's included

  • refactor(config): sw-630 architectures, variants as filters

Notes

  • There are NO display changes associated with this update, related examples are there to highlight what will display when activated in refactor(config): sw-722 activate rhel archs filter #1014
    • Sets the base for future activation of RHEL architectures, and a possible Satellite variants
  • It appears easier to emulate an architectures, and variant, query parameter then filter the associated product identifiers at the service level than it is to attempt multi-level redirects. however there will be issues around...
    • current copy strings are based on product id as part of their context... going this route we may need to expand that context to include architectures and variants in the context key/id if copy needs to be even more specific to "product facets" ie. RHEL with architecture RHEL ARM, etc

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 products display as intended

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 products display as intended

Check the build

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

Example

RHEL product display

*copy subject to change
Screen Shot 2022-12-02 at 10 30 01 AM
Screen Shot 2022-12-02 at 10 30 13 AM

Satellite product display

*copy subject to change
Screen Shot 2022-12-02 at 10 48 19 PM
Screen Shot 2022-12-02 at 10 48 30 PM

Updates issue/story

sw-630
relates #1014

@cdcabrera cdcabrera added the 202212 project phase label Nov 19, 2022
@cdcabrera cdcabrera force-pushed the sw-630-arch-filter branch 2 times, most recently from c80b644 to 0c22843 Compare December 2, 2022 15:29
@cdcabrera cdcabrera force-pushed the sw-630-arch-filter branch 5 times, most recently from b0980a7 to 1d045e6 Compare December 3, 2022 03:45
@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2022

Codecov Report

Merging #1006 (6c824c9) into dev (2871a53) will decrease coverage by 0.12%.
The diff coverage is 91.89%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1006      +/-   ##
==========================================
- Coverage   93.22%   93.09%   -0.13%     
==========================================
  Files         118      121       +3     
  Lines        3851     3970     +119     
  Branches     1547     1600      +53     
==========================================
+ Hits         3590     3696     +106     
- Misses        243      256      +13     
  Partials       18       18              
Impacted Files Coverage Δ
src/components/toolbar/toolbarFieldGranularity.js 100.00% <ø> (ø)
...c/components/toolbar/toolbarFieldSelectCategory.js 67.30% <0.00%> (-5.61%) ⬇️
src/config/product.rhel.js 72.34% <ø> (ø)
src/config/product.satellite.js 75.67% <ø> (ø)
src/components/toolbar/toolbarContext.js 86.48% <60.00%> (-10.34%) ⬇️
src/common/dateHelpers.js 89.83% <100.00%> (ø)
src/components/productView/productViewContext.js 97.87% <100.00%> (+0.57%) ⬆️
src/components/toolbar/toolbar.js 100.00% <100.00%> (ø)
src/components/toolbar/toolbarFieldArchitecture.js 100.00% <100.00%> (ø)
.../components/toolbar/toolbarFieldBillingProvider.js 100.00% <100.00%> (ø)
... and 10 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 2871a53...6c824c9. Read the comment docs.

@cdcabrera cdcabrera marked this pull request as ready for review December 3, 2022 04:13
@cdcabrera cdcabrera changed the title refactor(config): sw-630 rhel architectures as filter refactor(config): sw-630 architectures, variants as filters Dec 3, 2022
* locale, toolbar string context
* productViewContext, hook, expose all queries
* toolbar, generic chip display, filtering
* toolbarContext, remove redundant hook
* toolbarFields, string context updates
* toolbarFieldsArchitecture, Variant, add
* config, rhel, satellite architectures, variants
* viewReducer, types, generic queries
* rhsmServices, emulated archs, variants filter
@cdcabrera cdcabrera merged commit dae9775 into RedHatInsights:dev Dec 6, 2022
cdcabrera added a commit that referenced this pull request Dec 12, 2022
* locale, toolbar string context
* dateHelpers, granularity filter string refs
* productViewContext, hook, expose all queries
* toolbar, generic chip display, filtering
* toolbarContext, remove redundant hook
* toolbarFields, align string context
* toolbarFieldsArchitecture, Variant, add
* config, rhel, satellite architectures, variants
* viewReducer, types, generic queries
* rhsmServices, emulated archs, variants filter
cdcabrera added a commit that referenced this pull request Dec 13, 2022
* locale, toolbar string context
* dateHelpers, granularity filter string refs
* productViewContext, hook, expose all queries
* toolbar, generic chip display, filtering
* toolbarContext, remove redundant hook
* toolbarFields, align string context
* toolbarFieldsArchitecture, Variant, add
* config, rhel, satellite architectures, variants
* viewReducer, types, generic queries
* rhsmServices, emulated archs, variants filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
202212 project phase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants