5b63fe7de768982584d32e562985d38183196581,polyaxon/api/experiments/views.py,ProjectExperimentListView,perform_create,#ProjectExperimentListView#Any#,164

Before Change



    def perform_create(self, serializer):
        ttl = None
        if RedisTTL.TTL_KEY in self.request.data:
            try:
                ttl = RedisTTL.validate_ttl(self.request.data[RedisTTL.TTL_KEY])
            except ValueError:
                raise ValidationError("ttl must be an integer.")
        instance = serializer.save(user=self.request.user,
                                   project=get_permissible_project(view=self))

After Change


        return super().filter_queryset(queryset=queryset)

    def perform_create(self, serializer):
        ttl = self.request.data.get(RedisTTL.TTL_KEY)
        if ttl:
            try:
                ttl = RedisTTL.validate_ttl(ttl)
            except ValueError:
                raise ValidationError("ttl must be an integer.")
        instance = serializer.save(user=self.request.user,
                                   project=get_permissible_project(view=self))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 11

Instances


Project Name: polyaxon/polyaxon
Commit Name: 5b63fe7de768982584d32e562985d38183196581
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/api/experiments/views.py
Class Name: ProjectExperimentListView
Method Name: perform_create


Project Name: polyaxon/polyaxon
Commit Name: 5b63fe7de768982584d32e562985d38183196581
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/api/build_jobs/views.py
Class Name: ProjectBuildListView
Method Name: perform_create


Project Name: polyaxon/polyaxon
Commit Name: 5b63fe7de768982584d32e562985d38183196581
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/api/jobs/views.py
Class Name: ProjectJobListView
Method Name: perform_create


Project Name: polyaxon/polyaxon
Commit Name: 5b63fe7de768982584d32e562985d38183196581
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/api/jobs/views.py
Class Name: JobCloneView
Method Name: post


Project Name: polyaxon/polyaxon
Commit Name: 5b63fe7de768982584d32e562985d38183196581
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/api/experiments/views.py
Class Name: ExperimentCloneView
Method Name: post