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

Remove channels label fetching in useBaseSearch composable #12877

Conversation

LianaHarris360
Copy link
Member

Summary

This pull request supports the removal of the 'channels' label from SearchFiltersPanel and the corresponding label processing for the 'channels' option used in the useBaseSearch composable, in addition to updating the relevant tests.

References

Closes #12841

Reviewer guidance

Confirm that useBaseSearch no longer exposes availableChannels and doesn't handle anything related to the 'channels' label. useBaseSearch should still filter search results based on the channel the user is currently in.

@github-actions github-actions bot added APP: Learn Re: Learn App (content, quizzes, lessons, etc.) DEV: frontend labels Nov 22, 2024
Copy link
Member

@nucleogenesis nucleogenesis left a comment

Choose a reason for hiding this comment

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

I smoke tested search to be sure & the code changes LGTM -- thanks Liana!

@@ -443,14 +410,14 @@ describe(`useSearch`, () => {
it('should not remove any other filters', () => {
const { removeFilterTag, router } = prep({
categories: 'test1,test2',
channels: 'channel1',
learning_activities: 'watch',
Copy link
Member

Choose a reason for hiding this comment

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

Curious why specifically watch here?

Copy link
Member Author

Choose a reason for hiding this comment

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

There's no specific reason other than seeing it being used higher up in this testing file and using it to replace the filter that was previously there.

@LianaHarris360 LianaHarris360 merged commit a0229ef into learningequality:develop Nov 25, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Learn Re: Learn App (content, quizzes, lessons, etc.) DEV: frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove labels fetching for Channels in useBaseSearch
2 participants