Skip to content

Another follow-up on async vars - #3709

Merged
pmuens merged 3 commits into
serverless:masterfrom
sammarks:async-vars-follow-up-follow-up
Jun 6, 2017
Merged

pmuens merged 3 commits into
serverless:masterfrom
sammarks:async-vars-follow-up-follow-up

Conversation

@sammarks

@sammarks sammarks commented May 31, 2017 •

Copy link
Copy Markdown
Contributor

What did you implement:

This is another take on #3560. See that PR for original comments.

How did you implement it:

I took the code changes from #3560, followed the review comments, and then happened upon the solution, which happens to be this line of code:

singleValueToPopulate = singleValueToPopulate.then(valueToPopulate => {

(key point being we're setting singleValueToPopulate to itself with the added .then() block).

How can we verify it:

Test cases not passing in #3560 are now passing with the base changes.

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

@pmuens

pmuens commented May 31, 2017

Copy link
Copy Markdown
Contributor

Gorgeous @sammarks 🎉

Thanks for that! I'll look into it today! 💯

@pmuens
pmuens self-requested a review May 31, 2017 06:32
@pmuens pmuens added this to the 1.15 milestone May 31, 2017

@pmuens pmuens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Thanks for fixing @sammarks 💪

I tested it with the following configs and everything works as expected:

GTM from my side :shipit:

@eahefnawy could you take another look (since you wrote the code) and merge if appropriate.

@pmuens pmuens changed the title Another follow-up on async vars. Another follow-up on async vars May 31, 2017

@pmuens pmuens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just did another, final test today.

Works like a charm. Thanks for fixing this @sammarks 👍 💪

Merging :shipit:

@pmuens
pmuens merged commit 20b56b5 into serverless:master Jun 6, 2017
@sammarks
sammarks deleted the async-vars-follow-up-follow-up branch June 6, 2017 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants