• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / Products.CMFCore / 36353204373
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: move_optimization
DEFAULT BRANCH: master
Ran 27 Sep 2026 09:52PM UTC
Jobs 1
Files 131
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Sep 2026 09:50PM UTC coverage: 86.856% (+0.3%) from 86.51%
36353204373

Pull #161

github

mamico
Reindex all indexes on move, except contextless_indexes

Invert the default of the move optimization: every catalog index is now
treated as context-aware and reindexed when an object moves. Indexes
whose value does not depend on the location or security context can be
listed in the optional ``contextless_indexes`` lines property of
``portal_catalog`` (settable from GenericSetup ``catalog.xml``) to be
skipped. ``IContextAwareIndexProvider`` and its default utilities are
removed.

``moveObject(object, old_path)`` no longer takes ``idxs`` and returns
whether the move was handled. It is optional: catalogs that do not
provide it keep the unindex + index flow. ``CatalogTool.moveObject``
also updates the modification date, so alternative catalogs stay in
control of it.

Fix duplicate catalog entries when a reindex is pending at move time:
the queue was processed inside ``moveObject`` after the rename, so the
pending operation cataloged the object at the new path and the remap
orphaned that entry. The queue is now flushed on
``IObjectWillBeMovedEvent``, while queued objects still report their
old path. A leftover entry at the new path is dropped before the remap.
Pull Request #161: Optimize object moves by reindexing only context-aware indexes

1966 of 3066 branches covered (64.12%)

Branch coverage included in aggregate %.

240 of 241 new or added lines in 6 files covered. (99.59%)

12 existing lines in 2 files now uncovered.

17851 of 19750 relevant lines covered (90.38%)

0.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.19
0.62% src/Products/CMFCore/tests/test_CMFCatalogAware.py

Coverage Regressions

Lines Coverage ∆ File
8
80.41
2.33% src/Products/CMFCore/CMFCatalogAware.py
4
96.19
0.62% src/Products/CMFCore/tests/test_CMFCatalogAware.py
Jobs
ID Job ID Ran Files Coverage
1 36353204373.1 27 Sep 2026 09:52PM UTC 131
86.86
GitHub Action Run
Source Files on build 36353204373
  • Tree
  • List 131
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #161
  • PR Base - master (#24001254139)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc