The GitHub Actions job "Build" on jackrabbit-oak.git/OAK-12244 has succeeded.
Run started by GitHub user thomasmueller (triggered by thomasmueller).

Head commit for run:
97b046601b2e38ba46ec64c0518636e376e9ab66 / Benjamin Habegger 
<[email protected]>
OAK-12244: index nodes that gain a mixin rule, delete stale docs when mixin 
rule is lost (#2938)

When an existing node's applicable indexing rule changes at runtime (e.g. 
jcr:mixinTypes
added or removed), FulltextIndexEditor did not update the index because 
propertiesChanged
was never set — jcr:mixinTypes is not normally listed in a rule's property 
definitions.

Track wasIndexable (rule matched before) alongside isIndexable() (rule matches 
after).
In leave(), act on transitions:
- !wasIndexable && isIndexable(): node gained a rule → addOrUpdate
- wasIndexable && !isIndexable(): node lost a rule → deleteDocuments

Tests added:
- PropertyIndexCommonTest: two end-to-end integration tests (all backends)
- LuceneIndexEditor2Test: two unit tests verifying writer.docs / 
writer.deletedPaths

Report URL: https://github.com/apache/jackrabbit-oak/actions/runs/27349789307

With regards,
GitHub Actions via GitBox

Reply via email to