Development #8826
Refactoring: merge LibertyServiceProvider into LibertyProvider
0%
Description
There is no need for two models anymore, all fields from LibertyServiceProvider could be carried by LibertyProvider.
- First a migration should add new field to LibertyProvider mapping those of LibertyServiceProvider with null=True for those lacking it
- Second a migration should copy all value from LibertyServiceProvider to their liberty_provider
- Third all use of LibertyServiceProvider should be changed to use directly LibertyProvider
- Finally the LibertyServiceProvider model should be removed
Files
Related issues
History
Updated by Josué Kouka almost 8 years ago
- File liberty_service_provider-to-service_provider-8826.patch liberty_service_provider-to-service_provider-8826.patch added
- Patch proposed changed from No to Yes
Updated by Benjamin Dauvergne almost 8 years ago
Je n'arrive plus à appliquer le patch sur master, pourrais-tu le rebaser ?
Updated by Josué Kouka almost 8 years ago
- File 0001-Model-Data-migrations-of-LibertyServiceProvider-Libe.patch 0001-Model-Data-migrations-of-LibertyServiceProvider-Libe.patch added
Pour te remettre dans le contexte, l'erreur survenait dans src/authentic2/saml/models.py ligne 34. lasso.Provider
Updated by Benjamin Dauvergne almost 8 years ago
Patch to remove last traces of handling of LibertyServiceProvider in authentic2/saml/forms.py, the form should be refactored as a ModelForm to remove the need to implement def save()
.
Updated by Benjamin Dauvergne almost 8 years ago
- File 0001-authentic2-saml-forms-remove-self.childs-there-are-n.patch 0001-authentic2-saml-forms-remove-self.childs-there-are-n.patch added
Patch to merge with yours.
Updated by Josué Kouka almost 8 years ago
- File 0001-Model-Data-migrations-of-LibertyServiceProvider-Libe.patch 0001-Model-Data-migrations-of-LibertyServiceProvider-Libe.patch added
LibertyFederation data migration added
Updated by Josué Kouka almost 8 years ago
- File 0001-Model-Data-migrations-of-LibertyServiceProvider-to-L.patch 0001-Model-Data-migrations-of-LibertyServiceProvider-to-L.patch added
References to LibertyServiceProvider removed from common.py
Updated by Josué Kouka almost 8 years ago
- File 0001-Model-Data-migrations-of-LibertyServiceProvider-to-L.patch 0001-Model-Data-migrations-of-LibertyServiceProvider-to-L.patch added
fix FieldError: Relation fields do not support nested lookups
Updated by Benjamin Dauvergne over 7 years ago
authentic2/saml/admin.py
remove commented lines, moveenabled
up in the fieldset, rename fieldset title "SAML service provider" to "Policy"authentic2/saml/forms.py
there is an akwardraise
added before anothersaml/management/commands/sync-metadata.py
reformat the docstring et remove reference LibertyIdentityProvider in it, the expressednot options['create-disabled']
must not be removed but applied toLibertyProvider.enabled
src/authentic2/saml/migrations/0018_auto_20151208_1542.py
you need to provied an empty backward RunPython migration likedef noop(apps, schema_editor): pass
, see other RunPython migrations in authenticsrc/authentic2/saml/migrations/0020_auto_20151221_1108.py
a RunPython is missing
The you will need to rebase, for testing migrations I advise loading a dump of Montpellier production database and see if it works.
Updated by Benjamin Dauvergne over 7 years ago
- Related to Project management #10245: Gérer les autorisations de se connecter à un service dans authentic added
Updated by Josué Kouka over 7 years ago
- File 0001-Model-Data-migrations-of-LibertyServiceProvider-to-L.patch 0001-Model-Data-migrations-of-LibertyServiceProvider-to-L.patch added
Everything seems to be alright. Tested with 3m production db
Updated by Benjamin Dauvergne over 7 years ago
the expressed not options['create-disabled'] must not be removed but applied to LibertyProvider.enabled
This request is not treated.
The noop() operation is not plugged in the RunPython action in migration 0018 and 0020.
Updated by Josué Kouka over 7 years ago
Updated by Josué Kouka over 7 years ago
- File 0001-Model-Data-migrations-of-LibertyServiceProvider-to-L.patch 0001-Model-Data-migrations-of-LibertyServiceProvider-to-L.patch added
fix typo
Updated by Josué Kouka over 7 years ago
Updated by Josué Kouka over 7 years ago
Benjamin Dauvergne a écrit :
Pour le RunPython, s'il te plait, lis la doc.
Ah oui, c'est
RunPython(FowardFunc, RewardFun)
Updated by Josué Kouka over 7 years ago
Updated by Benjamin Dauvergne over 7 years ago
Il faudrait modifier aussi la commande hobo/agent/authentic2/management/commands/hobo_deploy.py
, il y a aussi des mentions de LibertyServiceProvider dans le dépôt authentic2-pratic.git. J'ai fait un grep sur tous les repos je n'en vois pas d'autres (il y a en dans portial-citoyen.git mais ce projet est mort).
Updated by Josué Kouka over 7 years ago
- Related to Bug #10466: merge des classes A2 LibertyServiceProvider et LibertyProvider added
Updated by Josué Kouka over 7 years ago
- File 0001-Model-Data-migrations-of-LibertyServiceProvider-to-L.patch 0001-Model-Data-migrations-of-LibertyServiceProvider-to-L.patch added
Ajout de la gestion de dépendances avec hobo pour authentic2-multitenant
Updated by Benjamin Dauvergne about 6 years ago
- Patch proposed changed from Yes to No
Ce serait vraiment sympa d'intégrer ça à un moment, mais faut rebaser je pense.
Updated by Frédéric Péters 7 months ago
- Related to Development #76893: logguer sur un service SAML incomplet (et/ou revoir les modèles pour que ça n'arrive pas ?) added