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

Duplicate Tasks or Tasks are getting Skipped #2733

Closed
anandwana001 opened this issue Sep 18, 2024 · 3 comments
Closed

Duplicate Tasks or Tasks are getting Skipped #2733

anandwana001 opened this issue Sep 18, 2024 · 3 comments
Labels
CERSGIS type: bug Something isn't working

Comments

@anandwana001
Copy link
Collaborator

anandwana001 commented Sep 18, 2024

Looks like there is an issue with the _taskDataFlow in AbstractTaskViewModel

WhatsApp.Video.2024-09-18.at.07.36.47.mp4
@anandwana001 anandwana001 added the type: bug Something isn't working label Sep 18, 2024
@anandwana001 anandwana001 changed the title Tasks are getting Skipped Automatically Duplicate Tasks or Tasks are getting Skipped Sep 18, 2024
@jabramowitz5
Copy link
Collaborator

jabramowitz5 commented Sep 18, 2024

@anandwana001 @jo-spek I do not think the behavior in this video is an error, but actually the survey "skipping" over the tasks that should be skipped due to the conditional answer to the "District:" question. The survey is "skipping" over the other potential child questions of the parent conditional. Probably ideally we don't want this to appear like this since it appears like skipping due to conditional and might confuse users, but less of an issue than the actual skipping occurring later in the survey (ie skipping take a photo, capture location, and a few other questions).

To clarify, there are required, non-conditional tasks that are being somehow skipped in the survey. So there is a skipping issue somewhere, I just don't think this video is displaying that true issue but instead proper conditional behavior (although the UI might be improved not show the "skipping" after conditional response to proper child question of parent conditional.

@gino-m gino-m added the CERSGIS label Sep 18, 2024
@gino-m
Copy link
Collaborator

gino-m commented Sep 18, 2024

This is likely due to the same cause as #2729 and #2727. Patch to SurveySelectorViewModel for @sufyanAbbasi:

  fun activateSurvey(surveyId: String) =
    viewModelScope.launch {
      runCatching {
          // Ignoring extra clicks while loading!
          if (_uiState.value is UiState.ActivatingSurvey) {
            return@runCatching
          }

@gino-m
Copy link
Collaborator

gino-m commented Sep 19, 2024

Fixed by #2740. @jabramowitz5 can you please add the "verified" label to this issue if this works once users remove and reopen their surveys without clicking the survey multiple times?

@gino-m gino-m closed this as completed Sep 19, 2024
@github-project-automation github-project-automation bot moved this to Done in Ground Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CERSGIS type: bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants