Resolve "Implement bundled courses/lessons" #100
No reviewers
Labels
No labels
Security
TeX
auto-update
board
done
board
ready
board
todo
check
delete-eslint-rc-js
check
update-builddeps-package-json
check
update-eslint-rc-js
check
update-gitignore
check
update-merge-request-template
check
update-prettier-ignore
check
update-pyproject-toml
check
update-renovate-json
check
update-tox-ini
part
backend
part
ci
part
docs
part
frontend
part
i18n
part
non-technical
part
packaging
prio
1
prio
2
prio
3
release-mr-5.x
size
large
size
medium
size
small
source
customer
source
customer::fsmw
source
customer::fss
source
customer::teckids
source
downstream
type
breaking
type
bug
type
feature
type
refactoring
workflow
blocked
workflow
confirmed
workflow
current-todo
workflow
discussing
workflow
new-app
workflow
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aleksis/AlekSIS-App-Cursus!100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "22-implement-bundled-courses-lessons"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #22
assigned to @hansegucker
added 2 commits
76f6a079- Add children field to Course modelCompare with previous version
added 4 commits
af61d290- Make subject & teachers field on Course model optionald4695095- Adapt graphql to updated course modelc0c48ca5- Implement bundled-course frontendd88275e0- Add resolve-children-method to course-schemaCompare with previous version
added 4 commits
Compare with previous version
added 4 commits
Compare with previous version
added 1 commit
Compare with previous version
added 3 commits
Compare with previous version
added 10 commits
masterfc444711- Remove CourseInterface8203f4f7- Add CourseBundle model59a7bc56- Add CourseBundle rules3ea68445- Add CourseBundle graphql schema7c08486d- Implement CourseBundle frontendfb1f2f3b- Simplify course-list4c921b1c- Add create-course-bundle-action to course-listCompare with previous version
added 1 commit
Compare with previous version
added 1 commit
Compare with previous version
added 2 commits
de29a16b- Create a implicit CourseBundle for every Course on creationCompare with previous version
added 1 commit
Compare with previous version
added 1 commit
Compare with previous version
added 1 commit
Compare with previous version
added 2 commits
Compare with previous version
added 1 commit
Compare with previous version
added 3 commits
f6641ef5- Remove group field from CourseBundle7f9fc6a6- Fix wrong referenceba8be4e0- FormatCompare with previous version
added 31 commits
master0407c13f- Merge 'origin/master'Compare with previous version
added 2 commits
af188520- Fix course-bundle-migration79ea3a42- Add missing default_room field to CourseTypeCompare with previous version
added 2 commits
69081adf- Fix wrong reference7cece7f4- Remove groups from CourseBundle in frontend as wellCompare with previous version
added 1 commit
2aacebb9- Introduce abstract base-classes for CourseType & CourseBundleTypeCompare with previous version
That seems to be an incomplete permission check.
We don't use
get_querysetanymore (due to breaking performance stuff).I think this should return all groups.
Django creates the default global permissions with
coursebundleinstead ofcourse_bundle. Please also fix in all other places.Please rebase/merge with master to fix merge conflicts here.
This field is used in many places outside cursus. We can't just change the API like that.
I must admit I just copied and adapted these rules from courses. It seems incomplete. But courses have the same rule. Maybe @yuha had a reason? I am not sure if I can just change this.
After looking @magicfelix changes I deleted it. But actually I am not sure how the permission is checked now. Is it implicit?
Deleted. This was a leftover anyway. You should have a look a the CourseType since it does the same.
changed this line in version 21 of the diff
changed this line in version 21 of the diff
changed this line in version 21 of the diff
changed this line in version 21 of the diff
added 4 commits
51cfa671- Remove resolve-groups from BaseCourseBundleType as well6833efce- Remove deprecated get_queryset from BaseCourseBundleType5d0fb85f- Do proper view_course_bundles_rule check for course-bundles-frontend82d7af66- Fix casing of global view_coursebundle-rule to fit django's defaultCompare with previous version
changed this line in version 22 of the diff
added 1 commit
cb42c95d- Change casing of course-bundle-model-nameCompare with previous version
changed this line in version 23 of the diff
added 2 commits
48002557- Change casing of course-bundle-frontend-path0840355a- Revert breaking API-change in SubjectField by making it optionalCompare with previous version
added 1 commit
2f4d9a7a- Remove unused gqlQuery-prop from CreateCourseCompare with previous version
added 22 commits
master968f66a2- Merge 'origin/master'Compare with previous version
added 1 commit
04e21e78- Do not return-object in CreateCourseCompare with previous version
added 1 commit
c6d9a5b0- Change course_bundle's german-translationCompare with previous version
added 1 commit
0c4c8f31- ReformatCompare with previous version
resolved all threads
I don't know what should actually be checked here – since the
cursus.view_course_bundles_rulerule is only used for determining whether users can access the course bundles management route/see the respective menu point, the check doesn't seem to be that incomplete to me. I used the same logic for courses since it didn't really make sense to me to allow anyone else (including teachers related to courses) to see their courses in this CRUD list view (and do CRUD stuff with them) since that is a typical administrational task done by some specifically designated people (who can be attributed with the global permission to do so)resolved all threads
added 3 commits
9b17c607- Use different icon for bundles78726fda- Reformat4a553144- Drop duplicate TeacherTypeCompare with previous version
added 1 commit
f48af833- Update changelog and readmeCompare with previous version
marked this merge request as ready
mentioned in commit
fb87b08d4a