chore(api): simplify ConvertMetadataToLabels using maps.Clone and lo.…#3915
chore(api): simplify ConvertMetadataToLabels using maps.Clone and lo.…#3915borbelyr-kong wants to merge 3 commits intomainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRefactored ConvertMetadataToLabels across multiple handlers to return non-nil *api.Labels by using maps.Clone + pointer wrapping; added stdlib Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Not necessarily in scope for this PR, but just wondering if we can somehow extract the refactored conversion function to a common place, after seeing it being repeated in multiple places. The Metadata -> Labels conversion seems to be a common concern. Something to think about. It might not worth it, or might not be simple with goverter. |
Summary by CodeRabbit