Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

/api/courses does not return all courses the user is enrolled in #122

Open
ahoereth opened this issue Oct 31, 2015 · 0 comments
Open

/api/courses does not return all courses the user is enrolled in #122

ahoereth opened this issue Oct 31, 2015 · 0 comments

Comments

@ahoereth
Copy link

The documentation states the following:

/api/courses - Belegte Veranstaltungen
Liefert die Veranstaltungen zurück, in die der Nutzer eingetragen ist.

Expected behavior: Return all courses the currently authenticated user ever enrolled in.
Actual behavior: Returns only courses the currently authenticated user enrolled in which took place in one of the last three semesters.

See routes/courses.php#L225-L238.

Side note: Same applies for /api/courses/semester: Returns just the last 3 semesters if the user enrolled in courses which took place in those. Caused by the same code snipped.

/api/courses/semester - Belegte Semester
Liefert alle Semester zurück, in denen der Nutzer in mindestens eine Veranstaltung eingetragen ist.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant