-
Notifications
You must be signed in to change notification settings - Fork 18
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
Autosave content #466
Comments
Personally I am really enjoying the |
Just had a look at installing If implementing this, we probably want to reduce this, though I guess it might have some performance implications. |
I think it makes sense to add this to LGD core, probably with a timeout of 20 seconds or something. |
I agree we should add it to LGD core, it's pretty neat. One consideration is that it can get a bit annoying if you don't want to continue editing a draft, or if you are not sure. Say you've visited a node edit form for a bit, made some random or accidental changes, left without saving, then come back some time later. I wonder if reducing the default time to 20 seconds would increase this? @msayoung I think that in the LocalGov Microsites building and testing, the autosave form got annoying at times. Can you recall if we had any specific feecback from test users and would that suggest a shorter or longer default time? |
@finnlewis when I've played around with this (admittedly not for very long) I get a message when I return to a page asking whether I want to continue with the autosaved draft, or to discard changes. Personally I was thinking of a shorter autosave time, maybe 5 seconds or less. We're migrating from another CMS and our content designers are accustomed to what's perceived as 'instant' autosaving, similar to e.g. Google Docs, Word. Would love to hear about any user feedback on this though @msayoung as we haven't tried this at all yet and so I'm in the dangerous land of assumptions! |
Does autosaving make any Drupal requests. |
@andybroomfield autosave will certainly be making hits and that is interesting to know about Acquia's quotas and charging model. One thing to remember is that the distribution / install profile is a starting point meant for further customisation. If a module like autosave_form is installed and configured by default, it is simple enough to uninstall it or reconfigure it for your specific use case. So these sort of decisions about things to inlude in the distribution do not imply that all users need to use it. To turn it off you would just uninstall the module. |
@benhillsjones - out of interest, is the autosave_form functionality something that you think other council content designers want? This functionality request has triggered a discussion around the question: "What is the policy for adding modules to default install LocalGov eg. autosave" See #485 (comment) So just gathering interest on this specific feature while drafting a policy. |
Possible alternative:
|
This issue has highlighted the question of how we decide what features to add and enable by default in the distribution. I've started drafting a policy here: It would be good to answer the questions raised so far on this issue:
Let's take them one by one. 1. Does more than one council want this feature? / Does a significant proportion of our users want this feature?We know that at @keelanfh (Essex) is keen on this feature, so are there other councils that also want or already use autosave? @benhillsjones @willguv @Boosmith @ 2. Can the feature be disabled after installation without any dependency problems?Yes, I've tested this and after installing the profile with this module being enabled, I can uninstall the autosave_form module without any problems. 3. Does the product group / product owner / product lead want to prioritise this feature?@willguv can we make some time to discuss this from the product perspective? 4. Will this enhancement be communicated to users with an existing installation?I think release notes should suffice for this, but happy to look at some other messaging with update hooks or similar if others feel strongly. |
Thanks for kicking off this wider discussion @finnlewis . With conversations about the Roadmap Group, I’ve been thinking about it too. Set aside time this week? |
Its probably best we separate the discussion of how modules get added to the distribution onto its own ticket so the discussion on autosave functionality does not get lost. Assuming there is a want for autosaving, I still think we should consider the other modules, especially as the most useful part is having autosave whilst writing a new page which the module here does not do without a patch. Also there are merits around saving it locally and not doing round trips to server (network issues, offline editing). |
Thanks @andybroomfield. I think the questions above are directly related to adding the autosave functionality to the localgov install profile, so hoping to get more input this week from other councils and the product group and either build momentum for including this in the profile or look at adding it as an optional feature in some way. I've not tried any of the other modules you suggest, but on first glance autosave_form has significantly more usage and is covered by the security advisory policy. I've created a spearate issue (#488) for discussing the general question of adding features to LocalGov Drupal and look forward to discussing that more this week. |
Thanks @andybroomfield, clearly a few things to think about here. One disadvantage of local storage could be that if someone uses multiple browsers/devices to edit content, autosave wouldn't carry across them. I have no idea if this is a common use case or not. I am very much anchored by the functionality in our old CMS (which essentially just creates a new draft revision automatically - which is then visible to other CMS users as well). So I am maybe not the best at uncovering underlying needs here. |
Having tested autosave_form and the modules I discovered above, I'm not able to get this working with paragraphs. There looks like quite a few core patches and patches to the module needed to get it to a workable state
I'd have concerns about adding a lot of patches to support an optional feature, more like something we should suggest if others wanted to give it a try. It sounds like we should spec out a feature set first for autosave, before deciding on a module to incorportate. @keelanfh The reason for offline storage (aside from not using up our Acquia hit quota) is that it works when the netwrok is offline, so can recover from a page refresh. Typically users would edit on one device and currently even autosave_form won't support transfering the edit to other users. |
Lizzie and David say this would be AMAZING! Other CDs would prefer this to be configurable on a council by council basis. Sometimes you may want to have a play with the page and not save changes |
Keelan: has installed on LGD, throws up errors relatively frequently. Past CMS had it, Google docs and others have it - general expectation? Andy: Has to reduce frequency of browser requests. Happy if:
Module only works on pages that have already been saved once, relies on content ID. Showstopper Keelan: how to deal with mandatory fields? Stephen: set to save every minute on microsites, not excessive. Other options above mitigate server load. Might cause havoc with autosave Possible showstopper: only saves content for the user, not saved into workflow. If author doesn't hit "save" when they leave, other content designers don't see the latest version |
We also set to save every minute. |
That's a mouthful! Thanks for the screenshot. |
Content group 23 May could be very handy if tested with block concurrent editing |
@stephen-cox please install on test @andybroomfield need to consider requests on server - either override timer, opt in or only save when changes are made |
@stephen-cox - just tested again on the demo microsite. The autosave does occur every minute. Worked fine with text I added a body field on an event page. But when I tried to add content to a text paragraph on a service page it didn't save. |
@willguv I have deployed the Autosave Form to the test site with default settings: https://test.localgovdrupal.org |
Posting thoughts here as I go
Should we give some indication that pages are being autosaved to reassure editors? (Just saw "Saving" back box bottom right, not very clear, also not very frequent on test site)
|
Two councils on the call use paragraphs heavily, so wouldn't be able to use this. Are there any other modules (or bespoke work) that would take this into account @stephen-cox We should write "how to" doc so councils have this as a option |
Our accessibility audit picked up a WCAG non-compliance with autosave_form, which I've raised in its repository with a fix: |
BLOCKED as this module does not support autosaving of paragraphs content - further discussion needed |
In the process of moving to LocalGov Drupal, one thing we're missing from our current CMS is autosave functionality.
localgov_microsites is using
drupal/autosave_form
- could we consider including this in core LocalGov Drupal? Would also welcome any other alternatives.The text was updated successfully, but these errors were encountered: