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

Update the web to match the backends new API #622

Merged
merged 5 commits into from
Jan 11, 2023
Merged

Conversation

fozziethebeat
Copy link
Collaborator

Closes #616

The backend now expects a task_id field when calling /api/v1/interaction which matches the backend's task ID. The backend currently only requires this for labeling tasks but soon will require it for all tasks. This forwards that for all interaction types.

Also, this fixes the labeling tasks by ensuring that sliderValues is always set properly.

@fozziethebeat fozziethebeat marked this pull request as ready for review January 11, 2023 10:47
Comment on lines 11 to 15
useEffect(() => {
if (tasks.length == 0) {
if (tasks.length === 0) {
reset();
}
}, [tasks]);
}, [tasks, reset]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this useEffect necessary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

purged!

@fozziethebeat
Copy link
Collaborator Author

Note: the failing end2end tests is expected with the random update. #623 requests a fix for this.

@AbdBarho AbdBarho merged commit e2248b5 into main Jan 11, 2023
@AbdBarho AbdBarho deleted the 616_web_forwards_task_id branch January 11, 2023 11:32
@AbdBarho
Copy link
Collaborator

I will merge with the hope of having a fix for #623 soon.

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

Successfully merging this pull request may close these issues.

Forward backend task IDs from web to backend during interactions
2 participants