Skip to content

Commit 1427969

Browse files
committed
G2P Import DCI API: Code cleanup
1 parent f1dfe17 commit 1427969

17 files changed

+51
-582
lines changed

g2p_import_dci_api/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": """OpenG2P Import: DCI API""",
33
"summary": """RESTful API routes for OpenG2P""",
4-
"category": "",
4+
"category": "G2P",
55
"version": "15.0.1.1.0",
66
"author": "OpenG2P",
77
"development_status": "Alpha",
88
"external_dependencies": {"python": ["PyLD", "pyjwt>=2.4.0"]},
99
"website": "https://openg2p.org",
10-
"license": "LGPL-3",
10+
"license": "Other OSI approved licence",
1111
"depends": [
1212
"base",
1313
"g2p_programs",

g2p_import_dci_api/models/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
from . import individual
2-
from . import eligibility_manager
31
from . import constants
42
from . import fetch_social_registry_beneficiary
5-
from . import group
6-
from . import group_membership
73
from . import imported_individuals
84
from . import res_partner
Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
1-
PREDICATE = "predicate"
2-
31
GRAPHQL = "graphql"
42

5-
OPERATION_MAPPING = {
6-
"=": "eq",
7-
">": "gt",
8-
"<": "lt",
9-
">=": "ge",
10-
"<=": "le",
11-
"in": "in",
12-
}
13-
14-
FIELD_MAPPING = {
15-
"birthdate": "birthdate",
16-
"location": "birthplace",
17-
}
18-
193
DATA_SOURCE_NAME = "Social Registry"
204
DATA_SOURCE_SEARCH_PATH_NAME = "Registry Sync Search"
215
DATA_SOURCE_AUTH_PATH_NAME = "Authentication"
226

23-
DEFAULT_YEAR = 2023
24-
DEFAULT_MONTH = 11
25-
DEFAULT_DAY = 15
26-
277
REQUEST_TIMEOUT = 60

g2p_import_dci_api/models/eligibility_manager.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)