Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–1453 unchanged (1453 lines)
1454 Schema: spec.Schema{
1455 SchemaProps: spec.SchemaProps{
1456 Type: []string{"object"},
1457 Properties: map[string]spec.Schema{
1458 "action": {
1459 SchemaProps: spec.SchemaProps{
1460 Description: "Possible enum values:\n - `\"delete\"` deletes files in the remote repository\n - `\"fixFolderMetadata\"` is a placeholder job that will eventually regenerate folder metadata files. Currently a no-op to unblock frontend development.\n - `\"migrate\"` acts like JobActionExport, then JobActionPull. It also tries to preserve the history.\n - `\"move\"` moves files in the remote repository\n - `\"pr\"` adds additional useful information to a PR, such as comments with preview links and rendered images.\n - `\"pull\"` replicates the remote branch in the local copy of the repository.\n - `\"push\"` replicates the local copy of the repository in the remote branch.",
1461 Default: "",
1462 Type: []string{"string"},
1463 Format: "",
1464 Enum: []interface{}{"delete", "fixFolderMetadata", "migrate", "move", "pr", "pull", "push"},
1465 },
1466 },
1467 "repository": {
1468 SchemaProps: spec.SchemaProps{
1469 Description: "The the repository reference (for now also in labels) This value is required, but will be popuplated from the job making the request",
1470 Type: []string{"string"},
…lines 1471–3361 unchanged (1891 lines)

After

…lines 1–1453 unchanged (1453 lines)
1454 Schema: spec.Schema{
1455 SchemaProps: spec.SchemaProps{
1456 Type: []string{"object"},
1457 Properties: map[string]spec.Schema{
1458 "action": {
1459 SchemaProps: spec.SchemaProps{
1460 Description: "Possible enum values:\n - `\"delete\"` deletes files in the remote repository\n - `\"deleteResources\"` deletes all resources managed by a repository that no longer exists or is stuck in Terminating state. This action has inverted validation: it is only allowed when the repository does not exist or has a DeletionTimestamp set.\n - `\"fixFolderMetadata\"` is a placeholder job that will eventually regenerate folder metadata files. Currently a no-op to unblock frontend development.\n - `\"migrate\"` acts like JobActionExport, then JobActionPull. It also tries to preserve the history.\n - `\"move\"` moves files in the remote repository\n - `\"pr\"` adds additional useful information to a PR, such as comments with preview links and rendered images.\n - `\"pull\"` replicates the remote branch in the local copy of the repository.\n - `\"push\"` replicates the local copy of the repository in the remote branch.\n - `\"releaseResources\"` removes ownership annotations from all resources managed by a repository that no longer exists or is stuck in Terminating state. Resources remain in Grafana but become unmanaged. This action has inverted validation: it is only allowed when the repository does not exist or has a DeletionTimestamp set.",
1461 Default: "",
1462 Type: []string{"string"},
1463 Format: "",
1464 Enum: []interface{}{"delete", "deleteResources", "fixFolderMetadata", "migrate", "move", "pr", "pull", "push", "releaseResources"},
1465 },
1466 },
1467 "repository": {
1468 SchemaProps: spec.SchemaProps{
1469 Description: "The the repository reference (for now also in labels) This value is required, but will be popuplated from the job making the request",
1470 Type: []string{"string"},
…lines 1471–3361 unchanged (1891 lines)

Before

source_file
comment "//go:build !ignore_autogenerated"
comment "// +build !ignore_autogenerated"
comment "// SPDX-License-Identifier: AGPL-3.0-only"
comment "// Code generated by openapi-gen. DO NOT EDIT."
package_clause
package "package"
package_identifier "v0alpha1"
import_declaration (+23 nodes collapsed)
function_declaration (+1536 nodes collapsed)
function_declaration (+302 nodes collapsed)
function_declaration (+189 nodes collapsed)
function_declaration (+384 nodes collapsed)
function_declaration (+560 nodes collapsed)
function_declaration (+179 nodes collapsed)
function_declaration (+511 nodes collapsed)
function_declaration (+370 nodes collapsed)
function_declaration (+692 nodes collapsed)
function_declaration (+741 nodes collapsed)
function_declaration (+469 nodes collapsed)
function_declaration (+427 nodes collapsed)
function_declaration (+353 nodes collapsed)
function_declaration (+332 nodes collapsed)
function_declaration (+521 nodes collapsed)
function_declaration (+397 nodes collapsed)
function_declaration (+521 nodes collapsed)
function_declaration (+161 nodes collapsed)
function_declaration (+268 nodes collapsed)
function_declaration (+384 nodes collapsed)
function_declaration (+320 nodes collapsed)
function_declaration (+384 nodes collapsed)
function_declaration (+189 nodes collapsed)
function_declaration (+538 nodes collapsed)
function_declaration (+484 nodes collapsed)
function_declaration (+451 nodes collapsed)
function_declaration (+523 nodes collapsed)
function_declaration (+521 nodes collapsed)
function_declaration (+478 nodes collapsed)
function_declaration (+470 nodes collapsed)
function_declaration (+941 nodes collapsed)
function_declaration
func "func"
identifier "schema_pkg_apis_provisioning_v0alpha1_JobSpec"
parameter_list
( "("
parameter_declaration
identifier "ref"
qualified_type
package_identifier "common"
. "."
type_identifier "ReferenceCallback"
) ")"
qualified_type
package_identifier "common"
. "."
type_identifier "OpenAPIDefinition"
block
{ "{"
statement_list
return_statement
return "return"
expression_list
composite_literal
qualified_type
package_identifier "common"
. "."
type_identifier "OpenAPIDefinition"
literal_value
{ "{"
keyed_element
literal_element
identifier "Schema"
: ":"
literal_element
composite_literal
qualified_type
package_identifier "spec"
. "."
type_identifier "Schema"
literal_value
{ "{"
keyed_element
literal_element
identifier "SchemaProps"
: ":"
literal_element
composite_literal
qualified_type
package_identifier "spec"
. "."
type_identifier "SchemaProps"
literal_value
{ "{"
keyed_element
literal_element
identifier "Type"
: ":"
literal_element
composite_literal
slice_type
[ "["
] "]"
type_identifier "string"
literal_value
{ "{"
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "object"
" "\""
} "}"
, ","
keyed_element
literal_element
identifier "Properties"
: ":"
literal_element
composite_literal
map_type
map "map"
[ "["
type_identifier "string"
] "]"
qualified_type
package_identifier "spec"
. "."
type_identifier "Schema"
literal_value
{ "{"
keyed_element
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "action"
" "\""
: ":"
literal_element
literal_value
{ "{"
keyed_element
literal_element
identifier "SchemaProps"
: ":"
literal_element
composite_literal
qualified_type
package_identifier "spec"
. "."
type_identifier "SchemaProps"
literal_value
{ "{"
keyed_element
literal_element
identifier "Description"
: ":"
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "Possible enum values:"
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "delete"
escape_sequence "\\\""
interpreted_string_literal_content "` deletes files in the remote repository"
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "fixFolderMetadata"
escape_sequence "\\\""
interpreted_string_literal_content "` is a placeholder job that will eventually regenerate folde"...
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "migrate"
escape_sequence "\\\""
interpreted_string_literal_content "` acts like JobActionExport, then JobActionPull. It also tri"...
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "move"
escape_sequence "\\\""
interpreted_string_literal_content "` moves files in the remote repository"
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "pr"
escape_sequence "\\\""
interpreted_string_literal_content "` adds additional useful information to a PR, such as commen"...
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "pull"
escape_sequence "\\\""
interpreted_string_literal_content "` replicates the remote branch in the local copy of the repo"...
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "push"
escape_sequence "\\\""
interpreted_string_literal_content "` replicates the local copy of the repository in the remote "...
" "\""
, ","
keyed_element
literal_element
identifier "Default"
: ":"
literal_element
interpreted_string_literal
" "\""
" "\""
, ","
keyed_element
literal_element
identifier "Type"
: ":"
literal_element
composite_literal
slice_type
[ "["
] "]"
type_identifier "string"
literal_value
{ "{"
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "string"
" "\""
} "}"
, ","
keyed_element
literal_element
identifier "Format"
: ":"
literal_element
interpreted_string_literal
" "\""
" "\""
, ","
keyed_element
literal_element
identifier "Enum"
: ":"
literal_element
composite_literal
slice_type
[ "["
] "]"
interface_type
interface "interface"
{ "{"
} "}"
literal_value
{ "{"
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "delete"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "fixFolderMetadata"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "migrate"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "move"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "pr"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "pull"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "push"
" "\""
} "}"
, ","
} "}"
, ","
} "}"
, ","
keyed_element (+63 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
} "}"
, ","
keyed_element
literal_element
identifier "Required"
: ":"
literal_element
composite_literal
slice_type
[ "["
] "]"
type_identifier "string"
literal_value
{ "{"
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "action"
" "\""
} "}"
, ","
} "}"
, ","
} "}"
, ","
keyed_element (+110 nodes collapsed)
, ","
} "}"
} "}"
function_declaration (+956 nodes collapsed)
function_declaration (+151 nodes collapsed)
function_declaration (+414 nodes collapsed)
function_declaration (+161 nodes collapsed)
function_declaration (+537 nodes collapsed)
function_declaration (+354 nodes collapsed)
function_declaration (+237 nodes collapsed)
function_declaration (+381 nodes collapsed)
function_declaration (+511 nodes collapsed)
function_declaration (+560 nodes collapsed)
function_declaration (+511 nodes collapsed)
function_declaration (+1205 nodes collapsed)
function_declaration (+1364 nodes collapsed)
function_declaration (+353 nodes collapsed)
function_declaration (+912 nodes collapsed)
function_declaration (+960 nodes collapsed)
function_declaration (+316 nodes collapsed)
function_declaration (+521 nodes collapsed)
function_declaration (+628 nodes collapsed)
function_declaration (+617 nodes collapsed)
function_declaration (+297 nodes collapsed)
function_declaration (+505 nodes collapsed)
function_declaration (+894 nodes collapsed)
function_declaration (+444 nodes collapsed)
function_declaration (+958 nodes collapsed)
function_declaration (+289 nodes collapsed)
function_declaration (+187 nodes collapsed)
function_declaration (+374 nodes collapsed)
function_declaration (+840 nodes collapsed)
function_declaration (+573 nodes collapsed)
function_declaration (+207 nodes collapsed)
function_declaration (+161 nodes collapsed)
function_declaration (+440 nodes collapsed)
function_declaration (+389 nodes collapsed)

After

source_file
comment "//go:build !ignore_autogenerated"
comment "// +build !ignore_autogenerated"
comment "// SPDX-License-Identifier: AGPL-3.0-only"
comment "// Code generated by openapi-gen. DO NOT EDIT."
package_clause
package "package"
package_identifier "v0alpha1"
import_declaration (+23 nodes collapsed)
function_declaration (+1536 nodes collapsed)
function_declaration (+302 nodes collapsed)
function_declaration (+189 nodes collapsed)
function_declaration (+384 nodes collapsed)
function_declaration (+560 nodes collapsed)
function_declaration (+179 nodes collapsed)
function_declaration (+511 nodes collapsed)
function_declaration (+370 nodes collapsed)
function_declaration (+692 nodes collapsed)
function_declaration (+741 nodes collapsed)
function_declaration (+469 nodes collapsed)
function_declaration (+427 nodes collapsed)
function_declaration (+353 nodes collapsed)
function_declaration (+332 nodes collapsed)
function_declaration (+521 nodes collapsed)
function_declaration (+397 nodes collapsed)
function_declaration (+521 nodes collapsed)
function_declaration (+161 nodes collapsed)
function_declaration (+268 nodes collapsed)
function_declaration (+384 nodes collapsed)
function_declaration (+320 nodes collapsed)
function_declaration (+384 nodes collapsed)
function_declaration (+189 nodes collapsed)
function_declaration (+538 nodes collapsed)
function_declaration (+484 nodes collapsed)
function_declaration (+451 nodes collapsed)
function_declaration (+523 nodes collapsed)
function_declaration (+521 nodes collapsed)
function_declaration (+478 nodes collapsed)
function_declaration (+470 nodes collapsed)
function_declaration (+941 nodes collapsed)
function_declaration
func "func"
identifier "schema_pkg_apis_provisioning_v0alpha1_JobSpec"
parameter_list
( "("
parameter_declaration
identifier "ref"
qualified_type
package_identifier "common"
. "."
type_identifier "ReferenceCallback"
) ")"
qualified_type
package_identifier "common"
. "."
type_identifier "OpenAPIDefinition"
block
{ "{"
statement_list
return_statement
return "return"
expression_list
composite_literal
qualified_type
package_identifier "common"
. "."
type_identifier "OpenAPIDefinition"
literal_value
{ "{"
keyed_element
literal_element
identifier "Schema"
: ":"
literal_element
composite_literal
qualified_type
package_identifier "spec"
. "."
type_identifier "Schema"
literal_value
{ "{"
keyed_element
literal_element
identifier "SchemaProps"
: ":"
literal_element
composite_literal
qualified_type
package_identifier "spec"
. "."
type_identifier "SchemaProps"
literal_value
{ "{"
keyed_element
literal_element
identifier "Type"
: ":"
literal_element
composite_literal
slice_type
[ "["
] "]"
type_identifier "string"
literal_value
{ "{"
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "object"
" "\""
} "}"
, ","
keyed_element
literal_element
identifier "Properties"
: ":"
literal_element
composite_literal
map_type
map "map"
[ "["
type_identifier "string"
] "]"
qualified_type
package_identifier "spec"
. "."
type_identifier "Schema"
literal_value
{ "{"
keyed_element
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "action"
" "\""
: ":"
literal_element
literal_value
{ "{"
keyed_element
literal_element
identifier "SchemaProps"
: ":"
literal_element
composite_literal
qualified_type
package_identifier "spec"
. "."
type_identifier "SchemaProps"
literal_value
{ "{"
keyed_element
literal_element
identifier "Description"
: ":"
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "Possible enum values:"
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "delete"
escape_sequence "\\\""
interpreted_string_literal_content "` deletes files in the remote repository"
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "deleteResources"
escape_sequence "\\\""
interpreted_string_literal_content "` deletes all resources managed by a repository that no long"...
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "fixFolderMetadata"
escape_sequence "\\\""
interpreted_string_literal_content "` is a placeholder job that will eventually regenerate folde"...
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "migrate"
escape_sequence "\\\""
interpreted_string_literal_content "` acts like JobActionExport, then JobActionPull. It also tri"...
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "move"
escape_sequence "\\\""
interpreted_string_literal_content "` moves files in the remote repository"
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "pr"
escape_sequence "\\\""
interpreted_string_literal_content "` adds additional useful information to a PR, such as commen"...
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "pull"
escape_sequence "\\\""
interpreted_string_literal_content "` replicates the remote branch in the local copy of the repo"...
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "push"
escape_sequence "\\\""
interpreted_string_literal_content "` replicates the local copy of the repository in the remote "...
escape_sequence "\\n"
interpreted_string_literal_content " - `"
escape_sequence "\\\""
interpreted_string_literal_content "releaseResources"
escape_sequence "\\\""
interpreted_string_literal_content "` removes ownership annotations from all resources managed b"...
" "\""
, ","
keyed_element
literal_element
identifier "Default"
: ":"
literal_element
interpreted_string_literal
" "\""
" "\""
, ","
keyed_element
literal_element
identifier "Type"
: ":"
literal_element
composite_literal
slice_type
[ "["
] "]"
type_identifier "string"
literal_value
{ "{"
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "string"
" "\""
} "}"
, ","
keyed_element
literal_element
identifier "Format"
: ":"
literal_element
interpreted_string_literal
" "\""
" "\""
, ","
keyed_element
literal_element
identifier "Enum"
: ":"
literal_element
composite_literal
slice_type
[ "["
] "]"
interface_type
interface "interface"
{ "{"
} "}"
literal_value
{ "{"
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "delete"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "deleteResources"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "fixFolderMetadata"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "migrate"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "move"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "pr"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "pull"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "push"
" "\""
, ","
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "releaseResources"
" "\""
} "}"
, ","
} "}"
, ","
} "}"
, ","
keyed_element (+63 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
keyed_element (+58 nodes collapsed)
, ","
} "}"
, ","
keyed_element
literal_element
identifier "Required"
: ":"
literal_element
composite_literal
slice_type
[ "["
] "]"
type_identifier "string"
literal_value
{ "{"
literal_element
interpreted_string_literal
" "\""
interpreted_string_literal_content "action"
" "\""
} "}"
, ","
} "}"
, ","
} "}"
, ","
keyed_element (+110 nodes collapsed)
, ","
} "}"
} "}"
function_declaration (+956 nodes collapsed)
function_declaration (+151 nodes collapsed)
function_declaration (+414 nodes collapsed)
function_declaration (+161 nodes collapsed)
function_declaration (+537 nodes collapsed)
function_declaration (+354 nodes collapsed)
function_declaration (+237 nodes collapsed)
function_declaration (+381 nodes collapsed)
function_declaration (+511 nodes collapsed)
function_declaration (+560 nodes collapsed)
function_declaration (+511 nodes collapsed)
function_declaration (+1205 nodes collapsed)
function_declaration (+1364 nodes collapsed)
function_declaration (+353 nodes collapsed)
function_declaration (+912 nodes collapsed)
function_declaration (+960 nodes collapsed)
function_declaration (+316 nodes collapsed)
function_declaration (+521 nodes collapsed)
function_declaration (+628 nodes collapsed)
function_declaration (+617 nodes collapsed)
function_declaration (+297 nodes collapsed)
function_declaration (+505 nodes collapsed)
function_declaration (+894 nodes collapsed)
function_declaration (+444 nodes collapsed)
function_declaration (+958 nodes collapsed)
function_declaration (+289 nodes collapsed)
function_declaration (+187 nodes collapsed)
function_declaration (+374 nodes collapsed)
function_declaration (+840 nodes collapsed)
function_declaration (+573 nodes collapsed)
function_declaration (+207 nodes collapsed)
function_declaration (+161 nodes collapsed)
function_declaration (+440 nodes collapsed)
function_declaration (+389 nodes collapsed)