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

remote config validation #3628

Merged
merged 8 commits into from
Apr 15, 2020
Merged

remote config validation #3628

merged 8 commits into from
Apr 15, 2020

Conversation

karajan1001
Copy link
Contributor

Fixes #3552

  • ❗ I have followed the Contributing to DVC checklist.

  • πŸ“– If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. If the CLI API is changed, I have updated tab completion scripts.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

@karajan1001 karajan1001 reopened this Apr 12, 2020
tests/func/test_config.py Outdated Show resolved Hide resolved
dvc/config.py Outdated Show resolved Hide resolved
tests/func/test_remote.py Outdated Show resolved Hide resolved
Copy link
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

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

Hi @karajan1001 !

Thank you so much for contributing this PR! πŸ™ Please see a few comments above.

sloving validation problem in config merging from different levels.
Only those config in lower levels can affect the validation process.
dvc/config.py Show resolved Hide resolved
tests/func/test_remote.py Outdated Show resolved Hide resolved
karajan1001 and others added 2 commits April 15, 2020 21:16
1. Duplicate load current level of config
2. rewrite test to pytest style
@efiop efiop merged commit d3d471c into iterative:master Apr 15, 2020
@efiop
Copy link
Contributor

efiop commented Apr 15, 2020

Thanks @karajan1001 ! πŸ™

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.

remote modify: validate config options before saving
4 participants