-
-
Notifications
You must be signed in to change notification settings - Fork 166
Add Contrib option to Library Browser #1693
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
Add Contrib option to Library Browser #1693
Conversation
drgrice1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Would it be a good idea to add another checkbox to include OPL problems also, that is checked by default? If unchecked, and Include Contrib is checked, then only Contrib problems are shown. I guess if both are unchecked you get nothing! I am just throwing this out there, because it might be nice to see what the inclusion of Contrib is adding for those that have already culled the OPL problems.
Another thing that might be nice is if the count were updated to also count the Contrib problems that will be shown when the checkbox is checked or unchecked. At this point it is a bit misleading when the page shows There are 120 matching problems while Include Contrib is unchecked, and when you check the box there is no change. Yet going to the end I do see that Contrib problems are now listed.
|
Does this require to rerun OPL-update? or does fetching from the OPL handle this instead? |
|
Once everything is merged, the download-OPL-metadata-release.pl will handle everything. Alternately, you can run OPL-update. For now, you will either need to run OPL-update, or manually download the metadata release that @drdrew42 linked in his original comment. |
|
use |
|
Yeah, that is probably simpler than what I did! |
|
I ran I'll try the |
|
It appears that even though it failed, I can down select contrib problems!! |
|
Thanks for the reminder... I need to migrate my update-OPL changes from the github action in the OPL repo to this PR |
|
I had to update |
|
Starting the lengthy OPL-update process to test this now. Back in 10 to 15 minutes... |
|
Wait, its done already? |
|
Don't merge yet -- still needs some tweaks. e.g. if a course does not have a link to Contrib, then searching Contrib can lead to adding problems that are 'unreachable' |
|
OPL-update now just downloads the metadata. Did you run |
|
@pstaabp: That was a joke. |
|
legacy now runs successfully, albeit with a TON of warnings about tags. |
|
@pstaabp: Can you give this another try now. I think we got this all working. Then we can merge! |
pstaabp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great now. the OPL-update-legacy ran and ran and ran and ran and finished!!
|
This had some new |
|
@taniwallach: Yeah, another update is needed. There was another change a while back that isn't in Transifex as well. |
|
@taniwallach: All of the current translations strings are now in Transifex. The final step will be to push those back to here before the final release. I made an announcement on Transifex a while back about this for translators. Hopefully we can have some complete translation files! |
Now that Contrib is almost as large as the OPL itself, it seems time to support the searching of Contrib alongside the OPL in the Library Browser.
Testing this PR requires the OPL release created by drdrew42/webwork-open-problem-library@c2eb5be
To test:
Load up the OPL release here
Go to Library Browser, select a DBsubject/chapter/section, and check the "Include Contrib" box. Problems from Contrib will appear at the end of search, so you might have to go through multiple pages (or increase the number of results shown per page).