Skip to content

Commit

Permalink
fix: reverted changes to use program_title and now using program titl…
Browse files Browse the repository at this point in the history
…e instead of program title. (#181)
  • Loading branch information
HammadAhmadWaqas authored Nov 3, 2021
1 parent ab0adc5 commit a812b88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions packages/catalog-search/src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ import { hasFeatureFlagEnabled } from '../data/utils';

export const FEATURE_ENROLL_WITH_CODES = 'ENROLL_WITH_CODES';
export const FEATURE_LANGUAGE_FACET = 'LANGUAGE_FACET';
export const FEATURE_PROGRAM_TITLES_FACET = 'PROGRAM_TITLES_FACET';
export const LEARNING_TYPE_FACET = 'LEARNING_TYPE_FACET';

// eslint-disable-next-line import/prefer-default-export
export const features = {
ENROLL_WITH_CODES: process.env.FEATURE_ENROLL_WITH_CODES || hasFeatureFlagEnabled(FEATURE_ENROLL_WITH_CODES),
LANGUAGE_FACET: process.env.FEATURE_LANGUAGE_FACET || hasFeatureFlagEnabled(FEATURE_LANGUAGE_FACET),
PROGRAM_TITLES_FACET: (
process.env.FEATURE_PROGRAM_TITLES_FACET || hasFeatureFlagEnabled(FEATURE_PROGRAM_TITLES_FACET)
),
LEARNING_TYPE_FACET: (
process.env.LEARNING_TYPE_FACET || hasFeatureFlagEnabled(LEARNING_TYPE_FACET)
),
Expand Down
2 changes: 1 addition & 1 deletion packages/catalog-search/src/data/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const SEARCH_FACET_FILTERS = [
},
},
{
attribute: (features.PROGRAM_TITLES_FACET ? 'program_titles' : 'programs'),
attribute: 'program_type',
title: 'Program',
isSortedAlphabetical: true,
typeaheadOptions: {
Expand Down

0 comments on commit a812b88

Please sign in to comment.