Projet

Général

Profil

Révision b1cefa06

Ajouté par Julien Enselme il y a presque 11 ans

Script qui a migré les tâches

Voir les différences:

scripts_divers/migrer_taches_vers_redmine/goto_redmine.py
9 9
import re
10 10
import os
11 11

  
12
SUBMITERS = {'jenselme': 'a7630a1244be353424cc0f56a49657c3fa9dbcc6'}
12
SUBMITERS = {'jenselme': '464c7c05b9bb53fb136092f1b9807ad91ec51321'}
13 13
Headers = {'content-type': 'application/json', 'X-Redmine-API-Key': ''}
14
URL = 'http://localhost/redmine/issues'
14
URL = 'https://forge.centrale-marseille.fr/issues'
15 15
LIST_TODO = 'http://localhost/portail/liste-tache'
16 16
BASE_URL = 'http://localhost/portail'
17
PROJECT_ID = 2
17
PROJECT_ID = 30
18 18
TRACKER_ID = 2
19 19
DONE_RATIO = {'En pause': 50, 'À commencer': 0, 'Entamée': 20, 'Bien avancée': 80, 'Terminée (success)': 100, 'Fermée (won\'t fix)': 100}
20 20
PRIORITY = {'5 - Très basse': 3, '4 - Basse': 3, '3 - Moyenne': 4, '2 - Haute': 5, '1 - Très haute': 6,\
......
22 22
        '0': 3, '1': 3, '2': 4, '3': 5, '4': 6}
23 23
STATUS = {'En cours': 2, 'Fermée': 5, 'Rejetée': 6, 'En pause': 7}
24 24
#NB : 17 : drupal6, 18 : drupal7
25
DRUPAL_VERSION = {'17': 4, '18': 5}
25
DRUPAL_VERSION = {'17': 2, '18': 1}
26 26

  
27 27
def give_api_key(submiter):
28 28
    if submiter in SUBMITERS:

Formats disponibles : Unified diff