-
Notifications
You must be signed in to change notification settings - Fork 11
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
Update canteen.py > class Ministries > Labels Open data #4812
Draft
Tdauvet89
wants to merge
1
commit into
staging
Choose a base branch
from
Tdauvet89-patch-1
base: staging
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -123,29 +123,29 @@ class Actions(models.TextChoices): | |||||
|
||||||
class Ministries(models.TextChoices): | ||||||
AFFAIRES_ETRANGERES = "affaires_etrangeres", "Affaires étrangères" | ||||||
AGRICULTURE = "agriculture", "Agriculture, Alimentation et Forêts" | ||||||
ARMEE = "armee", "Armées" | ||||||
TERRITOIRES = "territoires", "Cohésion des territoires - Relations avec les collectivités territoriales" | ||||||
AGRICULTURE = "agriculture_alimentation", "Agriculture, Alimentation et Forêts" | ||||||
ARMEE = "armees", "Armées" | ||||||
TERRITOIRES = "territoires_relations", "Cohésion des territoires - Relations avec les collectivités territoriales" | ||||||
CULTURE = "culture", "Culture" | ||||||
ECONOMIE = "economie", "Économie et finances" | ||||||
JEUNESSE = "jeunesse", "Éducation et Jeunesse" | ||||||
ENSEIGNEMENT_SUPERIEUR = "enseignement_superieur", "Enseignement supérieur et Recherche" | ||||||
ECOLOGIE = "ecologie", "Environnement" | ||||||
TRANSFORMATION = "transformation", "Fonction Publiques" | ||||||
ECONOMIE = "economie_finances", "Économie et finances" | ||||||
JEUNESSE = "education_jeunesse", "Éducation et Jeunesse" | ||||||
ENSEIGNEMENT_SUPERIEUR = "superieur_recherche", "Enseignement supérieur et Recherche" | ||||||
ECOLOGIE = "environnement", "Environnement" | ||||||
TRANSFORMATION = "fonction_publique", "Fonction Publiques" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
INTERIEUR = "interieur", "Intérieur et Outre-mer" | ||||||
JUSTICE = "justice", "Justice" | ||||||
MER = "mer", "Mer" | ||||||
ADMINISTRATION_TERRITORIALE = ( | ||||||
"administration_territoriale", | ||||||
"prefecture_ATE", | ||||||
"Préfecture - Administration Territoriale de l'État (ATE)", | ||||||
) | ||||||
AUTORITES_INDEPENDANTES = ( | ||||||
"autorites_independantes", | ||||||
"presidence_autre", | ||||||
"Présidence de la république - Autorités indépendantes (AAI, API)", | ||||||
) | ||||||
PREMIER_MINISTRE = "premier_ministre", "Services du Premier Ministre" | ||||||
SANTE = "sante", "Santé et Solidarités" | ||||||
SPORT = "sport", "Sport" | ||||||
SANTE = "sante_solidarites", "Santé et Solidarités" | ||||||
SPORT = "sports", "Sports" | ||||||
TRAVAIL = "travail", "Travail" | ||||||
OUTRE_MER = "outre_mer", "Ministère des Outre-mer" | ||||||
AUTRE = "autre", "Autre" | ||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
là ca ne change pas les labels, mais les clés, celles utilisées/stockées dans la base de données
du coup ca va demander quelques changements supplémentaires
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.
est-ce que c'est amené à changer souvent ?
est-ce que ca concerne seulement l'open data ?
une option est de laisser tel quel (sans changement à la BDD), mais venir modifier/remplacer les les valeurs au moment des exports.
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.
mais ca ne me semble pas judicieux de faire ces changements au moment de l'export, car je préférerais que des données exportées puissent être réimportées sans modification. donc à moins de changer aussi l'import...