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

"previous enrolment" and enrolment timing rules #124

Open
MURBASLMS opened this issue Jan 14, 2025 · 2 comments
Open

"previous enrolment" and enrolment timing rules #124

MURBASLMS opened this issue Jan 14, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@MURBASLMS
Copy link

MURBASLMS commented Jan 14, 2025

rule to find if has been enrolled in x course in y category to get previous enrolment, afaiks i can get is/is not enrolled in x course but not have they ever been enrolled in any of x courses/x courses in a category.

can we get time enrolled in x course? something like "enrolment not ended before x weeks".

a rule to get the time added to a cohort (and time removed if that's possible)

all very edge case - just thoughts :)

@MURBASLMS MURBASLMS changed the title An enrolment rule to find if has been enrolled in x course in y category "previous enrolment" and enrolment timing rules Jan 14, 2025
@dmitriim
Copy link
Member

HI @MURBASLMS

rule to find if has been enrolled in x course in y category to get previous enrolment

This one is tricky as Moodle doesn't store enrolment history (except logs). However, this can be done with an additional plugin and custom table that would record a history of enrolment/unenrolment. Using log table for that may be too slow.

afaiks i can get is/is not enrolled in x course but not have they ever been enrolled in any of x courses/x courses in a category.

This one can be potentially done by using Role condition with enabled "including children (categories and courses)"?

can we get time enrolled in x course? something like "enrolment not ended before x weeks".

This one can be useful. Perhaps similar to "User created" time condition? Enrolled in last X day/before day/after day?

a rule to get the time added to a cohort (and time removed if that's possible)

Can you please provide a real business case for this rule?

@MURBASLMS
Copy link
Author

thanks, well there are probably a few but i had in mind building a cohort for "new students" which can be hard to establish.

created in last 6 months
enrolled in a unit of type 1 or two (we can get this from cohort custom fields)
has not previously enrolled in any unit in a previous year (eg any 2024 category units)
has not previously completed orientation course

also potentially:
somehow ID returning students -
could be created for a while
has dropped out of previously enrolled unit(s)
not been enrolled in any unit since

not exact but that's the idea.

@dmitriim dmitriim added the enhancement New feature or request label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants