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: prevent overwriting config.projectPackages if already set #428

Merged
merged 3 commits into from
Feb 7, 2019

Conversation

fractalwrench
Copy link
Contributor

Goal

config.projectPackages is overwritten via the Client constructor, as reported in #426. This is confusing when setting the value via the Configuration class and inconsistent with the behaviour of other fields. We should respect the value that users have set, and otherwise use a sensible default.

Changeset

Added a null check when setting the projectPackages in the Client constructor.

Tests

Added unit tests to verify that a default project package is set, and that a custom project package is not overwritten.

@fractalwrench fractalwrench merged commit 4d06b25 into master Feb 7, 2019
@fractalwrench fractalwrench deleted the project-packages-fix branch February 7, 2019 09:29
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