-
Notifications
You must be signed in to change notification settings - Fork 4
SARC-292 SARC-293 users exceptions #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…upervisor too, there was no case with co_supervisor before exceptions handling was implemented, so the test had to be updated)
…rvisors to use a user not affected by supervisors overrides mock data
sarc/ldap/acquire.py
Outdated
| # "drac_members": {...} or None | ||
| # } | ||
|
|
||
| exceptions = load_ldap_exceptions(cfg.ldap) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On essaie de partitionner chaque phase de chargement pour pouvoir les convertir en module avec une interface générique. Par exemple, le code de la ligne 35 https://github.com/mila-iqia/SARC/pull/103/files#diff-e9c775d5112b754dc796c041cfd42e5feddc9419366751fe3e0ffa2b9a025a73R35 aurait du se retoruver dans fetch_mymila.
Ces exceptions sont surtout en lien avec mymila, je crois que ça devrait aussi être dans fetch_mymila.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En l'occurrence, pas tout à fait. Pour les exceptions de superviseurs, OUI c'est en lien avec MyMila. Par contre pour les délégations de supervision, NON cette info n'est pas présente dans les 3 sources de données (DRAC, LDAP et MyMila) donc elles ont un scope "général".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ce que je veux dire, c'est que ces exceptions sont appliquées après le matching des 3 sources de données, indépendemment de la provenance des valeurs des champs concernés. Elles sont "agnostiques" si on veut...
Ça me paraissait donc logique de les appliquer à ce niveau là.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, donc dans un soucis de rendre ça le plus générique possible, ça serait comme un module supplémentaire dans le pipeline qui ajoute des corrections aux sources précédentes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fxed in 9249978
…ldap.users_exceptions.py
…r_delegations` field in the user collection
This PR adresses two tickets:
SARC-292 : add delegates informations (one user can see another prof's students infos)
SARC-293 : override supervisor/co_supervisor
Both tickets are based on exceptions listed in secrets/exceptions.json
The mock of this file is implemented in conftest.py