Skip to content

Added patching to preprocessor of task - #2466

Open
jessevz wants to merge 4 commits into
masterfrom
patch-preprocessor
Open

Added patching to preprocessor of task#2466
jessevz wants to merge 4 commits into
masterfrom
patch-preprocessor

Conversation

@jessevz

@jessevz jessevz commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

resolves backend part for #2413

@jessevz
jessevz requested review from s3inlc and a lite review from Copilot August 27, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds APIv2 support for updating a task’s preprocessorCommand (including purging/reset behavior) to address the backend portion of issue #2413, and extends the API test suite to cover this update path.

Changes:

  • Introduces TaskUtils::changePreprocessorCmd() to validate and persist preprocessorCommand changes while purging the task.
  • Wires Task::PREPROCESSOR_COMMAND into TaskAPI’s update handlers to allow PATCH/PUT updates via APIv2.
  • Adds APIv2 tests verifying successful updates and blacklist character rejection for preprocessorCommand.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/inc/utils/TaskUtils.php Adds a helper to update and purge task state when preprocessorCommand changes.
src/inc/apiv2/model/TaskAPI.php Enables APIv2 updates for preprocessorCommand via update handlers.
ci/apiv2/test_task.py Adds tests covering update success and blacklist validation for preprocessorCommand.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/inc/utils/TaskUtils.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants