PnX-SI / UsersHub-authentification-module

Module Flask d'authentification de UsersHub
GNU General Public License v3.0
5 stars 13 forks source link

feat: Add missing unique constraint on t_roles.uuid_role. #46

Closed lpofredc closed 2 years ago

lpofredc commented 2 years ago

Add a missing unique constraint on utilisateurs.t_roles.uuid_role, as already exists on utilisateurs.bib_organismes.

camillemonchicourt commented 2 years ago

Les tests ne sont pas passés sur cette PR. Une idée du soucis ?

lpofredc commented 2 years ago

Pas certain que ça vienne de la PR, il semblerait qu'il s'agisse d'un pb de dépendance.

  File "/home/runner/work/UsersHub-authentification-module/UsersHub-authentification-module/src/pypnusershub/db/__init__.py", line 1, in <module>
    from .models import *  # noqa
  File "/home/runner/work/UsersHub-authentification-module/UsersHub-authentification-module/src/pypnusershub/db/models.py", line 26, in <module>
    from pypnusershub.db.tools import NoPasswordError, DifferentPasswordError
  File "/home/runner/work/UsersHub-authentification-module/UsersHub-authentification-module/src/pypnusershub/db/tools.py", line 15, in <module>
    from itsdangerous import (
ImportError: cannot import name 'TimedJSONWebSignatureSerializer' from 'itsdangerous' (/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/itsdangerous/__init__.py)
Error: Process completed with exit code 1.
lpofredc commented 2 years ago

cf. https://github.com/pallets/itsdangerous/issues/294 ?

bouttier commented 2 years ago

Supersed by https://github.com/PnX-SI/UsersHub-authentification-module/pull/50