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

zopefoundation / Products.CMFCore / 23461348830
86%
master: 87%

Build:
Build:
LAST BUILD BRANCH: fix-ensure-site-during-queue-processing
DEFAULT BRANCH: master
Ran 23 Mar 2026 09:37PM 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

23 Mar 2026 09:36PM UTC coverage: 86.435% (-0.08%) from 86.51%
23461348830

Pull #160

github

jensens
Fix: ensure site manager is active during queue processing

When the indexing queue is processed outside a request context
(e.g. in the before_commit transaction hook), getSite() returns
None. IndexableObjectWrapper then falls back to the global site
manager, which lacks locally registered indexer adapters. This
causes attributes like exclude_from_nav to silently not be indexed.

Previously masked because processQueue() was called mid-request
(via reindexObjectSecurity -> unrestrictedSearchResults) when the
site was always set. Since #155 bypasses processQueue in
reindexObjectSecurity, more operations are deferred to
before_commit where the site may not be set.

Fix: PortalCatalogProcessor._ensure_site() walks the object's
acquisition chain to find and activate a site before each catalog
operation.

Refs: plone/buildout.coredev#1080

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pull Request #160: Fix: ensure site manager is active during queue processing

1937 of 3054 branches covered (63.43%)

Branch coverage included in aggregate %.

2 of 16 new or added lines in 1 file covered. (12.5%)

3 existing lines in 1 file now uncovered.

17580 of 19526 relevant lines covered (90.03%)

0.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
74.76
-5.03% src/Products/CMFCore/indexing.py

Coverage Regressions

Lines Coverage ∆ File
3
74.76
-5.03% src/Products/CMFCore/indexing.py
Jobs
ID Job ID Ran Files Coverage
1 23461348830.1 23 Mar 2026 09:37PM UTC 131
86.43
GitHub Action Run
Source Files on build 23461348830
  • Tree
  • List 131
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #160
  • PR Base - master (#23708745111)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc