isawnyu / isaw.web

Isaw website buildout
http://isaw.nyu.edu
1 stars 3 forks source link

migrate core types from archetypes to dexterity #482

Open paregorios opened 4 months ago

paregorios commented 4 months ago

ISAW currently uses the following core archetypes types, which should be migrated (including customizations) to dexterity:

sauzher commented 3 months ago

The script is ready here in the branch https://github.com/isawnyu/isaw.web/tree/issue/482-migrate-core-type

The output of the full run is attached (migration_log.txt)

There are a lot of reindex errors (RID unaccessible and contents with the same UID) I'm still not sure how they may impact the site.

Some views need to be fixed because they were designed to work with Archetype. I suppose it's better to open ticket for each one as an error occurs.

sauzher commented 3 months ago

Analyzing the migration log, there are onlyl 3 unmigrated object:

ERROR ATCT.migration Couldn't access /isaw/people/faculty/isaw-faculty/alexander-jones/PMath_cover_thumb.jpeg ERROR ATCT.migration Couldn't access /isaw/people/staff/dratzan/20171018-ratzan-cv ERROR ATCT.migration Couldn't access /isaw/people/staff/dratzan/20181108-ratzan-cv

3 unmigrated topic criteria here: INFO plone.app.contenttypes.migration.topics Migrating Topic at /isaw/about/news-reviewing/ready

ERROR plone.app.contenttypes.migration.topics Invalid operation None for criterion: ERROR plone.app.contenttypes.migration.topics Invalid operation None for criterion: ERROR plone.app.contenttypes.migration.topics Invalid operation None for criterion:

the log a little bit rearanged to be readable: migration_log_sorted.txt

sauzher commented 3 months ago

It tourned out that Events have been ATSchemaExtend-ed in the isaw.policy. So more work has been done.

There are things in the way, though. start and end event fields gets migrated but the two widgets and the data dictionary populated in event_view rendering class has some problem fetching theirs values. If I probe context.start and context.end in console I read right values but in the edit/view views, nope.

This needs to be investigated...

sauzher commented 2 months ago

For the record, the problem on event-start/end dates was issued by the laking of timezone attibute on new DX Events, I've update the migrationAT script accordingly, fixing some misconfigured timezones too, Event Portlet and base view have been fixed.

I managed the migration of collective.slider configuration on the homepage although I don't know if we're planning to keep this product in the future.

I suppose the migration of default content types can be done on staging.