forms icon indicating copy to clipboard operation
forms copied to clipboard

Allow synchronous form answering and spreadsheet editing

Open artonge opened this issue 1 year ago • 5 comments

Nextcloud (please complete the following information):

  • Nextcloud-Version: [e.g. 19.0.0]
  • Forms-Version: [e.g. 2.0.0-beta4]

Is your feature request related to a problem? Please describe.

When you open the spreadsheet of a form, the file gets locked, and it prevents people from answering the form.

Describe the solution you'd like

  • Store the submitted data in the database
  • Try to add the data in the spreadsheet later in a background job

@susnux

artonge avatar May 13 '24 10:05 artonge

~~@artonge could you verify which error message you get, when the file is locked? There's another open issue, where we still don't know exactly where the error comes from (#2067)~~

We could reproduce the other error now... There shouldn't be a connection to this issue here.

Chartman123 avatar May 13 '24 11:05 Chartman123

maybe related: https://github.com/nextcloud/forms/issues/1970

alexanderdd avatar Jun 03 '24 11:06 alexanderdd

I just had this problem in 29.0.6

Ideally, the data is not added after manual editing is finished, but live, during editing. Then you have live monitoring of answers coming in =)

alexanderdd avatar Sep 24 '24 12:09 alexanderdd

Ideally, the data is not added after manual editing is finished, but live, during editing. Then you have live monitoring of answers coming in =)

@alexanderdd I think that this can't be done easily as we don't know if someone uses an online office like Collabora/Nextcloud office or OnlyOffice. And even if they have the app installed the file could still be locked by someone working on it through a client locally.

Chartman123 avatar Sep 24 '24 13:09 Chartman123

@alexanderdd I think that this can't be done easily as we don't know if someone uses an online office like Collabora/Nextcloud office or OnlyOffice. And even if they have the app installed the file could still be locked by someone working on it through a client locally.

If we do it async (background job) we can check for locking as those apps should lock the file for modifications. So nothing we need to special handle, but just catch locked exceptions and postpone writing the results.

susnux avatar Sep 24 '24 19:09 susnux