Projet

Général

Profil

Development #84864

Arrêter de mettre des choses spécifiques aux briques dans hobo (et debian_config_common.py)

Ajouté par Benjamin Dauvergne il y a 4 mois. Mis à jour il y a 4 mois.

Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
18 décembre 2023
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

Suite de #84843, on se retrouve avec un debian_config_*common*.py rempli if/if-not ce qui le rend de moins en moins commun. Il faudrait voir pour déplacer le spécifique dans le debian_config.py de chaque brique. Les agents notamment pourrait être déplacés dans chaque brique aussi.


Demandes liées

Lié à Hobo - Bug #84843: échec du build après merge #84710Fermé18 décembre 2023

Actions

Historique

#1

Mis à jour par Benjamin Dauvergne il y a 4 mois

  • Lié à Bug #84843: échec du build après merge #84710 ajouté
#2

Mis à jour par Benjamin Dauvergne il y a 4 mois

Ça se résume à cela pour l'instant :

~/wd/eo/hobo$ git grep if.*INSTALLED_APPS
debian/debian_config_common.py:if 'rest_framework' in INSTALLED_APPS:
hobo/context_processors.py:        if 'hobo.environment' in settings.INSTALLED_APPS:
hobo/context_processors.py:    if 'wcs.qommon' in settings.INSTALLED_APPS:
hobo/forms.py:if 'tenant_schemas' in settings.INSTALLED_APPS:
hobo/multitenant/utils.py:    if not 'hobo.agent.common' in settings.INSTALLED_APPS:
hobo/provisionning/middleware.py:        if 'hobo.environment' in settings.INSTALLED_APPS:
hobo/urls.py:if settings.DEBUG and 'debug_toolbar' in settings.INSTALLED_APPS:

~/wd/eo/hobo$ git grep if.*PROJECT_N
debian/debian_config_common.py:if PROJECT_NAME != 'wcs':
debian/debian_config_common.py:if PROJECT_NAME != 'wcs':
debian/debian_config_common.py:if PROJECT_NAME != 'wcs' and 'authentic' not in PROJECT_NAME:
debian/debian_config_common.py:if PROJECT_NAME != 'wcs':
debian/debian_config_common.py:if 'authentic' in PROJECT_NAME:
debian/debian_config_common.py:if PROJECT_NAME != 'wcs':
debian/debian_config_common.py:    if 'authentic' not in PROJECT_NAME:
debian/debian_config_common.py:if 'authentic' not in PROJECT_NAME:
debian/debian_config_common.py:    if 'authentic' not in PROJECT_NAME:
hobo/context_processors.py:        if 'authentic' in settings.PROJECT_NAME:
hobo/context_processors.py:    if 'authentic' in settings.PROJECT_NAME:
hobo/context_processors.py:    if 'authentic' in settings.PROJECT_NAME:

Formats disponibles : Atom PDF