remove "delete_file" step as it gets triggered incorrectly

This leaves the handler in so we don't crash when loading a project
that already has it in the task list.
pull/1160/head
Senko Rasic 3 years ago
parent 86e7691f3f
commit fe7392f903

@ -109,34 +109,6 @@ def step_save_file_definition():
}
def step_delete_file_definition():
return {
"type": "object",
"properties": {
"type": {
"const": "delete_file",
"description": dev_step_type_description()
},
"delete_file": {
"type": "object",
"description": "A file that should be deleted. This should only be used for existing files that should get removed from the project.",
"properties": {
"name": {
"type": "string",
"description": "Name of the existing file that needs to be deleted."
},
"path": {
"type": "string",
"description": "Full path of the file with the file name that needs to be deleted."
}
},
"required": ["name", "path"]
}
},
"required": ["type", "delete_file"]
}
def step_human_intervention_definition():
return {
"type": "object",
@ -303,7 +275,6 @@ IMPLEMENT_TASK = {
"oneOf": [
step_command_definition(),
step_save_file_definition(),
step_delete_file_definition(),
step_human_intervention_definition(),
]
}

@ -2,7 +2,6 @@
The current task has been split into multiple steps, and each step is one of the following:
* `command` - command to run
* `save_file` - create or update a file
* `delete_file` - delete a file that's no longer needed
* `human_intervention` - if the human needs to do something
{% if step_index > 0 %}Here is the list of steps that have been executed:

@ -4,7 +4,6 @@ Each step can be either:
* `command` - command to run (must be able to run on a {{ os }} machine, assume current working directory is project root folder)
* `save_file` - create or update ONE file
* `delete_file` - delete a file that is no longer used
* `human_intervention` - if you need the human to do something, use this type of step and explain in details what you want the human to do. NEVER use `human_intervention` for testing, as testing will be done separately by a dedicated QA after all the steps are done.
**IMPORTANT**: In `code_change_description` field of `save_file` step, you must provide empty string. If multiple changes are required for same file, you must provide single `save_file` step for each file.
@ -30,13 +29,6 @@ Examples:
"code_change_description": "",
},
},
{
"type": "delete_file",
"delete_file": {
"name": "some_old_unused_file.js",
"path": "some/path/to/some_old_unused_file.js",
}
}
{
"type": "command",
"command": {

Loading…
Cancel
Save