5e23c92202ceb7ef4a6dbae69824f493f4811cb2,app/grandchallenge/algorithms/migrations/0011_algorithm_image_data_20190827_1236.py,,algorithm_container_images_to_algorithms_forward,#Any#Any#,25

Before Change


            a.add_editor(ai.creator)

    for alg in Algorithm.objects.all():
        for ai in alg.algorithm_container_images.all():
            ai.assign_permissions()


class Migration(migrations.Migration):

    dependencies = [("algorithms", "0010_auto_20190827_1159")]

After Change



    Algorithm = apps.get_model("algorithms", "Algorithm")
    AlgorithmImage = apps.get_model("algorithms", "AlgorithmImage")
    Group = apps.get_model("auth", "Group")

    workstation = create_algorithm_workstation(apps)

    for ai in AlgorithmImage.objects.all():
        pk = uuid4()

        editors_group = Group.objects.create(
            name=f"algorithms_algorithm_{pk}_editors"
        )
        users_group = Group.objects.create(
            name=f"algorithms_algorithm_{pk}_users"
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: comic/grand-challenge.org
Commit Name: 5e23c92202ceb7ef4a6dbae69824f493f4811cb2
Time: 2019-10-10
Author: code@jmsmkn.com
File Name: app/grandchallenge/algorithms/migrations/0011_algorithm_image_data_20190827_1236.py
Class Name:
Method Name: algorithm_container_images_to_algorithms_forward


Project Name: comic/grand-challenge.org
Commit Name: 0e0d64a045357abe7d3c3f9a850ee9339ea0c640
Time: 2019-10-16
Author: code@jmsmkn.com
File Name: app/grandchallenge/workstations/migrations/0003_group_data_migration.py
Class Name:
Method Name: create_workstation_groups


Project Name: tryolabs/luminoth
Commit Name: 5d9571462965fc0ed3fd9e88ce395de5a68e3527
Time: 2017-11-08
Author: javirey@gmail.com
File Name: luminoth/tools/cloud/gcloud.py
Class Name:
Method Name: train