You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Ideally, after fetching OSM labels, the users should be able to proceed to the next step; however, sometimes it gets buggy, and this button gets disabled.
// Confirm that all of the training areas has a geometry
consthasAOIsWithGeometry=
formData.trainingAreas.length>0&&
formData.trainingAreas.filter(
(aoi: TTrainingAreaFeature)=>aoi.geometry===null,
).length===0;
Two things could be the reason for the bug:
The formData is not updated after successfully pooling the task because after pooling, a prefetch is done to get the training areas with their latest properties (especially aoi.properties.label_fetched should change to 1 from null).
The formData is updated, but the backend has not updated the label fetched status to be aoi.properties.label_fetched yet.
Nevertheless, a proper review is required to make it stable and work as expected.
The text was updated successfully, but these errors were encountered:
Describe the bug
Ideally, after fetching OSM labels, the users should be able to proceed to the next step; however, sometimes it gets buggy, and this button gets disabled.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The continue button should be enabled after fetching training labels for all training areas.
Screenshots
Unfortunately, I can not reproduce this on my computer. However, I once experienced this before and during user testing.
Desktop:
Additional context
The logic that enables the continue button in the training area page happens here:
fAIr/frontend/src/features/model-creation/components/progress-buttons.tsx
Lines 136 to 139 in df81338
where:
fAIr/frontend/src/app/providers/models-provider.tsx
Lines 444 to 457 in df81338
Two things could be the reason for the bug:
prefetch
is done to get the training areas with their latest properties (especiallyaoi.properties.label_fetched
should change to 1 from null).aoi.properties.label_fetched
yet.Nevertheless, a proper review is required to make it stable and work as expected.
The text was updated successfully, but these errors were encountered: