root / other-scripts / migrate-issues-to-redmine / constantes.py @ 87504d03
1 |
######## Dict of people who have an api-keys
|
---|---|
2 |
#id: key
|
3 |
SUBMITERS = {'jenselme': 'b3ce5345b1444b66f05f6a143ffec6f401e8f17e', 'admin': 'a7630a1244be353424cc0f56a49657c3fa9dbcc6'} |
4 |
MANAGER = 'admin' # Can post issues |
5 |
#MANAGER = 'jenselme'
|
6 |
|
7 |
|
8 |
######## HTTP headers
|
9 |
Headers = {'content-type': 'application/json', 'X-Redmine-API-Key': ''} |
10 |
Headers_GET = {'X-Redmine-API-Key': ''} |
11 |
|
12 |
|
13 |
######## Base URL of where to post the issues
|
14 |
URL_ISSUES = 'http://debian/redmine/issues'
|
15 |
#URL_POST_ISSUES = 'https://forge.centrale-marseille.fr/issues'
|
16 |
|
17 |
|
18 |
######## Issues list in redmine of a give project
|
19 |
URL_ISSUES_JSON = 'http://debian/redmine/projects/test/issues.json'
|
20 |
#URL_ISSUES_JSON = 'https://forge.centrale-marseille.fr/projects/clubdrupal/issues.json'
|
21 |
|
22 |
######## Project URL
|
23 |
URL_PROJECT = 'http://debian/redmine/projects/test'
|
24 |
#URL_PROJECT = 'https://forge.centrale-marseille.fr/projects/clubdrupal'
|
25 |
URL_REDMINE = 'http://debian/redmine'
|
26 |
#URL_REDMINE = 'http://forge.centrale-marseille.fr'
|
27 |
|
28 |
|
29 |
######## Issues location in drupal (node id in a csv file to be parsed)
|
30 |
LIST_TODO = 'http://debian/portail/liste-tache'
|
31 |
LIST_TODO_CSV = 'http://debian/portail/liste_tache_csv'
|
32 |
|
33 |
|
34 |
######## Base url of drupal
|
35 |
BASE_URL = 'http://debian/portail'
|
36 |
|
37 |
|
38 |
######## Various id
|
39 |
PROJECT_ID = 1
|
40 |
#PROJECT_ID = 30
|
41 |
TRACKER_ID = 2
|
42 |
USER_ID = {'ftorregrosa': 45, 'Ismaeil ABOULJAMAL': 44, 'iabouljamal': 44,\ |
43 |
'Nono LiNux': 47, 'nlehuby': 47, 'gfranchi': 78, 'assos': 78, '82': 78, 'dgeo': 22,\ |
44 |
'Jean': 48,'jfeutry': 48, 'adeprey': 49,'jpennec': 46, 'gt': 42, 'jenselme': 43, |
45 |
'1': 44, '176': 43, '123': 48, '114': 49,\ |
46 |
'99': 46, '97': 45, '20': 47, '16': 42, '9': 22} |
47 |
|
48 |
|
49 |
######## Dict to translate drupal's fields into redmine ids
|
50 |
DONE_RATIO = {'En pause': 50, 'À commencer': 0, 'Entamée': 20, 'Bien avancée': 80, 'Terminée (success)': 100, 'Fermée (won\'t fix)': 100} |
51 |
PRIORITY = {'5 - Très basse': 3, '4 - Basse': 3, '3 - Moyenne': 4, '2 - Haute': 5,\ |
52 |
'1 - Très haute': 6, 'Très basse': 3, 'Basse': 3, 'Moyenne': 4,\ |
53 |
'Haute': 5, 'Très haute':6, '0': 3, '1': 3, '2': 4, '3': 5, '4': 6} |
54 |
STATUS = {'En cours': 2, 'Fermée': 5, 'Rejetée': 6, 'En pause': 7} |
55 |
#NB: sur le portail, on a les équivalences suivantes
|
56 |
# For drupal_version_field : 17 : drupal6, 18 : drupal7
|
57 |
DRUPAL_VERSION = {'17': 2, '18': 1} |
58 |
|
59 |
|
60 |
###### Other
|
61 |
REGEXP_NAME = 'http://debian/portail/(?:content/t%C3%A2che|node)/(.*)'
|