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

feat: ENTERPRISE_ALGOLIA_SEARCH_API_KEY setting [BB-8083] #602

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
)
Comment on lines +887 to +890
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: using explicit ENV_TOKENS is a legacy thing - YAML configs are used automatically.


############## 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
Loading