Repository navigation
fix: migrate KnowledgePage approval task from FeedRepository to TaskRepository - #31972
zhang-arvin wants to merge 1 commit into
Conversation
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
c7a0954 to
976520a
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
976520a to
87b3556
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review 👍 Approved with suggestions 4 closed / 5 findingsMigrates KnowledgePage approval tasks to use TaskRepository instead of FeedRepository. Consider making the reviewer change check order-insensitive to avoid missing updates. 💡 Edge Case: Reviewer change check is order-sensitive
✅ 4 closed✅ Bug: Calls to TaskRepository API that does not exist in repo
✅ Edge Case: Possible NPE building assignees from refetched reviewers
✅ Bug: updateReviewers() override removed; reviewer reassignment lost
✅ Quality: Unused imports will fail checkstyle/spotless build
🤖 Prompt for agentsOptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
CI failures here ( |
|
Maintenance note after rebasing onto current This PR has been superseded upstream and cannot be cleanly rebased — the review comments here are still accurate, but the fix they ask for is now the default behaviour of
Given that, the correct action is to close this PR as superseded rather than rebase it — rebasing would either be a no-op or re-introduce behaviour #32912 intentionally removed. Happy to close it; leaving the decision here for a maintainer. (gitar's finding that the old |
|
Thanks @zhang-arvin, and sorry this waited so long for a review. You're right that it's superseded. Closing moved to |
Fixes #31687
Migrate
updateTaskWithNewReviewers()andcloseApprovalTask()from the legacy FeedRepository path to the Task entity API. Also addupdateReviewers()override to detect reviewer changes and reassign approval tasks.Greptile Summary
The PR migrates KnowledgePage approval-task closure and reviewer reassignment from the legacy feed-thread repository to TaskRepository.
Confidence Score: 5/5
The PR appears safe to merge based on the currently established behavior.
No blocking failure remains.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR A[KnowledgePage update] --> B{Change type} B -->|Reviewers changed| C[Update reviewer relationships] C --> D[TaskRepository updates approval assignees] B -->|Approved, rejected, or draft| E[TaskRepository finds open Approval task by page FQN] E --> F[Close approval task]Reviews (2): Last reviewed commit: "fix: migrate KnowledgePage approval task..." | Re-trigger Greptile
Context used: