Development #6726
Supprimer l'admin ou le backoffice
0%
Description
On ne doit garder qu'une des deux interface "qui se compose dynamiquement selon les autorisations accordées." (Fred)
Fichiers
Demandes liées
Révisions associées
backoffice: include all pages from admin/ (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: limit menu to main items, add more items with small blocks (#6726)
Main items are determined as having an attributed icon, it's not that good as a
reference but will do for now.
myspace: remove link to admin/ (#6726)
template: remove 'admin' as location_hint (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: include version number and gpl intro text in sidebar (#6726)
backoffice: include all pages from admin/ (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: limit menu to main items, add more items with small blocks (#6726)
Main items are determined as having an attributed icon, it's not that good as a
reference but will do for now.
myspace: remove link to admin/ (#6726)
template: remove 'admin' as location_hint (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: include version number and gpl intro text in sidebar (#6726)
backoffice: include all pages from admin/ (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: limit menu to main items, add more items with small blocks (#6726)
Main items are determined as having an attributed icon, it's not that good as a
reference but will do for now.
myspace: remove link to admin/ (#6726)
template: remove 'admin' as location_hint (#6726)
backoffice: sync with wcs backoffice/admin unification (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: update registration of panel/categories pages (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: sync with wcs backoffice/admin unification (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: update registration of panel/categories pages (#6726)
backoffice: include version number and gpl intro text in sidebar (#6726)
backoffice: include all pages from admin/ (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: limit menu to main items, add more items with small blocks (#6726)
Main items are determined as having an attributed icon, it's not that good as a
reference but will do for now.
myspace: remove link to admin/ (#6726)
template: remove 'admin' as location_hint (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: include version number and gpl intro text in sidebar (#6726)
backoffice: include all pages from admin/ (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: limit menu to main items, add more items with small blocks (#6726)
Main items are determined as having an attributed icon, it's not that good as a
reference but will do for now.
myspace: remove link to admin/ (#6726)
template: remove 'admin' as location_hint (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: sync with wcs backoffice/admin unification (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: update registration of panel/categories pages (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: include version number and gpl intro text in sidebar (#6726)
backoffice: include all pages from admin/ (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: limit menu to main items, add more items with small blocks (#6726)
Main items are determined as having an attributed icon, it's not that good as a
reference but will do for now.
myspace: remove link to admin/ (#6726)
template: remove 'admin' as location_hint (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
backoffice: simplify ADMIN_FOR_ALL behaviour (#6726)
There was a workaround against the admin-permissions settings, temporarily
adding all roles to the user, this is no longer necessary and ADMIN_FOR_ALL
is now back to really give all administrative rights to all users.
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: simplify ADMIN_FOR_ALL behaviour (#6726)
There was a workaround against the admin-permissions settings, temporarily
adding all roles to the user, this is no longer necessary and ADMIN_FOR_ALL
is now back to really give all administrative rights to all users.
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: include version number and gpl intro text in sidebar (#6726)
backoffice: include all pages from admin/ (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: limit menu to main items, add more items with small blocks (#6726)
Main items are determined as having an attributed icon, it's not that good as a
reference but will do for now.
myspace: remove link to admin/ (#6726)
template: remove 'admin' as location_hint (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
backoffice: simplify ADMIN_FOR_ALL behaviour (#6726)
There was a workaround against the admin-permissions settings, temporarily
adding all roles to the user, this is no longer necessary and ADMIN_FOR_ALL
is now back to really give all administrative rights to all users.
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: sync with wcs backoffice/admin unification (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: update registration of panel/categories pages (#6726)
backoffice: refactor display of menu items (#6726)
backoffice: include version number and gpl intro text in sidebar (#6726)
backoffice: include all pages from admin/ (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: limit menu to main items, add more items with small blocks (#6726)
Main items are determined as having an attributed icon, it's not that good as a
reference but will do for now.
myspace: remove link to admin/ (#6726)
template: remove 'admin' as location_hint (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
backoffice: simplify ADMIN_FOR_ALL behaviour (#6726)
There was a workaround against the admin-permissions settings, temporarily
adding all roles to the user, this is no longer necessary and ADMIN_FOR_ALL
is now back to really give all administrative rights to all users.
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: refactor display of menu items (#6726)
general: import get_user_from_api_query_string as needed (#6726)
Avoids circular imports (the right fix will be to move the api directory stuff
out of api.py, or move get_user_from_api_query_string to another file).
backoffice: remove unused "forms/workflows in backoffice" classes (#6726)
backoffice: refactor check of backoffice access rights (#6726)
backoffice: include version number and gpl intro text in sidebar (#6726)
backoffice: include all pages from admin/ (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: limit menu to main items, add more items with small blocks (#6726)
Main items are determined as having an attributed icon, it's not that good as a
reference but will do for now.
myspace: remove link to admin/ (#6726)
template: remove 'admin' as location_hint (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
backoffice: simplify ADMIN_FOR_ALL behaviour (#6726)
There was a workaround against the admin-permissions settings, temporarily
adding all roles to the user, this is no longer necessary and ADMIN_FOR_ALL
is now back to really give all administrative rights to all users.
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: refactor display of menu items (#6726)
general: import get_user_from_api_query_string as needed (#6726)
Avoids circular imports (the right fix will be to move the api directory stuff
out of api.py, or move get_user_from_api_query_string to another file).
backoffice: remove unused "forms/workflows in backoffice" classes (#6726)
backoffice: refactor check of backoffice access rights (#6726)
backoffice: display some menu items on empty site (#6726)
backoffice: sync with wcs backoffice/admin unification (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: update registration of panel/categories pages (#6726)
tests: update with /backoffice/ location (#6726)
backoffice: sync with wcs backoffice/admin unification (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: update registration of panel/categories pages (#6726)
tests: update with /backoffice/ location (#6726)
backoffice: include version number and gpl intro text in sidebar (#6726)
backoffice: include all pages from admin/ (#6726)
admin: use backoffice (now unified) menu items in header (#6726)
backoffice: limit menu to main items, add more items with small blocks (#6726)
Main items are determined as having an attributed icon, it's not that good as a
reference but will do for now.
myspace: remove link to admin/ (#6726)
template: remove 'admin' as location_hint (#6726)
admin: change to be a redirect to /admin/$1 (#6726)
backoffice: remove link to admin/ (#6726)
backoffice: make users and settings accessible when there are no users (#6726)
backoffice: simplify ADMIN_FOR_ALL behaviour (#6726)
There was a workaround against the admin-permissions settings, temporarily
adding all roles to the user, this is no longer necessary and ADMIN_FOR_ALL
is now back to really give all administrative rights to all users.
tests: replace admin/ by backoffice/ in tests of admin pages (#6726)
tests: don't run text pages tests with backoffice open (#6726)
backoffice: don't display logger and bounces panels if disabled (#6726)
backoffice: refactor display of menu items (#6726)
general: import get_user_from_api_query_string as needed (#6726)
Avoids circular imports (the right fix will be to move the api directory stuff
out of api.py, or move get_user_from_api_query_string to another file).
backoffice: remove unused "forms/workflows in backoffice" classes (#6726)
backoffice: refactor check of backoffice access rights (#6726)
backoffice: display some menu items on empty site (#6726)
Historique
Mis à jour par Frédéric Péters il y a environ 9 ans
- Lié à Bug #7008: Réduire le texte sur la GPL à un paragraphe traduisible ajouté
Mis à jour par Frédéric Péters il y a environ 9 ans
- Fichier 0001-backoffice-include-version-number-and-gpl-intro-text.patch 0001-backoffice-include-version-number-and-gpl-intro-text.patch ajouté
- Fichier 0002-backoffice-include-all-pages-from-admin-6726.patch 0002-backoffice-include-all-pages-from-admin-6726.patch ajouté
- Fichier 0003-admin-use-backoffice-now-unified-menu-items-in-heade.patch 0003-admin-use-backoffice-now-unified-menu-items-in-heade.patch ajouté
- Fichier 0004-backoffice-limit-menu-to-main-items-add-more-items-w.patch 0004-backoffice-limit-menu-to-main-items-add-more-items-w.patch ajouté
- Fichier 0005-myspace-remove-link-to-admin-6726.patch 0005-myspace-remove-link-to-admin-6726.patch ajouté
- Fichier 0006-template-remove-admin-as-location_hint-6726.patch 0006-template-remove-admin-as-location_hint-6726.patch ajouté
- Fichier 0007-admin-change-to-be-a-redirect-to-admin-1-6726.patch 0007-admin-change-to-be-a-redirect-to-admin-1-6726.patch ajouté
- Fichier 0008-backoffice-remove-link-to-admin-6726.patch 0008-backoffice-remove-link-to-admin-6726.patch ajouté
- Fichier 0009-backoffice-make-users-and-settings-accessible-when-t.patch 0009-backoffice-make-users-and-settings-accessible-when-t.patch ajouté
- Fichier 0010-tests-replace-admin-by-backoffice-in-tests-of-admin-.patch 0010-tests-replace-admin-by-backoffice-in-tests-of-admin-.patch ajouté
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a environ 9 ans
C'est fait de manière plutôt minimaliste niveau code, en déplaçant le minimum, histoire de ne pas galérer avec d'autres patchs en attente. Il y aurait un travail, différent, d'organisation des différents fichiers, plus tard.
Mis à jour par Frédéric Péters il y a environ 9 ans
- Fichier 0001-backoffice-sync-with-wcs-backoffice-admin-unificatio.patch 0001-backoffice-sync-with-wcs-backoffice-admin-unificatio.patch ajouté
- Fichier 0003-backoffice-update-registration-of-panel-categories-p.patch 0003-backoffice-update-registration-of-panel-categories-p.patch ajouté
- Fichier 0002-admin-use-backoffice-now-unified-menu-items-in-heade.patch 0002-admin-use-backoffice-now-unified-menu-items-in-heade.patch ajouté
- Fichier 0004-tests-update-with-backoffice-location-6722.patch 0004-tests-update-with-backoffice-location-6722.patch ajouté
- Statut changé de Nouveau à En cours
Et les patchs pour le côté auquo.
Mis à jour par Frédéric Péters il y a environ 9 ans
(pour la relecture : en l'état cela s'applique après la série de patchs sur les stats/backoffice)
Mis à jour par Frédéric Péters il y a environ 9 ans
Mis à jour par Frédéric Péters il y a presque 9 ans
- Bloque Development #7122: Limite à ADMIN_FOR_ALL ajouté
Mis à jour par Frédéric Péters il y a presque 9 ans
Je viens de passer du temps à réorganiser la branche wip/alfortville pour réunir les commits associés à ce ticket en un bloc contigu; ça devrait faciliter l'intégration.
Mis à jour par Frédéric Péters il y a presque 9 ans
Encore mieux j'ai créé une branche wip/backoffice-admin-merge.
Mis à jour par Thomas Noël il y a presque 9 ans
Frédéric Péters a écrit :
Encore mieux j'ai créé une branche wip/backoffice-admin-merge.
Première relecture sur wcs (désolé c'est à l'envers, j'ai acké du bas vers le haut).
C'est relu mais pas testé en live.
| * 9681a56 backoffice: refactor check of backoffice access rights (#6726) \_ ACK peut-être, pour la clareté des tests, avoir plutôt "def create_user(pub, is_admin=False):" (is_admin à False par défaut, au lieu du True proposé) et laisser un create_superuser(pub) qui appelle create_user(pub, is_admin=True) | * 88cd484 backoffice: remove unused "forms/workflows in backoffice" classes (#6726) \_ ACK | * 2b689c5 general: import get_user_from_api_query_string as needed (#6726) \_ ACK ... | * 9371763 backoffice: refactor display of menu items (#6726) \_ ACK (chouette c'est plus clair) | * e1e7a01 backoffice: don't display logger and bounces panels if disabled (#6726) \_ (ah, le retour de display_function, je me demandais aussi !) je ne mettrais pas le "Bounce.count() > 0", afficher le menu même s'il n'y pas de bounces à gérer...? (et aussi, éviter de compter le nombre de bounces à chaque affichage) ** attention, dans wcs/admin/bounces.py il manque l'import de get_cfg | * 914fb66 tests: don't run text pages tests with backoffice open (#6726) \_ ACK· | * 6cde12e tests: replace admin/ by backoffice/ in tests of admin pages (#6726) \_ ACK | * b640001 backoffice: simplify ADMIN_FOR_ALL behaviour (#6726) \_ ACK | * dea63ed backoffice: make users and settings accessible when there are no users (#6726) \_ ACK, mais sur le test user_class.count==0, ajouter le commentaire: # setting up the site, access is granted to settings # and users sections | * 946e48a backoffice: remove link to admin/ (#6726) \_ ACK | * c3d7ed4 admin: change to be a redirect to /admin/$1 (#6726) \_ ACK (le message pourrait plutôt être : "/admin is now just a redirect to /backoffice/$1") | * 25f884b template: remove 'admin' as location_hint (#6726) \_ ACK | * 7e1e3bc myspace: remove link to admin/ (#6726) \_ ACK | * affec1d backoffice: limit menu to main items, add more items with small blocks (#6726) \_ ACK (sera de toute façon en partie effacé par le futur 9371763) | * 2ec1570 admin: use backoffice (now unified) menu items in header (#6726) \_ ACK | * 9fa008b backoffice: include all pages from admin/ (#6726) \_ ACK, quoique le "if display_function and not display_function(k): continue" me semble de trop | * 2303a7a backoffice: include version number and gpl intro text in sidebar (#6726) \_ ACK
Mis à jour par Thomas Noël il y a presque 9 ans
Coté auquo:
- 0001-backoffice-sync-with-wcs-backoffice-admin-unificatio.patch : ACK
- 0002-admin-use-backoffice-now-unified-menu-items-in-heade.patch : ACK
- 0003-backoffice-update-registration-of-panel-categories-p.patch : ACK
- 0004-tests-update-with-backoffice-location-6722.patch : ACK
Mis à jour par Thomas Noël il y a presque 9 ans
En testant : /admin (sans / final) donne un 404, ça serait mieux de renvoyer vers /backoffice/ (si c'est facile à faire, sinon pas grave)
Mis à jour par Thomas Noël il y a presque 9 ans
Thomas Noël a écrit :
attention, dans wcs/admin/bounces.py il manque l'import de get_cfg
tout va bien, j'avais raté le import *
Mis à jour par Frédéric Péters il y a presque 9 ans
- Statut changé de En cours à Résolu (à déployer)
Tout dedans.
backoffice: include version number and gpl intro text in sidebar (#6726)