Closed vladimir-mencl-eresearch closed 1 year ago
Hi @zmousm , can you please have a look at this PR?
It fixes the issue discussed on Slack (DjNRO unable to create new organisations in CAT since August 2022) - and has been tested and works.
Please let me know if OK to merge.
Cheers, Vlad
Hi @vladimir-mencl-eresearch. Indeed we somehow missed this change in CAT 2.1. This reminds me we would need to employ versioning for the CAT admin API, but anyway...
Please see the inline comment and the changes to your patch.
I can not push to your fork branch. Please "Allow edits from maintainers". Or see the branch pr95
(diff).
Thanks for the quick response @zmousm !
Sorry, messed up permissions - I've merged your commits into this branch.
Happy to merge as it is now?
Cheers, Vlad
To exactly match inst types as expected by CAT, define these in utils/cat_helper.py.
In edumanage.views.catenroll, add ATTRIB-INSTITUTION-TYPE with the correct value to params passed to CatEnroll.newinst.
As the params passed will go through deuglify, pass the param in notation expected by deuglify.