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

refactor(crypto): overwrite arrays when merging milestones #3108

Merged
merged 5 commits into from
Oct 24, 2019

Conversation

dated
Copy link
Contributor

@dated dated commented Oct 22, 2019

Summary

Instead of concatenating arrays, overwrite them with the source array. In the particular case of minimumVersions we don't want to keep older values around, this PR is a solution targeted at this case and is not intended as a general solution for merging arrays - although as of now the minimumVersions array is the only array used in milestones.

Possibly closes #3105.

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@ghost
Copy link

ghost commented Oct 22, 2019

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.

If no reviewer appears after a week, a reminder will be sent out.

@ghost ghost added Complexity: Low labels Oct 22, 2019
@spkjp
Copy link
Contributor

spkjp commented Oct 23, 2019

Thanks! Can you also try to write tests for what you mentioned in #3105 and here?

The relevant tests would have to be added here:
https://github.com/ArkEcosystem/core/blob/develop/__tests__/unit/crypto/managers/config.test.ts#L8

@ghost
Copy link

ghost commented Oct 24, 2019

A contributor has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait.

Thank you for your contribution!

@spkjp spkjp merged commit bf64a68 into ArkEcosystem:develop Oct 24, 2019
@ghost
Copy link

ghost commented Oct 24, 2019

Your pull request has been merged and marked as tier 3. It will earn you $50 USD.

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