Skip to content

Changed post argument for task to correct naming#2015

Open
jessevz wants to merge 1 commit intodevfrom
correct-post-arguments-task
Open

Changed post argument for task to correct naming#2015
jessevz wants to merge 1 commit intodevfrom
correct-post-arguments-task

Conversation

@jessevz
Copy link
Contributor

@jessevz jessevz commented Mar 19, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to fix naming for the Task POST payload by adjusting which request attribute is used when creating a task in API v2.

Changes:

  • Introduces a local $features = $this->getFeatures() in TaskAPI::createObject().
  • Switches the preprocessor argument passed into TaskUtils::createTask() to use a feature alias-derived key.
  • Minor refactor to reuse $features when converting files.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

$data[Task::IS_CPU_TASK],
$data[Task::IS_SMALL],
$data[Task::USE_PREPROCESSOR],
$data[$features[Task::USE_PREPROCESSOR]["alias"]],
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