Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transcription projects break the lab tasks editor #6585

Open
eatyourgreens opened this issue May 12, 2023 · 0 comments
Open

Transcription projects break the lab tasks editor #6585

eatyourgreens opened this issue May 12, 2023 · 0 comments
Labels

Comments

@eatyourgreens
Copy link
Contributor

eatyourgreens commented May 12, 2023

Current behavior

When a project has the transcription-task flag enabled, an extra block of code is run for each new workflow task, which adds workflow.steps to the workflow. This runs for all project workflows, even if they do not use a transcription task.

if (this.canUseTask(this.props.project, "transcription-task")) {
const nextStepID = this.getNextStepID();
const newStep = [nextStepID, { taskKeys: [nextTaskID] }];
const newSteps = [...this.props.workflow.steps, newStep];
changes["steps"] = newSteps;
if ((this.props.workflow.configuration.classifier_version == null) || (this.props.workflow.configuration.classifier_version !== '2.0')) {
changes['configuration.classifier_version'] = "2.0";
}
}

This leads to weird behaviour in the task editor. If you use the 'first task' dropdown to change the first task, your changes will be ignored by the new classifier.

It also adds classifier_version: 2.0 to all workflows, even if they don't use new classifier features.

Steps to replicate

I've got a test workflow set up which works fine in PFE, but is broken in the new classifier because workflow.steps was created by the lab editor and set to an invalid value. The workflow has two questions, but the new classifier shows the second task and ignores the first question:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant