[SYNPY-1872] Deprecate migrate functions#1427
Conversation
There was a problem hiding this comment.
But I noticed that there's minor inconsistentcy if you check class StorageLocationConfigurableSynchronousProtocol(Protocol):
def index_files_for_migration(
self,
dest_storage_location_id: int, # <-- typed as int
...
this is marked as integer but here it seems like this is a string? And also, the example in the protocol also uses integer instead of string.
Was this comment meant for a different PR? |
|
@andrewelamb It was meant for this PR here! I saw that you have the following example: as the new example. But when I checked Also here Should we update the example docstring in your PR to use integer? |
thomasyu888
left a comment
There was a problem hiding this comment.
🔥 LGTM and I defer to @danlu1 and @BryanFauble for a final review here.
Dan contributed the new migration features
danlu1
left a comment
There was a problem hiding this comment.
Thanks for working on this. Just a few comments.
| | ||
|
|
||
| Use the index_files_for_migration method on the Project or Folder models | ||
| from synapseclient.models instead. The new method is called on the model |
There was a problem hiding this comment.
| from synapseclient.models instead. The new method is called on the model | |
| from synapseclient.models.services instead. The new method is called on the model |
Co-authored-by: Dan Lu <90745557+danlu1@users.noreply.github.com>
Co-authored-by: Dan Lu <90745557+danlu1@users.noreply.github.com>
Co-authored-by: Dan Lu <90745557+danlu1@users.noreply.github.com>
Problem:
The migrate functions/class in synapseutils needed to be deprecated.
Solution:
These were deprecated, pointing to the new functions/class they should be using.