Skip to content

Commit

Permalink
Implement search for enterprise_product_category.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobbins committed Dec 20, 2024
1 parent 6e98711 commit 26826c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion internals/core_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@
ENTERPRISE_PRODUCT_CATEGORY_CHROME_ENTERPRISE_CORE = 1
ENTERPRISE_PRODUCT_CATEGORY_CHROME_ENTERPRISE_PREMIUM = 2

ENTERPRISE_PRODUCT_CATEGORIES = collections.OrderedDict([
(ENTERPRISE_PRODUCT_CATEGORY_CHROME_BROWSER_UPDATE,
'Chrome Browser update'),
(ENTERPRISE_PRODUCT_CATEGORY_CHROME_ENTERPRISE_CORE,
'Chrome Enterprise Core (CEC)'),
(ENTERPRISE_PRODUCT_CATEGORY_CHROME_ENTERPRISE_PREMIUM,
'Chrome Enterprise Premium (CEP, paid SKU)'),
])

FEATURE_TYPE_INCUBATE_ID = 0
FEATURE_TYPE_EXISTING_ID = 1
FEATURE_TYPE_CODE_CHANGE_ID = 2
Expand Down Expand Up @@ -697,7 +706,7 @@
PROPERTY_NAMES_TO_ENUM_DICTS = {
'feature_type': FEATURE_TYPES,
'category': FEATURE_CATEGORIES,
'enterprise_feature_categories': ENTERPRISE_FEATURE_CATEGORIES,
'enterprise_product_category': ENTERPRISE_PRODUCT_CATEGORIES,
'intent_stage': INTENT_STAGES,
'impl_status_chrome': IMPLEMENTATION_STATUS,
'security_review_status': REVIEW_STATUS_CHOICES,
Expand Down
1 change: 1 addition & 0 deletions internals/search_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def sorted_by_review_date(descending: bool) -> Future:
'breaking_change': FeatureEntry.breaking_change,
'confidential': FeatureEntry.confidential,
'enterprise_impact': FeatureEntry.enterprise_impact,
'enterprise_product_category': FeatureEntry.enterprise_product_category,
'shipping_year': FeatureEntry.shipping_year,

'browsers.chrome.status': FeatureEntry.impl_status_chrome,
Expand Down

0 comments on commit 26826c0

Please sign in to comment.