Skip to content

Variables cleanup - #4534

Merged
HyperBrain merged 5 commits into
serverless:circular-varsfrom
erikerikson:variables-cleanup
Dec 7, 2017
Merged

HyperBrain merged 5 commits into
serverless:circular-varsfrom
erikerikson:variables-cleanup

Conversation

@erikerikson

@erikerikson erikerikson commented Dec 7, 2017 •

Copy link
Copy Markdown
Contributor

What did you implement:

Refactor, simplify, correct, and add tests

  • Fixes async loading should happen once (lest inconsistencies abound) #4527, uncomments associated (now working) tests
  • Increase naming consistency
  • Improve names to be-what-they-are
  • Reduce cyclomatic complexity
  • Includes overrides population fix
  • Add variable methods documentation
  • Add more tests around significant variable patterns/risky cases
  • Fix migrated but commented-out tests

How did you implement it:

See changes.

How can we verify it:

See unit tests

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

Increase name consistency
Improve names to be-what-they-are
Reduce cyclomatic complexity
Include overrides population fix
Add variable methods documentation
Add more tests around significant variable patterns/risky cases
@HyperBrain

Copy link
Copy Markdown
Contributor

@erikerikson ESLint fails:

/home/travis/build/serverless/serverless/lib/classes/Variables.test.js
  232:1  error  Line 232 exceeds the maximum line length of 100  max-len
  247:1  error  Line 247 exceeds the maximum line length of 100  max-len
  262:1  error  Line 262 exceeds the maximum line length of 100  max-len

@erikerikson

Copy link
Copy Markdown
Contributor Author

aiee... sorry. that was sloppy. I'll rewrite that commit...

@erikerikson

Copy link
Copy Markdown
Contributor Author

okay... validated linting as well as running tests before pushing that revision.

@HyperBrain HyperBrain 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.

Nice work! I'll merge it down.

@HyperBrain
HyperBrain merged commit 2f33595 into serverless:circular-vars Dec 7, 2017
@erikerikson
erikerikson deleted the variables-cleanup branch December 7, 2017 21:30
@pmuens pmuens added this to the 1.25 milestone Dec 20, 2017
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.

3 participants