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: update filter naming on courseware search modal #1255

Conversation

germanolleunlp
Copy link
Contributor

Update names to be one of the follows:

  1. All Content
  2. Text
  3. Video
  4. Section
  5. Other

https://2u-internal.atlassian.net/browse/KBK-79

Update names to be one of the folow:
1. All Content
2. Text
3. Video
4. Section
5. Other
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (684ac49) 87.97% compared to head (8962188) 87.98%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1255   +/-   ##
=======================================
  Coverage   87.97%   87.98%           
=======================================
  Files         276      276           
  Lines        4742     4744    +2     
  Branches     1193     1195    +2     
=======================================
+ Hits         4172     4174    +2     
  Misses        554      554           
  Partials       16       16           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@schenedx schenedx left a comment

Choose a reason for hiding this comment

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

Reviewed and have questions

@@ -73,38 +52,6 @@ function renderComponent(props = {}) {
describe('CoursewareSearchResultsFilter', () => {
beforeAll(initializeMockApp);

describe('filteredResultsBySelection', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why were all these unit tests removed? Wouldn't this lower the code coverage?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nop, because the filters are now autogenerated based on the results. @rijuma added a mocked factory that returns all different kind of results, and bellow I am checking that we have all the allowed filters:

  1. All Content
  2. Text
  3. Video
  4. Section
  5. Other

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@schenedx schenedx left a comment

Choose a reason for hiding this comment

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

👍

@germanolleunlp germanolleunlp merged commit b3a06fd into master Dec 18, 2023
6 checks passed
@germanolleunlp germanolleunlp deleted the KBK-79-understandable-result-section-naming-for-learners branch December 18, 2023 20:01
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