Skip to content

Fix AttributeError in orderObjects after deleting an object and restarting Zope#50

Merged
mauritsvanrees merged 1 commit intomasterfrom
order_objects_stale_after_delete_and_restart
Apr 29, 2026
Merged

Fix AttributeError in orderObjects after deleting an object and restarting Zope#50
mauritsvanrees merged 1 commit intomasterfrom
order_objects_stale_after_delete_and_restart

Conversation

@wesleybl
Copy link
Copy Markdown
Member

@wesleybl wesleybl commented Mar 30, 2026

Replace sorted() + _set_order() with an in-place sort, preserving the PersistentList.

Closes plone/Products.CMFPlone#4311

@mister-roboto
Copy link
Copy Markdown

@wesleybl thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@wesleybl wesleybl force-pushed the order_objects_stale_after_delete_and_restart branch from e7ea1b9 to e233bcf Compare March 30, 2026 15:37
@wesleybl
Copy link
Copy Markdown
Member Author

@jenkins-plone-org please run jobs

…estarting Zope

Replace sorted() + _set_order() with an in-place sort, preserving the PersistentList.
@wesleybl wesleybl force-pushed the order_objects_stale_after_delete_and_restart branch from e233bcf to 2b9d478 Compare March 30, 2026 15:54
@wesleybl
Copy link
Copy Markdown
Member Author

@jenkins-plone-org please run jobs

@wesleybl wesleybl requested a review from cihanandac April 10, 2026 04:46
Copy link
Copy Markdown
Member

@mauritsvanrees mauritsvanrees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirm the problem (in Plone 6.2 coredev). Ouch.

I confirm that the fix works. Thanks!

@mauritsvanrees mauritsvanrees merged commit 4c80037 into master Apr 29, 2026
12 checks passed
@mauritsvanrees mauritsvanrees deleted the order_objects_stale_after_delete_and_restart branch April 29, 2026 21:41
@mauritsvanrees
Copy link
Copy Markdown
Member

@wesleybl Could you backport this to branch 4.x please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError in orderObjects after deleting an object and restarting Zope

3 participants