Skip to content

Commit

Permalink
feat: ENTERPRISE_ALGOLIA_SEARCH_API_KEY setting
Browse files Browse the repository at this point in the history
  • Loading branch information
0x29a committed Nov 10, 2023
1 parent 4df908a commit a521936
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions lms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4591,6 +4591,7 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring
ENTERPRISE_CUSTOMER_CATALOG_DEFAULT_CONTENT_FILTER = {}
ENTERPRISE_CUSTOMER_SUCCESS_EMAIL = "[email protected]"
ENTERPRISE_INTEGRATIONS_EMAIL = "[email protected]"
ENTERPRISE_ALGOLIA_SEARCH_API_KEY = ""


# The setting key maps to the channel code (e.g. 'SAP' for success factors), Channel code is defined as
Expand Down
8 changes: 8 additions & 0 deletions lms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,14 @@ def get_env_setting(setting):
INTEGRATED_CHANNELS_API_CHUNK_TRANSMISSION_LIMIT
)

# Key used to generate per-user secured search keys, which in turn used by
# enterprise learner portal to fetch courses only from enterprise catalogs
# belonging to the user's enterprise.
ENTERPRISE_ALGOLIA_SEARCH_API_KEY = ENV_TOKENS.get(
'ENTERPRISE_ALGOLIA_SEARCH_API_KEY',
ENTERPRISE_ALGOLIA_SEARCH_API_KEY
)

############## ENTERPRISE SERVICE API CLIENT CONFIGURATION ######################
# The LMS communicates with the Enterprise service via the requests.Session() client
# The below environmental settings are utilized by the LMS when interacting with
Expand Down

0 comments on commit a521936

Please sign in to comment.