-
Notifications
You must be signed in to change notification settings - Fork 5
The migration for setting the 'recurrent' property to 0 for all events is not ran automatically upon upgrade #79
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
Comments
It appears, from my checks, that the events that haven't been migrated properly (have NULL in the database), are not displayed on the calendar(s), for example they don't appear at all on the calendar displayed on the homepage on MoccaCalendar.WebHome . |
- fix the actual name of the extension - add log statement (to be removed later) about which events arrive to be handled
I upgraded to version 2.11.1-rc1 of the calendar application, which is supposed to have this issue fixed, and I still have some events with NULL in the database and not displayed on calendars, and appearing counted in MoccaCalendar.Code.RecurrentEventMigration . However, this time it's only part of the events that didn't get migrated. More precisely, I have multiple wikis on my instance:
I checked the migration code and it seems to cover for the case when the property already exists but its value is NULL and it should be setting it to 0. Questions:
|
That the entries created after installing some 2.10.1-SNAPSHOT have the "recurrent" property is likely due to the fact that they are created after the event template got that property added. I remember that the upgrader of the old entries failed to run because of a typo until fixed. It might be that the 2.11.1-rc1 version was also affected by this bug and skipped the migration. There is no diagnostics for this as the code does nothing if the UpgradeEvent is for another extension (it might otherwise create lots of noise e.g. on platform upgrade), and the typo caused it to think that its own upgrade was for another extension. If this is still a problem after installing 2.11.1 (which should really try to run the upgrader), then one option is to downgrade to an older version and upgrade to 2.11.1 again. I have not tested if this really works, however. About uninstalling and installing a newer version: this will indeed skip/bypass the upgrader. I have not thought about that migration path. Running the manual upgrade is hopefully an option in that case for the current release. If it is not I need to add the |
oh, right, there is this that needs clarifying. The current issue is closed in 2.11 and thus before 2.11.1-rc1 . Also, from the code history at the current version (2.11.1) https://github.com/xwikisas/application-mocca-calendar/commits/application-mocca-calendar-2.11.1 there should be no newer and better version of this migration. So if there's a bug for 2.11.1-rc1 , there is a bug in the current version, this is my logic and this is why I am even mentioning this here, to fix it if there's anything to fix.
yes, that's fine, that part I had understood.
I can try that just for debugging reasons, but as I mentioned above, to me there is no reason for 2.11.1 to be in any way better than 2.11.1-rc1. What I fear is that this may be a sporadic error - which it seems to be since it worked fine for other subwikis - and it may just happen to not reproduce for 2.11.1 and we'd conclude from it that 2.11.1 is somehow better... |
I did not look carefully enough at the version when the issue should have been fixed. Indeed it there are still unmigrated calendar entries after installing 2.11.1-rc1 this looks like a bug. Does the manual migrator at |
They are displayed as left to be migrated, so the detection is probably good. |
I reproduced this with an upgrade from version 2.9.3 to version 2.11-rc-1 , on XWiki 13.4.5, on a subwiki (actually, I have the case on more than a single subwiki, but the idea is that it's happened on a subwiki and not on the main wiki).
On my setup, this extension is a dependency of another extension, so it gets upgraded as a dependency, not as a toplevel extension (not sure if it's relevant or not, but just in case it is).
Expected result:
recurrent
propertyActual result
0
for therecurrent
property are the events created after the upgrade. The others value NULL value stored.The text was updated successfully, but these errors were encountered: