-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add option to update all the datasets #133
Conversation
72d9319
to
0be2a16
Compare
Hey @vitorkusiaki thanks for this ;) This is getting the same error as #132 waiting the restarted build to take a closer look into it. But as @cuducos said it doesn't seem related to the PR itself. |
@jtemporal @cuducos hello! |
@vitorkusiaki, first some pending reviews need to be addressed on #132 before merge this one. |
Hi! @vitorkusiaki liked this a lot! Thank you for this PR! As @lipemorais said earlier, I left a code review and am waiting for the changes on #132 😉 Once they are done we'll need to update your code, but I believe everything is okay here. I tested this in two stages:
|
tests/unit/test_datasets.py
Outdated
|
||
@patch('os.path.exists') | ||
@patch('serenata_toolbox.datasets.Datasets') | ||
def test_fetch_latest_backup_with_force_all(self, datasets, os_path_exists): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this test also be added to journey tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jtemporal since the dependencies are all mocked I believe that it's ok have this test under unit test folder. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jtemporal since the dependencies are all mocked I believe that it's ok have this test under unit test folder. 👍
hey @vitorkusiaki good news! #132 was merged, why don't you go ahead and fix the conflicts here so we can merge this? This will be awesome and will also free okfn-brasil/serenata-de-amor#273 to be merged! Let me know if I can do anything to help out 😉 |
0be2a16
to
b0b9dc7
Compare
Hello @jtemporal @lipemorais @cuducos! Sorry it took so long, but I managed to update this PR. Take a look at the last commit and tell me what you think. The travis build is still failling, but the test that failed is from another file that it's not on this PR scope. Looking forward for your feedback! Thanks |
Hey, @vitorkusiaki! There are some conflicts here with master branch. Could you fix this so we will be able to merge. |
User can download everything if he wants, instead of only the missing files.
The variable used in the for statement was f
29c8271
to
ba8250d
Compare
It was a version conflict. It is fixed, @lipemorais. Thanks, hadn't noticed. |
This PR contains commits from #132, so please merge #132 first.
If the user wants to download all the datasets, even if they are already downloaded, he can pass an option
--all
to the command./setup
. Otherwise, only the missing datasets will be downloaded.