New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(amplify-velocity-template): support 'get' and 'set' of array vars #5741
Conversation
2 of the unit tests are failing. Could you investigate those |
}; | ||
return baseRef; | ||
if (id === 'get' && !baseRef[id]) { | ||
return baseRef[this.getLiteral(property.args[0])]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason in removing the getter? Referencing this pr: https://github.com/shepherdwind/velocity.js/pull/133/files
The implementation of set and get methods of an array in velocity is not working like in the real environment. fix is based on shepherdwind/velocity.js#133 fix aws-amplify#5741
Thank you for the PR. The upstream has a fix in shepherdwind/velocity.js#133. closing this in favor of that upstream fix that is merged in #5747 |
The implementation of set and get methods of an array in velocity is not working like in the real environment. fix is based on shepherdwind/velocity.js#133 fix aws-amplify#5741
The implementation of set and get methods of an array in velocity is not working like in the real environment. fix is based on shepherdwind/velocity.js#133 fix aws-amplify#5741
…#5747) The implementation of set and get methods of an array in velocity is not working like in the real environment. fix is based on shepherdwind/velocity.js#133 fix #5741
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Issue #, if available: #5593
Description of changes: Fixes velocity template to support
set
andget
methods of array variables.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.