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

Adapt bulk finalisation to current settings #5741

Closed
3 tasks done
seadowg opened this issue Sep 15, 2023 · 6 comments · Fixed by #5776
Closed
3 tasks done

Adapt bulk finalisation to current settings #5741

seadowg opened this issue Sep 15, 2023 · 6 comments · Fixed by #5776
Assignees
Milestone

Comments

@seadowg
Copy link
Member

seadowg commented Sep 15, 2023

Acceptance

  • Given I have at least one draft saved
    And I have auto send enabled
    When I go to "Drafts"
    And I open the options menu
    And I click "Finalize all forms"
    Then all drafts are finalised and sent when auto send runs

  • Given I'm using an older version of Collect
    And the finalize button is disabled
    And there is at least one draft
    And I upgrade to the current version
    When I go to Drafts
    Then there is no option to bulk finalize

  • Given I have at least one draft saved
    When I go to "Form entry settings" in protected settings
    And I uncheck "Finalize all drafts" in the "Uncheck to hide from Drafts" section
    And I go to drafts
    Then there is no option to bulk finalize

To discuss

  • Where should the setting to disable bulk finalize live?
    • @lognaturel How about in "Form Entry Settings" in a new section called "Uncheck to hide from Drafts"? Called "Finalize all drafts". It's not exactly "Form entry" but it feels very related and it is useful to have that setting on the same screen as where the "Finalize" and "Draft" buttons can be configured.

  • What should we do in the case where bulk finalize and finalize are disabled? Should that setup be forbidden?
    • @lognaturel I don’t think it should be. It would support workflows in which sending requires the admin password.

@github-project-automation github-project-automation bot moved this to not ready in ODK Collect Sep 15, 2023
@seadowg seadowg mentioned this issue Sep 15, 2023
5 tasks
@seadowg seadowg added this to the v2023.3 milestone Sep 15, 2023
@lognaturel
Copy link
Member

What should we do in the case where bulk finalize and finalize are disabled? Should that setup be forbidden?

I don’t think it should be. It would support workflows in which sending requires the admin password.

Relatedly, I think that if Collect is configured to disable finalize/send from the last form screen and a user upgrades to this version, then bulk finalize should also be hidden. Otherwise we’d be opening up a way for data collectors to send in workflows where they weren’t able to before. Those existing users should need to opt in to this new behavior.

@seadowg
Copy link
Member Author

seadowg commented Sep 15, 2023

I don’t think it should be. It would support workflows in which sending requires the admin password.

Right good point. So we don't bother with a message in that case then I guess.

@lognaturel
Copy link
Member

all drafts are finalised and sent when auto send runs

Not sure whether this should be tracked here or in a separate issue, but I think bulk finalization needs to trigger autosend when it completes and has finalized more than one form.

"Send all forms" (replacing "Finalize all forms")

I think we should consider always showing "Finalize all forms". It's one less (tiny) bit of logic to consider which makes things like docs easier to write. And it better addresses cases where form-level autosend might be specified for some forms.

Where should the setting to disable bulk finalize live?

How about in "Form Entry Settings" in a new section called "Uncheck to hide from Drafts"? Called "Finalize all drafts". It's not exactly "Form entry" but it feels very related and it is useful to have that setting on the same screen as where the "Finalize" and "Draft" buttons can be configured.

@seadowg seadowg moved this from not ready to backlog in ODK Collect Oct 3, 2023
@seadowg seadowg self-assigned this Oct 13, 2023
@seadowg seadowg moved this from backlog to in progress in ODK Collect Oct 13, 2023
@seadowg
Copy link
Member Author

seadowg commented Oct 13, 2023

@lognaturel @alyblenkin I'm sure this made sense a month ago, but today I'm not sure why we added this:

Given I'm on the end screen of a form
And the "Finalize" button is hidden from the end screen (in protected settings)
Then I see a banner reading "To send forms, go to the menu in Drafts, and select "Finalize all forms."

Is this to support workflows where "Finalize" is disabled from form end, but bulk finalized is still enabled? That would make sense to me, but I'm undecided on if we should be "promoting" bulk finalized like this. Either way, I guess we need to also not show this message in the case where both finalize options are hidden?

@seadowg seadowg moved this from in progress to backlog in ODK Collect Oct 13, 2023
@seadowg seadowg removed their assignment Oct 13, 2023
@lognaturel
Copy link
Member

I’m also not sure about this one. I think a more common path (certainly now when bulk finalize is new) would be that a supervisor unlocks admin mode, verifies each submission, and finalizes as they go.

Is it ok to just have no help/warning text?

@alyblenkin
Copy link
Collaborator

Ah yes, we were considering showing different text in the blue message on the end screen.

Is it ok to just have no help/warning text?

I think we can get away with not displaying any information there! I think it was more of an idea we explored, but we didn't decide if we wanted to go forward with it.

@seadowg seadowg self-assigned this Oct 13, 2023
@seadowg seadowg moved this from backlog to in progress in ODK Collect Oct 13, 2023
@seadowg seadowg linked a pull request Oct 18, 2023 that will close this issue
5 tasks
@github-project-automation github-project-automation bot moved this from in progress to done in ODK Collect Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: done
Development

Successfully merging a pull request may close this issue.

4 participants