learningequality / learningequality/studio
Import channel search: language filtering requires re-thinking
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 191
- Forks
- 307
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
Observed behavior
Filtering by language in import channel search isn't working as expected.
Expected behavior
Filtering by language should work as expected.
User-facing consequences
Wrong results when filtered by language.
Additional information
Presently, filtering by language in import from channel search uses contentcuration's model's language value. But we set language during publish on exported database. So, filtering by language is giving wrong results.
We need to handle this for both channel types -- public, and private.
Steps to reproduce the issue
- Create a channel with a specific language.
- Add a resource without setting its language explicitly.
- Publish that channel.
- Create another channel.
- Go to import channel search.
- Select
My channelsfromChannelsdropdown. - Now, enter a search term that displays that resource.
- In the results page, in Language dropdown, select the published channel language.
- You will see zero results.
Usage Details
- OS: Ubuntu 22.04
- Browser: Chrome
- URL: Latest unstable
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the import channel search language filter and trace how language is read for published resources. Compare the model language with the language set during publishing for both public and private channels, then reproduce the listed steps and confirm that the expected channel language returns the resource.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100