-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/conversion v2 v3 #266
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
base: main
Are you sure you want to change the base?
Conversation
Converter - python code coverage
|
|
converter/converter/conversion_strategy/health_conversion_strategy.py
Outdated
Show resolved
Hide resolved
output_json = copy.deepcopy(input_json) | ||
if 'createCaseHealth' not in input_json.get('content', [{}])[0].get('jsonContent', {}).get('embeddedJsonContent', {}).get('message', {}): | ||
raise ValueError("Input JSON must contain 'createCaseHealth' key") | ||
del output_json['content'][0]['jsonContent']['embeddedJsonContent']['message']['createCaseHealth'] |
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.
J'ai l'impression qu'on peut factoriser cette partie entre le upgrade et le downgrade.
|
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.
Bonne base ! Les maps pour les conversions permettent d'y voir clair dans les correspondances, c'est top je trouve !
V3_TO_V2_QUALIFICATION_ORIGIN_MAPPING = { | ||
"15":"15", | ||
"116117":"116117", | ||
"AUTOCOM":"null", |
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.
"null"
est vraiment nécessaire (par rapport à None
voire ne pas mettre la ligne) et une attente du modèle en v2 ?
|
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.
LGTM, thanks!
|
|
2 similar comments
|
|
72dc6cf
to
3669056
Compare
|
…conversions logic in create_case_health
3669056
to
284466d
Compare
|
V2 V3 règles de conversion