I haven't checked yet (except that the info file has no update function) but in case someone else already knows:
What is the upgrade path between 7.x-2.x and 7.x-4.x like?
Can a user just upgrade from one to the other without functionality changing?
Any changes/additions to settings and permissions will have to be done in an update function to make it work as close as possible to 7.x-2.x with an upgrade.
Also, possibly display messages to the user if they need to manually check anything, like settings and permissions.
In theory if this upgrade path is ok then all the 7.x-2.x issues in the issue queue can be closed with a note to say that that version is no longer supported (once the new version of 4.x comes out).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | autologout-upgrade_path_2x_4x-1993310-7415356.patch | 1.42 KB | johnennew |
| #3 | autologout-upgrade_path_2x_4x-1993310-7415140.patch | 1.46 KB | johnennew |
| #2 | autologout-upgrade_path_2x_4x-1993310-7407084.patch | 1.2 KB | johnennew |
Comments
Comment #1
johnennew commentedYes, this would be nice. I haven't tested this either so needs some work.
Comment #2
johnennew commentedI did the 6.x branch first - patch attached.
Not a perfect update, recommend users review the settings screen after update.
Comment #3
johnennew commentedLeft over table autologout caused by the disable by user functionality in the 2.x branch which is not in the 4.x branch.
I'm deleting the table here and so not carrying over these settings. Good idea?
Comment #4
johnennew commentedand the 7.x-4.x upgrade function.
Comment #5
johnennew commentedI believe these upgrade paths are better than nothing so committing to 7.x-4.x and 6.x-4.x branches.
Would be good to get some more reviews from someone who can test this on a development version of a real site.
I think the only missing element is the removal of per user disabling of autologout available in 2.x but not 4.x. It is possible to disable autologout by role with the 4.x branches which I think is a superior solution than individually disabling users but does require some configuration after update by the site administrator.
Comment #6
rooby commentedI will try make some time to give it a test run but it won't be with a proper site.
I agree that per user config is not so useful, at least for use cases I can think of.
Comment #7
stefank commentedHi
After upgrating from 7.x-2.x to 7.x-4.x I've got an error on site, without the window to confirm to continue or logout to appear. That happens when the function tries to autologout.
An AJAX HTTP error occurred.
HTTP Result Code: 404
Debugging information follows.
Path: /autologout_ajax_get_time_left
StatusText: Not Found
ResponseText:
Oops! This page doesn't exist.
The module is trying to go to path http://site/autologout_ajax_get_time_left.
What i can see it's in line 182 url: Drupal.settings.basePath + 'autologout_ajax_get_time_left',
for some reason the path is ignored an only the 'autologout_ajax_get_time_left' appears as path.
Thanks
Comment #8
johnennew commentedHi Stefank, The path is correct as far as I can see. A 404 would suggest Drupal cannot route the request which suggests that it doesn't recognise the path - can you clear cache just to be sure it's not something as simple as that.
Comment #9
stefank commentedPerfect. Silly mistake.
Thanks
Comment #10
Mig commentedHi,
I have installed the 7.x-4.x module, and I am experiencing the same problem as stefank posted two days ago but i can't solve it cleaning the cache.
Hubo un error HTTP AJAX.
Código de Resultado HTTP:404
A continuación se detalla la información de depuración
Ruta: /prueba/autologout_ajax_get_time_left
StatusText: Not Found
ResponseText:
404 Not Found
NotFound
The requested URL /prueba/autologout_ajax_get_time_left was not found on this server.
any suggestions?
Thanks.
Comment #11
rooby commented@Mig,
This is an issue for the upgrade path between the 7.x-2.x version and the 7.x-4.x version.
Did you upgrade from a 7.x-2.x version?
If not it would be best to open a new issue for your problem.
Comment #12
jmcollantes commentedI have recently jumped from 7.x-2.0-beta1 to 7.x-4.2, everything sweet!
Substitued the autologout folder and ran update.php
Happily working on ***4.2 since then!
Comment #13
johnennew commentedThanks for the review @jmcollantes! Much appreciated.
Comment #14
johnennew commentedclosing this old issue - looks like the update path works - feel free to reopen if you find soemthing.