Skip to content

Changed post argument for task to correct naming#2015

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

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"]],
@jessevz jessevz closed this Mar 23, 2026
@jessevz jessevz deleted the correct-post-arguments-task branch March 23, 2026 08:03
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