Commit 3dd79fe6 authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

Bug Fix: filter does not handle lists for 'contains' query

commit 460a2b50 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Tue Feb 02 2021 15:39:37 GMT-0600 (Central Standard Time) 

    Merge branch 'dev' into deshruch


commit 8e231394 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Tue Feb 02 2021 15:36:06 GMT-0600 (Central Standard Time) 

    Bug fix: filter does not look for list


commit c9e49c9c 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Fri Jan 29 2021 08:56:16 GMT-0600 (Central Standard Time) 

    exit 0 temporarily for known test failures


commit 4f485d75 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 17:18:08 GMT-0600 (Central Standard Time) 

    add debug prints


commit 1778b3aa 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 16:42:50 GMT-0600 (Central Standard Time) 

    remove newman


commit 6f5ba716 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 15:42:08 GMT-0600 (Central Standard Time) 

    fix path


commit 0afdd4e3 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 15:41:01 GMT-0600 (Central Standard Time) 

    fix newman


commit 703ee56b 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 15:28:59 GMT-0600 (Central Standard Time) 

    fix newman


commit deec9abb 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 14:40:53 GMT-0600 (Central Standard Time) 

    fix


commit a6377862 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 14:37:04 GMT-0600 (Central Standard Time) 

    copy newman


commit 17e43588 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 13:45:51 GMT-0600 (Central Standard Time) 

    test newman


commit e2831de6 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 12:24:41 GMT-0600 (Central Standard Time) 

    Add chmod permissions from Windows


commit e8e9ca2c 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 12:19:09 GMT-0600 (Central Standard Time) 

    clean up env vars


commit 10bb6347 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 10:20:55 GMT-0600 (Central Standard Time) 

    update the tokent type for int tests


commit e6d03ce2 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Jan 28 2021 10:19:53 GMT-0600 (Central Standard Time) 

    aws int tests
parent cbc40799
......@@ -274,9 +274,19 @@ export class AWSDynamoDbQuery implements IJournalQueryModel {
if (!!(this.queryStatement.FilterExpression)) {
this.queryStatement.FilterExpression += ' AND ';
}
this.queryStatement.FilterExpression += 'contains(#' + property + ',:' + property + ')';
var i = 0;
var propertyValue = property;
while (true){
if (this.queryStatement.ExpressionAttributeValues[':'+propertyValue] != undefined){ //already used
propertyValue = propertyValue+i; //gtag0, gtag1, gtag2....
i++;
}else {
break; //break true
}
}
this.queryStatement.FilterExpression += 'contains(#' + property + ',:' + propertyValue + ')';
this.queryStatement.ExpressionAttributeNames['#' + property] = property;
this.queryStatement.ExpressionAttributeValues[':' + property] = value;
this.queryStatement.ExpressionAttributeValues[':' + propertyValue] = value;
return this;
}
if (value === undefined) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment