Project Forum merge requestshttps://gitlab.ewi.tudelft.nl/eip/projectforum/projectforum/-/merge_requests2023-12-07T10:18:33+01:00https://gitlab.ewi.tudelft.nl/eip/projectforum/projectforum/-/merge_requests/1037Draft: Restructure themes and thesis projects2023-12-07T10:18:33+01:00Martin Mladenovm.mladenov@student.tudelft.nlDraft: Restructure themes and thesis projectsDB:
- [x] Make an n x n `programme - theme` relation based on the existing `programme - research group - theme` relation (the diagram says n x 1 but I'm pretty sure that's wrong)
- [x] Remove the `programme - research group` relation
- [...DB:
- [x] Make an n x n `programme - theme` relation based on the existing `programme - research group - theme` relation (the diagram says n x 1 but I'm pretty sure that's wrong)
- [x] Remove the `programme - research group` relation
- [x] Change the `research group - theme` relation from 1 x n to n x n
- [x] Change the `thesis project - theme` relation from 1 x n to n x n
Main UI changes:
- [x] Admin search view (Ransack associations)
- [x] Update admin theme pages
- [x] Update admin thesis project pages
- [x] Update admin research group pages
- [x] Add a way to select research groups on admin theme page
- [x] Add a way to select programmes on admin theme pagel
- [x] Add a way to select themes on admin thesis project page
- [x] Make navigation links on admin panel show pages clickable (e.g. themes of a thesis project)
- [x] Fix dashboard (normal and admin)
- [x] Update student view
Models:
- [x] There must be at least one research group associated with every theme.
- [x] Rename Theme to Topic (only in language files)
- [ ] Still needs to be done in some non-translated strings
Permissions:
- [x] Research group members should be able to make new themes.
- [x] Everyone with access to the theme should be able to link more associated users and research groups.
- [x] Associated users should have access to a theme even if they're not part of a research group. Make sure they have access to the management panel to see the theme.
- [x] Programme coordinators should be able to create themes and thesis projects
- [x] Programme coordinators should be able to access all themes and thesis projects and edit them.
- [x] Only programme coordinators should be able to edit the programme association, and only the association with their own programme.
- Add message to contact coordinator.
Tests:
- [x] Fix failing tests
- [x] Theme - research group
- [x] Theme validation (at least one research group)
- [x] Thesis project - theme
- [x] Theme - programme (programme permission checks)
- [x] Permissions
Closes #679