upgrade to plone 5

37
UPGRADE TO PLONE 5 PHILIP BAUER PLONE CONFERENCE 2015

Upload: philip-bauer

Post on 21-Jan-2018

1.442 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Upgrade to Plone 5

U P G R A D E T O P L O N E 5P H I L I P B A U E R P L O N E C O N F E R E N C E 2 0 1 5

Page 2: Upgrade to Plone 5

Philip Bauer Munich starzel.de

pbauer (github / irc) StarzelDe (twitter)

Page 3: Upgrade to Plone 5

PA R T 1 : G O O G L E F O R „ M I G R AT I O N S , U P G R A D E S A N D R E L A U N C H E S "

Page 4: Upgrade to Plone 5

„Every non-trivial upgrade should be approached as a relaunch.“

Page 5: Upgrade to Plone 5

„The primary challenge is not development but communication and project management.“

Page 6: Upgrade to Plone 5

„Bring time. And space.“

Page 7: Upgrade to Plone 5

„Expect everything to break!“

Page 8: Upgrade to Plone 5

„Don't experiment, document.“

Page 9: Upgrade to Plone 5

„Write your code as if your own kids will inherit the code one day.“

Page 10: Upgrade to Plone 5

„Write upgrade-steps.“

Page 11: Upgrade to Plone 5

„Divide and conquer.“

Page 12: Upgrade to Plone 5

„Don't try more than two new things at once.“

Page 13: Upgrade to Plone 5

„Use the Help.“

Page 14: Upgrade to Plone 5

U P G R A D I N G F R O M P L O N E 4 T O 5

Why?

Cui bono?

An easy sell?

Page 15: Upgrade to Plone 5

L I V E D E M O

Page 16: Upgrade to Plone 5

I T C A N ’ T B E T H AT E A S Y

A old site with content, configuration and add-ons

www.starzel.de

Page 17: Upgrade to Plone 5

I T C A N ’ T B E T H AT E A S Y

Page 18: Upgrade to Plone 5

I T C A N ’ T B E T H AT E A S Y

LinguaPlone is hard to get rid of

Theming is tricky

Some add-ons work nicely in Plone 5

Page 19: Upgrade to Plone 5

I S S U E S

KeyError: 'Interface `plone.app.iterate.interfaces.IIterateSettings` defines a field `checkout_workflow_policy`, for which there is no record.'

Page 20: Upgrade to Plone 5

I S S U E S

ComponentLookupError: (<InterfaceClass plone.resource.interfaces.IResourceDirectory>, 'persistent')

Page 21: Upgrade to Plone 5

I S S U E S

List of content to migrate from AT to DX is empty

Page 22: Upgrade to Plone 5

L I N G U A P L O N E – O H M Y !

LinguaPlone ➟ plone.app.multilingual (2.x) in 4.3.x

Documentation: https://github.com/plone/plone.app.multilingual/issues/181

wildcard.fixpersistentutilities to the rescue!

Can someone please sprint on this?

Page 23: Upgrade to Plone 5

T H E U P G R A D E - G U I D E

http://docs.plone.org/manage/upgrading/version_specific_migration/p4x_to_p5x_upgrade.html

Needs love at sprint

Page 24: Upgrade to Plone 5

Your design will break unless it is a full diazo theme

T H E D E S I G N

Page 25: Upgrade to Plone 5

Just joking ;-)

T H E D E S I G N

Page 26: Upgrade to Plone 5

Your design will always break

T H E D E S I G N

Page 27: Upgrade to Plone 5

Disable your custom theme before migrating!

T H E D E S I G N

Page 28: Upgrade to Plone 5

C O N T E N T

Page 29: Upgrade to Plone 5

S E T T I N G S

<record name="plone.displayed_types"> <value purge="false"> <element>talk</element> </value> </record>

Page 30: Upgrade to Plone 5

C O D E

Page 31: Upgrade to Plone 5

A R C H E T Y P E S D E X T E R I T Y

@@pac_installer

@@atct_migrator

@@migrate_from_atct

Page 32: Upgrade to Plone 5

A R C H E T Y P E S D E X T E R I T Y

@@custom_migration

Page 33: Upgrade to Plone 5

A R C H E T Y P E S D E X T E R I T Y

from plone.app.contenttypes.migration import field_migrators

Page 34: Upgrade to Plone 5

A R C H E T Y P E S D E X T E R I T Y

Page 35: Upgrade to Plone 5

A R C H E T Y P E S D E X T E R I T Y

ISSUES:

memory

commits

Page 36: Upgrade to Plone 5

U P G R A D I N G A D D - O N S F R O M 4 T O 5

That’s your job.

Page 37: Upgrade to Plone 5

Thanks