{
 "actions": [],
 "creation": "2022-01-28 20:07:29.425024",
 "pagetype": "PageType",
 "editable_grid": 1,
 "engine": "InnoDB",
 "field_order": [
  "status",
  "column_break_2",
  "group",
  "team",
  "scheduled_time",
  "section_break_xefr",
  "user_addressable_failure",
  "retry_count",
  "column_break_rpow",
  "manually_failed",
  "error_key",
  "section_break_6",
  "build_start",
  "build_duration",
  "pending_start",
  "build_directory",
  "last_updated",
  "column_break_7",
  "build_end",
  "pending_duration",
  "pending_end",
  "build_server",
  "no_cache",
  "section_break_11",
  "docker_image",
  "docker_image_id",
  "column_break_13",
  "docker_image_repository",
  "docker_image_tag",
  "feature_flags_section",
  "is_redisearch_enabled",
  "redis_cache_size",
  "use_app_cache",
  "compress_app_cache",
  "column_break_tkdd",
  "merge_all_rq_queues",
  "merge_default_and_short_rq_queues",
  "use_rq_workerpool",
  "gunicorn_threads_per_worker",
  "parameters_tab",
  "section_break_4",
  "apps",
  "dependencies",
  "packages",
  "environment_variables",
  "output_tab",
  "section_break_9",
  "build_error",
  "build_steps",
  "build_output",
  "ssh_tab",
  "ssh_section",
  "user_public_key",
  "user_private_key",
  "user_certificate"
 ],
 "fields": [
  {
   "fieldname": "group",
   "fieldtype": "Link",
   "in_list_view": 1,
   "label": "Release Group",
   "options": "Release Group",
   "reqd": 1,
   "search_index": 1,
   "set_only_once": 1
  },
  {
   "default": "Draft",
   "fieldname": "status",
   "fieldtype": "Select",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Status",
   "options": "Draft\nScheduled\nPending\nPreparing\nRunning\nSuccess\nFailure",
   "read_only": 1,
   "search_index": 1
  },
  {
   "fieldname": "section_break_4",
   "fieldtype": "Section Break",
   "hide_border": 1
  },
  {
   "fieldname": "build_directory",
   "fieldtype": "Data",
   "label": "Build Directory",
   "read_only": 1
  },
  {
   "default": "0",
   "depends_on": "eval: pg.status !== \"Draft\"",
   "fieldname": "build_duration",
   "fieldtype": "Time",
   "label": "Build Duration",
   "read_only": 1
  },
  {
   "fieldname": "build_start",
   "fieldtype": "Datetime",
   "label": "Build Start",
   "read_only": 1
  },
  {
   "fieldname": "build_end",
   "fieldtype": "Datetime",
   "label": "Build End",
   "read_only": 1
  },
  {
   "fieldname": "section_break_9",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "build_steps",
   "fieldtype": "Table",
   "label": "Build Steps",
   "options": "Deploy Candidate Build Step",
   "read_only": 1
  },
  {
   "fieldname": "build_output",
   "fieldtype": "Code",
   "label": "Build Output",
   "read_only": 1
  },
  {
   "fieldname": "docker_image_id",
   "fieldtype": "Data",
   "label": "Docker Image ID",
   "read_only": 1
  },
  {
   "fieldname": "column_break_7",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "docker_image_tag",
   "fieldtype": "Data",
   "label": "Docker Image Tag",
   "read_only": 1
  },
  {
   "fieldname": "section_break_11",
   "fieldtype": "Section Break",
   "label": "Docker Config"
  },
  {
   "fieldname": "column_break_13",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "column_break_2",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "section_break_6",
   "fieldtype": "Section Break",
   "label": "Build Meta"
  },
  {
   "fieldname": "apps",
   "fieldtype": "Table",
   "label": "Apps",
   "options": "Deploy Candidate App",
   "read_only": 1,
   "reqd": 1
  },
  {
   "fieldname": "docker_image_repository",
   "fieldtype": "Data",
   "label": "Docker Image Repository",
   "read_only": 1
  },
  {
   "fieldname": "docker_image",
   "fieldtype": "Data",
   "label": "Docker Image",
   "read_only": 1
  },
  {
   "fetch_from": "group.team",
   "fieldname": "team",
   "fieldtype": "Link",
   "label": "Team",
   "options": "Team",
   "read_only": 1,
   "reqd": 1
  },
  {
   "fieldname": "dependencies",
   "fieldtype": "Table",
   "label": "Dependencies",
   "options": "Deploy Candidate Dependency",
   "read_only": 1,
   "reqd": 1
  },
  {
   "fieldname": "ssh_section",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "user_public_key",
   "fieldtype": "Code",
   "label": "User Public Key",
   "read_only": 1
  },
  {
   "fieldname": "user_private_key",
   "fieldtype": "Code",
   "label": "User Private Key",
   "read_only": 1
  },
  {
   "fieldname": "user_certificate",
   "fieldtype": "Code",
   "label": "User Certificate",
   "read_only": 1
  },
  {
   "fieldname": "feature_flags_section",
   "fieldtype": "Section Break",
   "label": "Feature Flags"
  },
  {
   "default": "0",
   "fetch_from": "group.is_redisearch_enabled",
   "fieldname": "is_redisearch_enabled",
   "fieldtype": "Check",
   "label": "Is RediSearch Enabled"
  },
  {
   "fieldname": "packages",
   "fieldtype": "Table",
   "label": "Packages",
   "options": "Deploy Candidate Package",
   "read_only": 1
  },
  {
   "fieldname": "column_break_tkdd",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "environment_variables",
   "fieldtype": "Table",
   "label": "Environment Variables",
   "options": "Deploy Candidate Variable",
   "read_only": 1
  },
  {
   "default": "0",
   "fetch_from": "group.merge_all_rq_queues",
   "fieldname": "merge_all_rq_queues",
   "fieldtype": "Check",
   "label": "Merge All RQ Queues",
   "read_only": 1
  },
  {
   "default": "0",
   "fetch_from": "group.merge_default_and_short_rq_queues",
   "fieldname": "merge_default_and_short_rq_queues",
   "fieldtype": "Check",
   "label": "Merge Default and Short RQ Queues",
   "read_only": 1
  },
  {
   "depends_on": "eval: pg.scheduled_time",
   "fieldname": "scheduled_time",
   "fieldtype": "Datetime",
   "label": "Scheduled Time",
   "read_only": 1
  },
  {
   "fetch_from": "group.gunicorn_threads_per_worker",
   "fieldname": "gunicorn_threads_per_worker",
   "fieldtype": "Int",
   "label": "Gunicorn Threads Per Worker",
   "read_only": 1
  },
  {
   "default": "0",
   "fetch_from": "group.use_rq_workerpool",
   "fieldname": "use_rq_workerpool",
   "fieldtype": "Check",
   "label": "Use RQ WorkerPool"
  },
  {
   "default": "0",
   "fetch_from": "group.use_app_cache",
   "fieldname": "use_app_cache",
   "fieldtype": "Check",
   "label": "Use App Cache"
  },
  {
   "default": "0",
   "fetch_from": "group.compress_app_cache",
   "fieldname": "compress_app_cache",
   "fieldtype": "Check",
   "label": "Compress App Cache"
  },
  {
   "description": "Used when parsing build output.",
   "fieldname": "last_updated",
   "fieldtype": "Datetime",
   "hidden": 1,
   "label": "Last Updated",
   "read_only": 1
  },
  {
   "fieldname": "parameters_tab",
   "fieldtype": "Tab Break",
   "label": "Apps & Deps"
  },
  {
   "fieldname": "output_tab",
   "fieldtype": "Tab Break",
   "label": "Output"
  },
  {
   "fieldname": "ssh_tab",
   "fieldtype": "Tab Break",
   "label": "SSH"
  },
  {
   "depends_on": "eval:pg.build_error",
   "fieldname": "build_error",
   "fieldtype": "Code",
   "label": "Build Error",
   "read_only": 1
  },
  {
   "default": "0",
   "depends_on": "eval: pg.user_addressable_failure",
   "description": "Set if the build failure is user addressable, i.e. the cause of failure is not FC.",
   "fieldname": "user_addressable_failure",
   "fieldtype": "Check",
   "label": "User Addressable Failure",
   "read_only": 1
  },
  {
   "default": "0",
   "depends_on": "eval: pg.manually_failed",
   "description": "Set if the build was manually failed or cancelled.",
   "fieldname": "manually_failed",
   "fieldtype": "Check",
   "label": "Manually Failed",
   "read_only": 1
  },
  {
   "default": "0",
   "depends_on": "eval: pg.status !== \"Draft\" && pg.status !== \"Pending\"",
   "description": "Time spent by the build in queue, i.e. in status Pending.",
   "fieldname": "pending_duration",
   "fieldtype": "Time",
   "label": "Pending Duration",
   "read_only": 1
  },
  {
   "fieldname": "section_break_xefr",
   "fieldtype": "Section Break",
   "label": "Failure"
  },
  {
   "fieldname": "column_break_rpow",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "pending_start",
   "fieldtype": "Datetime",
   "hidden": 1,
   "label": "Pending Start",
   "read_only": 1
  },
  {
   "fieldname": "pending_end",
   "fieldtype": "Datetime",
   "hidden": 1,
   "label": "Pending End",
   "read_only": 1
  },
  {
   "default": "0",
   "depends_on": "eval: pg.retry_count",
   "description": "Under certain failure conditions, a build will be retried.",
   "fieldname": "retry_count",
   "fieldtype": "Int",
   "label": "Retry Count",
   "read_only": 1
  },
  {
   "depends_on": "eval:pg.build_server",
   "fieldname": "build_server",
   "fieldtype": "Link",
   "label": "Build Server",
   "options": "Server",
   "read_only": 1
  },
  {
   "depends_on": "eval: pg.user_addressable_failure",
   "description": "Set if Failure is User Addressable. Used to prevent subsequent builds unless a valid change has been made.",
   "fieldname": "error_key",
   "fieldtype": "Data",
   "label": "Error Key"
  },
  {
   "default": "0",
   "depends_on": "eval: pg.no_cache",
   "description": "Set if the Docker build was run with the <code>--no-cache</code> flag.",
   "fieldname": "no_cache",
   "fieldtype": "Check",
   "label": "No Cache"
  },
  {
   "default": "512",
   "fetch_from": "group.redis_cache_size",
   "fieldname": "redis_cache_size",
   "fieldtype": "Int",
   "label": "Redis Cache Size (MB)"
  }
 ],
 "links": [
  {
   "link_pagetype": "Agent Job",
   "link_fieldname": "reference_name"
  },
  {
   "link_pagetype": "Error Log",
   "link_fieldname": "reference_name"
  },
  {
   "link_pagetype": "Jcloud Notification",
   "link_fieldname": "document_name"
  }
 ],
 "modified": "2024-12-27 11:59:09.917364",
 "modified_by": "Administrator",
 "module": "Jcloud",
 "name": "Deploy Candidate",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "System Manager",
   "share": 1,
   "write": 1
  },
  {
   "create": 1,
   "read": 1,
   "role": "Jcloud Admin",
   "write": 1
  },
  {
   "create": 1,
   "read": 1,
   "role": "Jcloud Member",
   "write": 1
  }
 ],
 "sort_field": "modified",
 "sort_order": "DESC",
 "states": [],
 "title_field": "group",
 "track_changes": 1
}