77c70bcb7c01ed1f320badba4e0001c88edb0bec,deploy/create_project.py,,setup_project,#,799

Before Change


      // only record failed step if project was undeployed, an update can always
      // start from the beginning
      if not deployed:
        field_generation.get_generated_fields_ref(
            project_id, config.root)["failed_step"] = step_num
        field_generation.rewrite_generated_fields_back(project_yaml,
                                                       config.root)

After Change


  project_generated_fields = config.generated_fields["projects"].get(project_id)
  if not project_generated_fields:
    project_generated_fields = {}
    config.generated_fields["projects"][project_id] = project_generated_fields
    deployed = False
  else:
    deployed = "failed_step" not in project_generated_fields
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: GoogleCloudPlatform/healthcare
Commit Name: 77c70bcb7c01ed1f320badba4e0001c88edb0bec
Time: 2019-07-19
Author: umairidris@google.com
File Name: deploy/create_project.py
Class Name:
Method Name: setup_project


Project Name: GoogleCloudPlatform/healthcare
Commit Name: 77c70bcb7c01ed1f320badba4e0001c88edb0bec
Time: 2019-07-19
Author: umairidris@google.com
File Name: deploy/create_project.py
Class Name:
Method Name: add_project_generated_fields


Project Name: GoogleCloudPlatform/healthcare
Commit Name: 77c70bcb7c01ed1f320badba4e0001c88edb0bec
Time: 2019-07-19
Author: umairidris@google.com
File Name: deploy/create_project.py
Class Name:
Method Name: create_new_project