-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Conversation
…beling task works
website/src/pages/tasks/random.tsx
Outdated
useEffect(() => { | ||
if (tasks.length == 0) { | ||
if (tasks.length === 0) { | ||
reset(); | ||
} | ||
}, [tasks]); | ||
}, [tasks, reset]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this useEffect necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
purged!
Note: the failing end2end tests is expected with the random update. #623 requests a fix for this. |
I will merge with the hope of having a fix for #623 soon. |
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.