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

Show when course is meta parent or child #21

Open
mwithheld opened this issue Nov 5, 2018 · 1 comment
Open

Show when course is meta parent or child #21

mwithheld opened this issue Nov 5, 2018 · 1 comment

Comments

@mwithheld
Copy link
Contributor

mwithheld commented Nov 5, 2018

If a course is an enrollment meta parent or child, admins need to consider that the course is empty because it's used solely for enrollments, and so admins may not want to delete them. E.g. child course collects enrolments, parent course is where students see the content.

I suggest adding flags like the 'MT' flag: X for meta, or XP and XC for meta parent and meta child.
And also adding the ability to filter those out on a search.

A course is a meta parent if it has more than one result from:
SELECT count(*)
FROM m_enrol e
WHERE enrol='meta'
AND e.courseid=[course id]

A course is a meta child if it has one or more results from:
SELECT count(*)
FROM m_enrol e
WHERE enrol='meta'
AND customint1=[course id]

@Syxton
Copy link
Owner

Syxton commented Nov 7, 2018

@mwithheld Not sure when I'll get to parsing this out as a separate identifier. I will say that the current "Empty" course description already takes into account meta course child. Since meta course children often don't have content. So if a blank course is a meta course child, it will not show up as "Empty" in the archiver.

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

No branches or pull requests

2 participants