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

fix: language facet feature flag and sort it alphabetically #82

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

adamstankiewicz
Copy link
Member

@adamstankiewicz adamstankiewicz commented Mar 26, 2021

Context
The Algolia language indexing changes are working as expected, pulling the language name from the new course-discovery API response field content_language_search_facet_name.

However, from a previous run of the Algolia re-indexing, we had indexed languages such as "American English" and "Mexican English" with the expectation that once we used this new approach described above, these would get overwritten to "English". While this worked for the majority of courses, it seems that if a course should no longer be indexed or part of the catalog (e.g., the course goes unpublished), we don't seem to be cleaning up the previously indexed records to remove the enterprise/catalog uuid <--> course mapping in Algolia.

This manifests in still seeing language options like "American English" or "Unknown language [es-bo]" in our Algolia index, when I would no longer expect to:

Related, clicking on the results from courses with these languages, you can see that the course is not part of the Enterprise Customer's catalog:

Due to this issue of not cleaning up the Algolia index when a course goes unpublished or is removed from an Enterprise Customer's catalog, I'm opting to put the Language facet behind a feature flag for now to prevent showing the incorrect language names / filtering for courses that can't be enrolled in.

Related PR for feature flag config setting: https://github.com/edx/edx-internal/pull/4786

@adamstankiewicz adamstankiewicz merged commit 584b765 into master Mar 26, 2021
@adamstankiewicz adamstankiewicz deleted the astankiewicz/ent-2990 branch March 26, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants