[release-4.19] OLS-2925: Fix revert not clearing edit icon from attachment label#1862
Conversation
The onRevert handler passed undefined as originalValue to attachmentSet, which triggered the re-attach guard added in eb78619 and silently preserved the edited value in the attachments map. Pass the reverted value as originalValue instead so the guard is bypassed and isAttachmentChanged returns false. Made-with: Cursor
|
@openshift-cherrypick-robot: Ignoring requests to cherry-pick non-bug issues: OLS-2925 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request updates the attachment revert functionality to explicitly pass the resolved original value to the attachment update function instead of undefined, and adds a test case validating this revert behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kyoto The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@openshift-cherrypick-robot: This pull request references OLS-2925 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
25e7b93
into
openshift:release-4.19
This is an automated cherry-pick of #1861
/assign kyoto
Summary by CodeRabbit
Bug Fixes
Tests