Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

MainAero
Copy link

Issue #, if available: #5593

Description of changes: Fixes velocity template to support set and get 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.

@yuth
Copy link
Contributor

yuth commented Oct 30, 2020

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])];
Copy link
Contributor

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

yuth added a commit to yuth/amplify-cli that referenced this pull request Oct 31, 2020
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
@yuth
Copy link
Contributor

yuth commented Oct 31, 2020

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

@yuth yuth closed this Oct 31, 2020
yuth added a commit to yuth/amplify-cli that referenced this pull request Jan 8, 2021
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
yuth added a commit to yuth/amplify-cli that referenced this pull request Jan 16, 2021
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
yuth added a commit that referenced this pull request Jan 16, 2021
…#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
@github-actions
Copy link

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 *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants