Skip to content

#5786 - Identical layered spans not merging in curation mode#6004

Merged
reckart merged 2 commits into
release/40.xfrom
bugfix/5786-Identical-layered-spans-not-merging-in-curation-mode
May 5, 2026
Merged

#5786 - Identical layered spans not merging in curation mode#6004
reckart merged 2 commits into
release/40.xfrom
bugfix/5786-Identical-layered-spans-not-merging-in-curation-mode

Conversation

@reckart
Copy link
Copy Markdown
Member

@reckart reckart commented May 5, 2026

What's in the PR

  • Properly scope clearing of conditional features during auto-merge

How to test manually

  • See issue description

Automatic testing

  • PR includes unit tests

Documentation

  • PR updates documentation

@reckart reckart added this to the 40.4 milestone May 5, 2026
@reckart reckart self-assigned this May 5, 2026
@reckart reckart added the 🐛 Bug Something isn't working label May 5, 2026
@reckart reckart added this to Kanban May 5, 2026
@github-project-automation github-project-automation Bot moved this to 🔖 To do in Kanban May 5, 2026
@reckart reckart requested a review from Copilot May 5, 2026 06:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to fix curation auto-merge for layered spans by deferring constraint-driven hidden-feature clearing until all copied feature values have been applied, so feature order no longer changes the merge result.

Changes:

  • Added a batched feature-update API on TypeAdapter.
  • Implemented deferred hidden-feature clearing in TypeAdapter_ImplBase.
  • Updated curation merge to use the batch API and added regression tests for the deferred-clearing behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
inception/inception-schema-api/src/main/java/de/tudarmstadt/ukp/inception/schema/api/adapter/TypeAdapter.java Adds the new batched feature-update entry point to the adapter SPI.
inception/inception-schema-api/src/main/java/de/tudarmstadt/ukp/inception/schema/api/adapter/FeatureValueUpdateContext.java Introduces the closeable context used for grouped feature updates.
inception/inception-layer-span/src/test/java/de/tudarmstadt/ukp/inception/annotation/layer/span/FeatureValueUpdateContextTest.java Adds regression tests for deferred hidden-feature clearing behavior.
inception/inception-curation/src/main/java/de/tudarmstadt/ukp/inception/curation/merge/CasMerge.java Switches curation feature copying to the new batched update flow.
inception/inception-api-annotation/src/main/java/de/tudarmstadt/ukp/inception/annotation/layer/TypeAdapter_ImplBase.java Implements batched updates and centralizes feature-update event publishing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Properly scope clearing of conditional features during auto-merge
- Added tests
@reckart reckart force-pushed the bugfix/5786-Identical-layered-spans-not-merging-in-curation-mode branch from 559028f to d5bfa55 Compare May 5, 2026 07:05
@reckart reckart requested a review from Copilot May 5, 2026 07:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Expand fix to other similar situations
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@reckart reckart merged commit 2a6c70f into release/40.x May 5, 2026
8 checks passed
@reckart reckart deleted the bugfix/5786-Identical-layered-spans-not-merging-in-curation-mode branch May 5, 2026 08:24
@github-project-automation github-project-automation Bot moved this from 🔖 To do to 🍹 Done in Kanban May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 🍹 Done

Development

Successfully merging this pull request may close these issues.

2 participants