Repository navigation
Fixes #36961: Preserve source editors and show memory owner and updater - #36992
Conversation
… cards with the owner Release testing saw every uploaded document show admin as its last editor once extraction finished, and memory cards name the reconciliation bot as the author of memories people own. - Extraction stats and processing status are written as the source's current last editor, as file processing status already was; admin only when none. - A memory card names its owner first, and "Updated by" whoever changed it last only when that is someone else. ADR:2026-11-03-extraction-bookkeeping-keeps-the-sources-last-editor Co-Authored-By: Claude Opus 5.5 <[email protected]>
… page extraction Both engines stamp extraction bookkeeping as the source's last editor; the rule now lives once on ContextProcessingEngine, and a test covers a finished page extraction stamping its stats under that editor. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…avatar A memory card names its owner and then whoever changed it last, but it read the last editor's display name from the profile cache, which only the avatar filled. The avatar now shows the owner, so a memory owned by tomas and last updated by the reconciliation bot read "Updated by MemoryReconciliationApplicationBot". The card now loads the last editor with useUserProfile, which keeps the raw name when the profile cannot be read. The tests now go through a mocked getUserByName instead of a store filled by hand, so they fail when nothing loads the profile. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…team owners as teams - ContextFileProcessingService writes its file and content bookkeeping through ContextProcessingEngine.lastEditorOf, so a source with no recorded editor is written as admin, as the extraction engines already do. - A memory card shows a team owner with a team avatar. - The card names its last editor with label.updated-by-user-time-ago, so the word order comes from the locale instead of being concatenated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hip-attribution # Conflicts: # openmetadata-service/src/main/java/org/openmetadata/service/context/center/ContextFileProcessingService.java # openmetadata-service/src/main/java/org/openmetadata/service/context/center/FileContextProcessingEngine.java # openmetadata-service/src/main/java/org/openmetadata/service/context/center/PageContextProcessingEngine.java # openmetadata-service/src/test/java/org/openmetadata/service/context/center/ContextFileProcessingServiceTest.java # openmetadata-service/src/test/java/org/openmetadata/service/context/center/PageContextProcessingEngineTest.java
The panel printed the raw login, a bot's user name, where the memory card shows the display name; it now loads the profile the way the card does. The owner test also asserts a team owner reaches its popover as a team. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
Code Review ✅ Approved🟡 Medium risk · Changing extraction bookkeeping to reuse each source's last editor could make version history attribute automated status and stats updates to a person. Preserves the source's last editor during memory extraction bookkeeping, so Context Center documents and articles no longer show VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #36961
Memory extraction no longer makes
adminthe last editor of a Context Center document or article. Its bookkeeping writes (status, stats, errors) keep the source's last editor, falling back toadminonly when there is none. Memory cards lead with the memory's owner and show the last updater separately. The memory panel labels Owner in its header and shows Updated by with the updater and date under Metadata; team owners link to teams.Type of change:
High-level design:
ContextProcessingEngine.lastEditorOfis shared by the file and page engines and byContextFileProcessingService.MemoriesViewgets auseMemoryAuthorshook. The owner's avatar takesisTeamfor a team. The updater loads throughuseUserProfile, which dedupes requests.label.updated-by-user-time-agokey keeps the word order right in every locale.docs/decisions/2026-11-03-extraction-bookkeeping-keeps-the-sources-last-editor.md.Tests:
Use cases covered
Unit tests
fa3beb3b314: 33 planner-selected Java tests passed and 27 Jest tests passed.yarn tsc:checkremains blocked by two unchanged files:IngestionWorkflowForm.tsx:413(RJSF validator type) andOntologyIriInput.test.tsx:104(exactinByRoleOptions). No errors were reported in changed files.Backend integration tests
The complete planner-selected integration suite was not run. The combined IT module now compiles; targeted REST evidence is recorded below.
Playwright (UI) tests
Both new attribution browser cases passed on the combined Docker server. The remaining planner-selected browser suites were not run.
UI screen recording:
36992-memory-attribution.webm
Recorded on the combined review instance (all 12 memory PRs plus the 2026-11-06 fixes):
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md: fresh review offa3beb3b314found no remaining Important findings. The extraction attribution and memory-details changes compose without a semantic conflict.Note: this PR and the memory-details PR #36991 both edit imports in
MemoriesView.component.tsx; preserve both changes if a rebase is needed.Summary by Gitar
CreateMemoryModalThis will update automatically on new commits.
Regression follow-up (2026-11-04)
db75cbec085a339743fabf62225c9d72119161b8, fresh REVIEW.md pass, no unanswered Important findings. Coverage findings were fixed before this pass.7d7ac24b6e4e274b935954a067dbae7fa61007a3, AIeacb39819e854615b6eebf27b6fa486b4b9beba3, Collatef10b2d235cd4ec4f461a2db409f43a9289d4e3ae. Targeted combined runs are reported here; this does not claim that every planner-selected integration or browser suite ran.Merge readiness (2026-11-06)
main(94961ed). Preserve Context Center metadata during processing #36668 had wrapped the processing writes in conditional retries. I kept the retries, stamped the source's last editor in all five writes, and moved this PR's tests toupdateIfCurrent.OwnerType.TEAM.🤖 Generated with Claude Code