Skip to content

Commit

Permalink
DEV stash
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Feb 21, 2023
1 parent 800a299 commit 8411114
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/router/routerContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const useSetRouteDetail = ({
} = {}) => {
const dispatch = useAliasDispatch();
const [updatedPath] = useAliasSelector([({ view }) => view?.product?.config]);
const productPath = window.location.pathname;
const productPath = window.location.pathname; // useParam works in a similar manner

useEffect(() => {
if (productPath && updatedPath !== productPath) {
Expand Down
2 changes: 1 addition & 1 deletion src/config/product.openshiftContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const productId = RHSM_API_PATH_PRODUCT_TYPES.OPENSHIFT;
const productLabel = RHSM_API_PATH_PRODUCT_TYPES.OPENSHIFT;

const config = {
aliases: [RHSM_API_PATH_PRODUCT_TYPES.OPENSHIFT, 'openshift'],
aliases: [RHSM_API_PATH_PRODUCT_TYPES.OPENSHIFT, 'openshift', 'container', 'platform', 'shift'],
productGroup,
productId,
productLabel,
Expand Down
2 changes: 1 addition & 1 deletion src/config/product.openshiftMetrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const productId = RHSM_API_PATH_PRODUCT_TYPES.OPENSHIFT_METRICS;
const productLabel = RHSM_API_PATH_PRODUCT_TYPES.OPENSHIFT_METRICS;

const config = {
aliases: [RHSM_API_PATH_PRODUCT_TYPES.OPENSHIFT_METRICS, 'openshift'],
aliases: [RHSM_API_PATH_PRODUCT_TYPES.OPENSHIFT_METRICS, 'openshift', 'metrics'],
productGroup,
productId,
productLabel,
Expand Down
2 changes: 1 addition & 1 deletion src/config/product.rhacs.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const productId = RHSM_API_PATH_PRODUCT_TYPES.RHACS;
const productLabel = RHSM_API_PATH_PRODUCT_TYPES.RHACS;

const config = {
aliases: ['advanced', 'cluster', 'security', 'kubernetes'],
aliases: ['advanced', 'cluster', 'security', 'kubernetes', 'acs'],
productGroup,
productId,
productLabel,
Expand Down
10 changes: 5 additions & 5 deletions src/config/product.rhel.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const productLabel = RHSM_API_PATH_PRODUCT_TYPES.RHEL;
* initialSubscriptionsInventoryFilters: {}[], initialToolbarFilters: {}[], }}
*/
const config = {
aliases: ['insights', 'enterprise', 'linux'],
aliases: ['insights', 'enterprise', 'linux', 'el'],
productGroup,
productId,
productLabel,
Expand Down Expand Up @@ -85,6 +85,10 @@ const config = {
[RHSM_API_QUERY_SET_TYPES.OFFSET]: 0
},
initialGraphFilters: [
{
metric: RHSM_API_PATH_METRIC_TYPES.SOCKETS,
chartType: ChartTypeVariant.threshold
},
{
metric: RHSM_API_PATH_METRIC_TYPES.SOCKETS,
fill: chartColorBlueLight.value,
Expand Down Expand Up @@ -120,10 +124,6 @@ const config = {
query: {
[RHSM_API_QUERY_SET_TYPES.CATEGORY]: CATEGORY_TYPES.HYPERVISOR
}
},
{
metric: RHSM_API_PATH_METRIC_TYPES.SOCKETS,
chartType: ChartTypeVariant.threshold
}
],
initialGraphSettings: {
Expand Down
2 changes: 1 addition & 1 deletion src/config/product.rhods.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const productId = RHSM_API_PATH_PRODUCT_TYPES.RHODS;
const productLabel = RHSM_API_PATH_PRODUCT_TYPES.RHODS;

const config = {
aliases: ['openshift', 'data', 'science'],
aliases: ['openshift', 'data', 'science', 'ods'],
productGroup,
productId,
productLabel,
Expand Down
2 changes: 1 addition & 1 deletion src/config/product.rhosak.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const productId = RHSM_API_PATH_PRODUCT_TYPES.RHOSAK;
const productLabel = RHSM_API_PATH_PRODUCT_TYPES.RHOSAK;

const config = {
aliases: ['streams', 'apache', 'kafka'],
aliases: ['streams', 'apache', 'kafka', 'sak', 'ak'],
productGroup,
productId,
productLabel,
Expand Down
2 changes: 1 addition & 1 deletion src/config/product.satellite.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const productLabel = RHSM_API_PATH_PRODUCT_TYPES.SATELLITE;
* initialInventoryFilters: {}[], initialToolbarFilters: {}[], }[]}
*/
const config = {
aliases: [],
aliases: ['sat'],
productGroup,
productId,
productLabel,
Expand Down

0 comments on commit 8411114

Please sign in to comment.