handle ID key in changes dictionary (#4265)
This commit is contained in:
Родитель
3df0840904
Коммит
34cf3cddb4
|
@ -572,6 +572,7 @@ class StagesAPITest(testing_config.CustomTestCase):
|
|||
"""
|
||||
testing_config.sign_in('feature_owner@example.com', 123)
|
||||
json = {
|
||||
'id': 10,
|
||||
'desktop_first': {
|
||||
'form_field_name': 'ot_milestone_desktop_start',
|
||||
'value': 200,
|
||||
|
@ -595,6 +596,7 @@ class StagesAPITest(testing_config.CustomTestCase):
|
|||
"""Raises 400 if OT end milestone is updated during OT creation process."""
|
||||
testing_config.sign_in('feature_owner@example.com', 123)
|
||||
json = {
|
||||
'id': 10,
|
||||
'desktop_last': {
|
||||
'form_field_name': 'ot_milestone_desktop_end',
|
||||
'value': 206,
|
||||
|
|
|
@ -362,8 +362,9 @@ class EntitiesAPIHandler(APIHandler):
|
|||
ot_action_requested = False
|
||||
|
||||
mutating_ot_milestones = any(
|
||||
isinstance(v, dict) and (
|
||||
v['form_field_name'] == 'ot_milestone_desktop_start' or
|
||||
v['form_field_name'] == 'ot_milestone_desktop_end'
|
||||
v['form_field_name'] == 'ot_milestone_desktop_end')
|
||||
for v in change_info.values())
|
||||
ot_creation_in_progress = (
|
||||
stage.ot_setup_status == OT_READY_FOR_CREATION or
|
||||
|
|
Загрузка…
Ссылка в новой задаче