Skip to content

Commit e459d3c

Browse files
committed
fix: project phase during challenge creation
Signed-off-by: Rakib Ansary <rakibansary@gmail.com>
1 parent b4f7266 commit e459d3c

File tree

16 files changed

+4195
-1776
lines changed

16 files changed

+4195
-1776
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"@aws-sdk/util-utf8-node": "^3.259.0",
2424
"@grpc/grpc-js": "^1.7.1",
2525
"@opensearch-project/opensearch": "^2.2.0",
26-
"@topcoder-framework/domain-acl": "^0.7.0",
27-
"@topcoder-framework/lib-common": "^0.7.0",
26+
"@topcoder-framework/domain-acl": "^0.7.3",
27+
"@topcoder-framework/lib-common": "^0.7.3",
2828
"aws-sdk": "^2.1339.0",
2929
"axios": "^1.2.2",
3030
"dayjs": "^1.11.7",
@@ -36,7 +36,7 @@
3636
"moment": "^2.29.4",
3737
"source-map-support": "^0.5.21",
3838
"tc-core-library-js": "appirio-tech/tc-core-library-js.git#v2.6.4",
39-
"topcoder-interface": "github:topcoder-platform/plat-interface-definition#v0.0.29",
39+
"topcoder-interface": "github:topcoder-platform/plat-interface-definition#v0.0.30",
4040
"uuidv4": "^6.2.13",
4141
"xss": "^1.0.14"
4242
},

src/dal/models/nosql/google/protobuf/struct.ts

Lines changed: 66 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,20 @@ export const Struct = {
115115
const tag = reader.uint32();
116116
switch (tag >>> 3) {
117117
case 1:
118+
if (tag != 10) {
119+
break;
120+
}
121+
118122
const entry1 = Struct_FieldsEntry.decode(reader, reader.uint32());
119123
if (entry1.value !== undefined) {
120124
message.fields[entry1.key] = entry1.value;
121125
}
122-
break;
123-
default:
124-
reader.skipType(tag & 7);
125-
break;
126+
continue;
127+
}
128+
if ((tag & 7) == 4 || tag == 0) {
129+
break;
126130
}
131+
reader.skipType(tag & 7);
127132
}
128133
return message;
129134
},
@@ -209,15 +214,24 @@ export const Struct_FieldsEntry = {
209214
const tag = reader.uint32();
210215
switch (tag >>> 3) {
211216
case 1:
217+
if (tag != 10) {
218+
break;
219+
}
220+
212221
message.key = reader.string();
213-
break;
222+
continue;
214223
case 2:
224+
if (tag != 18) {
225+
break;
226+
}
227+
215228
message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
216-
break;
217-
default:
218-
reader.skipType(tag & 7);
219-
break;
229+
continue;
230+
}
231+
if ((tag & 7) == 4 || tag == 0) {
232+
break;
220233
}
234+
reader.skipType(tag & 7);
221235
}
222236
return message;
223237
},
@@ -282,27 +296,52 @@ export const Value = {
282296
const tag = reader.uint32();
283297
switch (tag >>> 3) {
284298
case 1:
299+
if (tag != 8) {
300+
break;
301+
}
302+
285303
message.kind = { $case: "nullValue", nullValue: nullValueFromJSON(reader.int32()) };
286-
break;
304+
continue;
287305
case 2:
306+
if (tag != 17) {
307+
break;
308+
}
309+
288310
message.kind = { $case: "numberValue", numberValue: reader.double() };
289-
break;
311+
continue;
290312
case 3:
313+
if (tag != 26) {
314+
break;
315+
}
316+
291317
message.kind = { $case: "stringValue", stringValue: reader.string() };
292-
break;
318+
continue;
293319
case 4:
320+
if (tag != 32) {
321+
break;
322+
}
323+
294324
message.kind = { $case: "boolValue", boolValue: reader.bool() };
295-
break;
325+
continue;
296326
case 5:
327+
if (tag != 42) {
328+
break;
329+
}
330+
297331
message.kind = { $case: "structValue", structValue: Struct.unwrap(Struct.decode(reader, reader.uint32())) };
298-
break;
332+
continue;
299333
case 6:
334+
if (tag != 50) {
335+
break;
336+
}
337+
300338
message.kind = { $case: "listValue", listValue: ListValue.unwrap(ListValue.decode(reader, reader.uint32())) };
301-
break;
302-
default:
303-
reader.skipType(tag & 7);
304-
break;
339+
continue;
340+
}
341+
if ((tag & 7) == 4 || tag == 0) {
342+
break;
305343
}
344+
reader.skipType(tag & 7);
306345
}
307346
return message;
308347
},
@@ -435,12 +474,17 @@ export const ListValue = {
435474
const tag = reader.uint32();
436475
switch (tag >>> 3) {
437476
case 1:
477+
if (tag != 10) {
478+
break;
479+
}
480+
438481
message.values.push(Value.unwrap(Value.decode(reader, reader.uint32())));
439-
break;
440-
default:
441-
reader.skipType(tag & 7);
442-
break;
482+
continue;
483+
}
484+
if ((tag & 7) == 4 || tag == 0) {
485+
break;
443486
}
487+
reader.skipType(tag & 7);
444488
}
445489
return message;
446490
},

0 commit comments

Comments
 (0)