-
Notifications
You must be signed in to change notification settings - Fork 666
OCPBUGS-65883: Add missing sample for a ConsoleLink with mailto #15754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@jhadvig: This pull request references Jira Issue OCPBUGS-65883, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In 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. |
WalkthroughAdded a ConsoleLink YAML template Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (2)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
frontend/public/models/yaml-templates.ts (1)
926-938: Fix indentation for consistency.The
contact-mail-linktemplate correctly demonstrates a ConsoleLink with a mailto URL. However, line 932 uses 4 spaces for thenamefield undermetadata, while all other ConsoleLink templates in this file use 2 spaces for consistency.Apply this diff to fix the indentation:
apiVersion: console.openshift.io/v1 kind: ConsoleLink metadata: - name: contact-mail-link + name: contact-mail-link spec: href: 'mailto:[email protected]' location: UserMenu text: Contact Mail Link
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
📒 Files selected for processing (1)
frontend/public/models/yaml-templates.ts(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
-Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity.
Files:
frontend/public/models/yaml-templates.ts
🔇 Additional comments (1)
frontend/public/models/yaml-templates.ts (1)
911-925: LGTM!The
cl-namespace-dashboardtemplate follows the correct structure and formatting conventions consistent with other ConsoleLink templates in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated with Claude, trying this feature
Review Summary
This PR adds a helpful sample for ConsoleLink with a mailto: href, which is currently missing from the available templates.
Issues Found
Indentation inconsistency ❌
- Line 932 (in the diff):
name: contact-mail-linkhas 4 spaces of indentation instead of 2 - All other ConsoleLink samples in the file use 2-space indentation consistently
Compare with existing samples (lines 1057-1058, 1070-1071, 1083-1084, 1099-1100):
metadata:
name: example # 2 spaces ✓Your new sample:
metadata:
name: contact-mail-link # 4 spaces ✗What Looks Good
✅ The sample structure is correct for ConsoleLink
✅ The mailto: href is properly formatted
✅ The location UserMenu is valid and appropriate
✅ The sample key contact-mail-link follows naming conventions
✅ Addresses a genuine gap in the available samples
Recommendation
Please update the indentation for name: contact-mail-link from 4 spaces to 2 spaces to match the existing code style, then this will be ready to merge.
logonoff
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
per leo's review re. yaml spacing inconsistency /lgtm cancel |
e8dc069 to
f1dea34
Compare
|
/lgtm |
|
/retest |
|
QE verification: |
|
@XiyunZhao please help verify, thanks! |
|
Hi @jhadvig, I have two questions:
|
f1dea34 to
ee04702
Compare
ee04702 to
c6dff48
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jhadvig, logonoff The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/verified by @XiyunZhao |
|
@XiyunZhao: This PR has been marked as verified by In 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. |
|
@jhadvig: all tests passed! Full PR test history. Your PR dashboard. 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
@jhadvig: Jira Issue Verification Checks: Jira Issue OCPBUGS-65883 Jira Issue OCPBUGS-65883 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 In 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. |

/assign @Leo6Leo