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

Hide superseded content in QF for non-teachers #636

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

jsharkey13
Copy link
Member

This is a compromise, since the endpoint is also used for the gameboard builder where superseded questions are desired. We may review who sees superseded questions where later.

This is a compromise, since the endpoint is also used for the gameboard
builder where superseded questions are desired. We may review who sees
superseded questions where later.
Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 34.42%. Comparing base (b597bfb) to head (b057bac).
Report is 3 commits behind head on master.

Files Patch % Lines
...cam/cl/dtg/segue/search/ElasticSearchProvider.java 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #636      +/-   ##
==========================================
+ Coverage   34.38%   34.42%   +0.03%     
==========================================
  Files         514      515       +1     
  Lines       23109    23123      +14     
  Branches     2795     2797       +2     
==========================================
+ Hits         7946     7960      +14     
  Misses      14361    14361              
  Partials      802      802              

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

Copy link
Contributor

@mwtrew mwtrew left a comment

Choose a reason for hiding this comment

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

Looks good, added a couple of tests to confirm.

@@ -438,6 +438,9 @@ public final ResultsWrapper<ContentDTO> questionSearch(
IsaacSearchInstructionBuilder searchInstructionBuilder = new IsaacSearchInstructionBuilder(
searchProvider, this.showOnlyPublishedContent, this.hideRegressionTestContent, !showNoFilterContent)
Copy link
Contributor

Choose a reason for hiding this comment

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

The other similar options e.g. hideRegressionTestContent are passed in as parameters to the constructor, I'd lean towards doing the same for consistency (or change the lot if there's a good reason to).

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I didn't like the endless boolean constructor params, especially given the builder pattern the rest of the class uses. So I made this one consistent with the builder pattern and it would be nice to remove the rest from the constructor but that didn't seem important enough now.

@mwtrew mwtrew merged commit 7d60ebc into master Aug 27, 2024
3 checks passed
@mwtrew mwtrew deleted the feature/QF-hide-superseded branch August 27, 2024 10:58
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