-
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
Add upgrade to re-run the comments upgrade to catch entitities possibly missed on first run due to Elgg core bug #3
Comments
It seems that the plugin version number defines which upgrades should be ran. What if you just rename the latest upgrade file? |
That would be a possible (the easiest) solution I also have thought about already. I think it's impossible to stop the Tidypics upgrade to be run by the admin even if he hasn't run the core upgrade yet. What I'm mostly worried about is that running the script a second time might result in invalid modifications (due to new comments already made on Elgg 1.9 that shouldn't get touched). |
Is it not possible to check whether the Tidypics upgrade has already been done to an individual ElggComment? |
I don't think it's possible to check if an entity (and also the corresponding river entry) has already been updated previously or not. Or maybe it's possible but then I guess it won't be any less time-consuming running the upgrade. I think it's save to run the former upgrade a second time, so I've simply changed the upgrade script date and plugin version. Of course, everyone upgrading Tidypics needs to do the upgrade now but I see no other practical way. I also see no simple way of checking completeness of core upgrades to prevent the Tidypics upgrade getting run too soon (as I don't want to rewrite the whole upgrade script handling of Tidypics just for this single case). Assuming that the core bug will be fixed in Elgg 1.9.5 I've already made a commit (Tidypics 1.9..4.1). If anyone (other than me) could also test it as soon as Elgg 1.9.5 is out, I would be quite grateful as I'm slightly worried that I might have missed some conditions that might result in the script not working as intended. |
Fixed with release 1.9.4.1. |
Elgg core possibly hasn't converted all comment annotations to entities. With this core issue fixed in Elgg 1.9.X it's necessary to repeat at least part of tidypics/upgrades/2014040301.php.
To do:
The text was updated successfully, but these errors were encountered: