-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Park
committed
Dec 23, 2020
1 parent
c67cad2
commit a311999
Showing
2 changed files
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -826,8 +826,7 @@ def migrate(self, target, follow=True, **kwargs): | |
if follow: | ||
# Multiple migration objects returned | ||
if "data" in migration: | ||
for mig in migration: | ||
mig.follow() | ||
self.activity(follow=True) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
davecap
Member
|
||
else: | ||
migration.follow() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I think it might be worth transitioning to
self.activity(follow=True)
in both cases - it makes it simpler to determine whatfollow
does. These two calls are not equivalent, although the use case (mostly) is.migration.follow() is to wait until this migration + commit is finished
dataset.activity() is for any all activity on the dataset
If we do want to monitor only the migration+commits that THIS call fired off, then we should revert this commit to the previous way you had it