-
-
Notifications
You must be signed in to change notification settings - Fork 166
option to have courses hidden by default #2298
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
Conversation
|
I don't agree with the change to behavior when Instead of creating a new course environment option, why not add a checkbox to the add course and unarchive course pages to control this? |
|
Wouldn't you want it set to true then, if you never want courses visible?
…On Thu, Jan 11, 2024, 6:44 AM Glenn Rice ***@***.***> wrote:
I don't agree with the change to behavior when $hide_new_courses is
false, and a new course is unarchived with a new name. I frequently
unarchive courses to a new name that were hidden, and want the unarchived
course to still be hidden. (In fact, I don't want any courses visible on my
server ever.)
Instead of creating a new course environment option, why not add a
checkbox to the add course and unarchive course pages to control this?
—
Reply to this email directly, view it on GitHub
<https://protect2.fireeye.com/v1/url?k=31323334-501cfaeb-3132feb7-454455535732-5bd00f0a150b7e68&q=1&e=1019f035-62af-4e58-8563-1136c9a74713&u=https%3A%2F%2Fgithub.com%2Fopenwebwork%2Fwebwork2%2Fpull%2F2298%23issuecomment-1887335531>,
or unsubscribe
<https://protect2.fireeye.com/v1/url?k=31323334-501cfaeb-3132feb7-454455535732-c8b21c350327271d&q=1&e=1019f035-62af-4e58-8563-1136c9a74713&u=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABEDOAD5B3ZNYQ6WL5ZGYODYN73GHAVCNFSM6AAAAABBWAHOESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBXGMZTKNJTGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Yeah, I suppose that works. |
|
Although as you pointed out setting There are cases where the current behavior makes sense. For example, suppose that at some institution some courses are hidden (perhaps because they are meant to be accessed via LTI authentication which is my reason for hiding courses), and others that are not (perhaps these don't use LTI authentication). If this institution does not use the scheme that you describe that you use at PCC, and when a course is unarchived with a new name it should have the same hidden/unhidden status that it had when archived, then the new options don't cover this case. So how about instead of making the Alternately, consider the checkbox approach maybe? |
|
I was thinking about the trinary option too this morning after the earlier messages. I'll go ahead and do that sometime soon. I think I am avoiding the checkboxes because I foresee myself having to check the box a lot. Runestone would have (almost) all courses hidden, and my PCC server would have new courses not be hidden. So one way or the other, I'd be checking that box over and over again. |
|
Now the variable is named BTW, with this and the custom admin course name PR (#2295), there are new types of things in the config files: config options that affect how the admin course behaves. I put these things in |
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.
This looks good.
I think that setting this (and the custom admin course name in #2295) in site.conf is the correct place for this.
358c30b to
9ae0f4c
Compare
9ae0f4c to
5393942
Compare
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 good.
This adds a new variable to site.conf,
$hide_new_courses. With this PR, unarchiving a course and keeping its old name, you get a course with its hidden status unchanged. But for unarchiving a course with a new name or making a completely new course, this variable controls whether or not it will be born hidden. More specifically:If it is false (the distribution default):
hide_directoryfile (no change)hide_directoryas they were when archived (no change)hide_directoryremoved, if it is present (this is a change)If it is true:
hide_directoryfile and this are born hidden (this is a change)hide_directoryas they were when archived (no change)hide_directoryadded, if not already present (this is a change)This will be useful for Runestone, where we always hide all courses (except the demonstration courses). Up to now, I have to manually hide each course after its creation.
This is also helpful for my regular PCC server. Our practice is to leave the prior term's courses open, but hidden. Then they get archived and closed two terms after the course ended. So later, if an instructor wants a new course that is a clone of the old course, we unarchive their old course with a new name (that includes the current term). But without this PR, the new course is born hidden when we don't want it that way.