@@ -30,6 +30,8 @@ def validate_preprod_artifact_update_schema(request_body: bytes) -> tuple[dict,
30
30
"build_number" : {"type" : "integer" },
31
31
"error_code" : {"type" : "integer" , "minimum" : 0 , "maximum" : 3 },
32
32
"error_message" : {"type" : "string" },
33
+ "app_id" : {"type" : "string" , "maxLength" : 255 },
34
+ "app_name" : {"type" : "string" , "maxLength" : 255 },
33
35
"apple_app_info" : {
34
36
"type" : "object" ,
35
37
"properties" : {
@@ -51,6 +53,8 @@ def validate_preprod_artifact_update_schema(request_body: bytes) -> tuple[dict,
51
53
"error_message" : "The error_message field must be a string." ,
52
54
"build_version" : "The build_version field must be a string with a maximum length of 255 characters." ,
53
55
"build_number" : "The build_number field must be an integer." ,
56
+ "app_id" : "The app_id field must be a string with a maximum length of 255 characters." ,
57
+ "app_name" : "The app_name field must be a string with a maximum length of 255 characters." ,
54
58
"apple_app_info" : "The apple_app_info field must be an object." ,
55
59
"apple_app_info.is_simulator" : "The is_simulator field must be a boolean." ,
56
60
"apple_app_info.codesigning_type" : "The codesigning_type field must be a string." ,
@@ -158,6 +162,14 @@ def put(self, request: Request, project, artifact_id) -> Response:
158
162
preprod_artifact .build_number = data ["build_number" ]
159
163
updated_fields .append ("build_number" )
160
164
165
+ if "app_id" in data :
166
+ preprod_artifact .app_id = data ["app_id" ]
167
+ updated_fields .append ("app_id" )
168
+
169
+ if "app_name" in data :
170
+ preprod_artifact .app_name = data ["app_name" ]
171
+ updated_fields .append ("app_name" )
172
+
161
173
if "apple_app_info" in data :
162
174
apple_info = data ["apple_app_info" ]
163
175
parsed_apple_info = {}
0 commit comments