akvo / akvo-flow

A data collection and monitoring tool that works anywhere.
http://akvo.org/products/akvoflow/
GNU Affero General Public License v3.0
65 stars 31 forks source link

New design for failure to generate an export #2543

Closed janagombitova closed 2 years ago

janagombitova commented 6 years ago

Context

With #2505 we are introducing a page where Salim will be able to download his generated data exports from, instead of the emails. This change will help us:

Opportunity

With these changes we also want to improve how we communicate to Salim that Flow cannot generate the data file, for one reason or the other. Currently we only say when file generation fails immediately using a pop up message right after Salim hits the Generate button. We do not tell Salim that the generation has stopped because of something "wrong" with the form structure, for example.

When can export generation fail and how quickly does Flow know

Generating a data file can fail for multiple reasons:

~General failure~

~If Flow services is down for some reason, or generating the file fails right away we should show the message directly in the UI, where Salim is. This shows right away after hitting Generate.~

screen shot 2018-03-16 at 16 47 19

Failure to generate for specific form

If generating the file fails after a few seconds for a specific form related reason, we bring Salim to the Generated exports page and then show a form specific error message. This should hold the form name and reason for failure for Salim knows what he needs to change or adjust to make the export work.

screen shot 2018-03-16 at 16 50 09

Next steps

What are the reasons for an export to fail?

muloem commented 6 years ago

From our discussion during the task planning session, we figured that since the architecture for report generation is changing (see #2544) we will not be sending report generation requests directly to Flow services so generic errors e.g. involving Flow services not being up and running, will not occur.

However, that doesn't mean the GAE platform will always be reachable. So we still need to include error notification, to be implemented as part of a wider pattern to stop using popups and instead have an error notification area within the workspace. (we will handle this in a separate issue #2708)

Regarding the errors that occur when generating a report, we agreed its cleaner to have each error report highlighted within the list rather than above the list as in the mockup above, possibly with a retry button to enable the user to simply request the failed report again.

@janagombitova @Kiarii @stellanl @kymni

janagombitova commented 6 years ago

If we can be very specific on what caused the error, so Salim knows if he needs to change something in the survey definition or just wait, (could also be in a later iteration) then I think this is a good idea.

janagombitova commented 6 years ago

@Kiarii can you revise the design based on the discussion we had here above so we can push this issue to implementation? Thanks

Kiarii commented 6 years ago

me sees the point, however me point of view here was that an error is not a generated report; it is more of a notification if anything. Bunching it up with the reports introduces some confusion incl. the misconception with the timestamp, e.g. does it stand for when an error occurred or when a report was generated and when does it change between the two.. The RETRY we could do on the rhs of the notification as with material Snackbars

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

janagombitova commented 3 years ago

Today we released changes where we show an error message in the place of the URL to download the export. I am reopening this issue as it contains further improvements we can and should consider, from UI improvements to what type of errors we can have and how should we show them.

However, Flow poses some limitations (notes from a Zulip conversation):

Screenshot 2021-04-07 at 19 50 43

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.