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

Show publishing status in page in form editor, not in messages #2488

Closed janagombitova closed 3 years ago

janagombitova commented 6 years ago

Context

As @kymni well noted in this issue https://github.com/akvo/akvo-flow/issues/1403 publishing of a form and the end result of publishing does not happen immediately: "The publish survey endpoint does not immediately return the result of the publishing request because checks have to be first be run on the back-end. The status therefore cannot be changed without first knowing if the publishing request was successful or not." (https://github.com/akvo/akvo-flow/issues/1403#issuecomment-359427399)

User steps

Petra is working on a survey form. She is adding in questions and making changes to the form structure. Once she is done with the form and it is ready for data collection she needs to publish it. By publishing she indicates that the form is no ready in draft stage but is now ready for enumerators to use. She hits on the publish button in the form and then gets a message telling her that she needs to go to the Messages tab to see that the publishing is completed. Now she is expected to leave the page.

https://cloud.githubusercontent.com/assets/12456965/23306893/b1568134-faa5-11e6-9929-814e13a3c49c.gif

Issues with this implementation

Opportunities

Show publishing status in page, in form editor (not in messages tab)

An idea is to show the status of publishing directly in the form window in a way that:

With this change we could then also remove the publish form message from the Messages tab

Questions to resolve

@Kiarii @muloem and @kymni Can you share your thoughts on this idea and details on the questions above?

Other related opportunities that have separate issues

Form integrity check

In the past we mentioned that we should validate that the form is "ready" for data collection with publishing. Many things we validate at the time of editing the form, like if a question has a name, or if an option question has options, if a cascade has a cascade, if dependency is invalidated after moving a questions around. If we want to add this to the publishing, we should handle it in a separate issue: https://github.com/akvo/akvo-flow/issues/1324

Handling changes to cascades

We also noted in a separate issue that if a change is made to a cascade that is added to a published form, the form should not be published. This is a complex issues.

Kiarii commented 6 years ago

me quick take: its going to be some improvement to show:

kymni commented 5 years ago

We can do interval calls to the surveys endpoint to check if status property has changed to PUBLISHED similar to how we're checking for reports https://github.com/akvo/akvo-flow/blob/d1ba03912e57cb3a8303df09a3379b93e6206180/Dashboard/app/js/lib/controllers/reports-controllers.js#L53-L66 This will have to change once the ember library is updated to accommodate object reloading

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

Still an issue and takes up a lot of support time. Needs love

janagombitova commented 3 years ago

Moving this issue to https://github.com/akvo/akvo-flow/issues/3795 so we have all the issues in one place to start with