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: seedrandom dependency #424

Merged
merged 2 commits into from
Oct 17, 2019
Merged

Conversation

nickofthyme
Copy link
Collaborator

@nickofthyme nickofthyme commented Oct 17, 2019

Summary

seedRandom was introduced to facilitate visual testing with consistent "random" data.

This PR abstracts the seedFunction from the DataGenerator class to allow a randomNumberGenerator function as an option in the constructor, otherwise defaults to Math.random.

fixes #422

Checklist

  • Any consumer-facing exports were added to src/index.ts (and stories only import from ../src except for test data & storybook)
  • Unit tests were updated or added to match the most common scenarios
  • Each commit follows the convention

@nickofthyme nickofthyme requested a review from markov00 October 17, 2019 17:42
@codecov-io
Copy link

codecov-io commented Oct 17, 2019

Codecov Report

Merging #424 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #424   +/-   ##
=======================================
  Coverage   97.85%   97.85%           
=======================================
  Files          39       39           
  Lines        2896     2896           
  Branches      701      701           
=======================================
  Hits         2834     2834           
  Misses         55       55           
  Partials        7        7

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 22baa00...c185252. Read the comment docs.

Copy link
Member

@markov00 markov00 left a comment

Choose a reason for hiding this comment

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

LGTM!

@markov00 markov00 changed the title fix: seedrandom dependencey fix: seedrandom dependency Oct 17, 2019
@nickofthyme nickofthyme merged commit 2670d28 into elastic:master Oct 17, 2019
@nickofthyme nickofthyme deleted the fix/dev-deps branch October 17, 2019 18:57
markov00 pushed a commit that referenced this pull request Oct 17, 2019
## [13.5.4](v13.5.3...v13.5.4) (2019-10-17)

### Bug Fixes

* seedrandom dependency ([#424](#424)) ([2670d28](2670d28))
@markov00
Copy link
Member

🎉 This PR is included in version 13.5.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Oct 17, 2019
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants