Request qualification
As a user, I expect my profile page to display a button where I can request a qualification. This should work similiar to requesting workinghours and result in a consequence.
I'm writing a plugin currently which provides the ability to requests a qualification and gives a staff member or someone with the role to manage qualifications the ability to accept or reject the request. Also upload of picture proof.
https://github.com/samuelson-ben/ephios_submit_qualifications
Hey Ben 👋🏼 Thanks for your contribution. We would also like to have this feature as part of ephios. Would you be interested in contributing a PR? This would require some changes to your current approach to match our needs. This would include:
- using the Consequence system to approve/deny request instead of having a separate view for that
- using django media files (similar to our Documents plugin) to store certificate/proof
#1606 introduces a signal for the personal data page, which makes building this issue as a plugin in ephios.plugins feasible. The plugin mechanism would be an easy way for this feature to be able to be turned off. Or do we need more fine-grained control about who can request qualifications?
Hi, I'm working on it at the time. Currently I am working on a PR to ephios and the qualification fixtures for the standard expiration time (introduced in my plugin in v1.1.0). There is much redundant code (like an extra page and model only to set the expiration time) that can be combined into the qualification model and the existing qualification plugin so that it is easier for the users to manage the qualifications. Also other devs could use the expiration time in their plugins (like I wished when I build it). Are you thinking it would be suitable for a standard expiration time to just use a count of full years? In perspective of controlling who can request a qualification I think it is best to have a permission needed for it but it would be great to her your opinions! I will try to fulfill the changes jeriox wrote but I have to say it is my first bigger python repo besides some Pi Pico code.
Are you thinking it would be suitable for a standard expiration time to just use a count of full years?
I think there are also folks who do refresher courses ‘once a year’. In that case, there can be more than 12 months between courses if you do one in January and the next one in March, for example. In my district, for example, there are always two dates for such annual training courses. Using full years wouldn't work for that. We could do months or some "at the end of year" flag?!
Also, I think there should be some flow of "refreshing" a qualification. And then, if we introduce File Upload for requesting a qualification, should we also allow to store documents for plain qualification grants? I think this discussion deserves it's own issue.
In perspective of controlling who can request a qualification I think it is best to have a permission needed for it but it would be great to her your opinions!
I think for now it would suffice if anyone can request qualifications when the plugin is enabled. Users that can edit userprofiles should be allowed to confim/deny the request (consequence).
Beware that there is some consequence refactoring going on in #1503