You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit abd72ae
Browse filesBrowse the repository at this point in the historyBrowse files
ron
committed
workaround for integration_test running 2x flutter/flutter#67090. There is a LOT of extra work being done because
of this, all useless. Luckily, only current impact is to protect writing cePEQSummary so it does not appear twice in dynamo.
Copy file name to clipboardExpand all lines: ops/aws/lambdaHandlers/awsDynamo.js
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1082,9 +1082,34 @@ async function updateColProj( update ) {
1082
1082
1083
1083
1084
1084
1085
-
// Overwrites any existing record
1085
+
// Overwrites any existing record by ID.
1086
+
// XXX Due to https://github.com/flutter/flutter/issues/67090, if repo exists already but with different id, don't write.
1086
1087
asyncfunctionputPSum(psum){
1088
+
1089
+
// XXX START workaround: Remove this once issue 67090 is resolved
1087
1090
constparams={
1091
+
TableName: 'CEPEQSummary',
1092
+
FilterExpression: 'GHRepo = :ghr',
1093
+
ExpressionAttributeValues: {":ghr": psum.ghRepo},
1094
+
Limit: 99,
1095
+
};
1096
+
letgPromise=paginatedScan(params);
1097
+
letskip=false;
1098
+
awaitgPromise.then((ps)=>{
1099
+
for(constepsofps){
1100
+
if(eps.PEQSummaryId!=psum.id){
1101
+
// Oops. We have an existing summary for repo with a different ID. Don't write this new, second copy.
0 commit comments