Ejemplo n.º 1
0
    def _fetch_files_metadata(client, paths):
        """Return metadata for files from paths."""
        files = {}

        if is_project_unsupported(client):
            return files

        migrate(client)

        for _, dataset in client.datasets.items():
            for file_ in dataset.files:
                path = file_.path
                if path in paths:
                    files[path] = file_
        return files
Ejemplo n.º 2
0
def migrate_project(client, progress_callback=None, commit_message=None):
    """Migrate all project's entities."""
    return migrate(client=client, progress_callback=progress_callback)
Ejemplo n.º 3
0
def migrate_project_no_commit(client, progress_callback=None):
    """Migrate all project's entities but do not commit changes."""
    return migrate(client=client, progress_callback=progress_callback)
Ejemplo n.º 4
0
 def _migrate_project(self, client):
     if is_project_unsupported(client):
         return
     migrate(client)