Skip to content
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

update to use email from propagated claims #514

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

sbryzak
Copy link
Contributor

@sbryzak sbryzak commented Dec 11, 2023

Copy link
Contributor

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. But I wonder why there is no changes in unit tests needed...

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
10.2% 10.2% Duplication

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

Merging #514 (f134e61) into master (f422040) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #514   +/-   ##
=======================================
  Coverage   82.54%   82.54%           
=======================================
  Files          29       29           
  Lines        3220     3220           
=======================================
  Hits         2658     2658           
  Misses        426      426           
  Partials      136      136           
Files Coverage Δ
controllers/idler/idler_controller.go 93.30% <100.00%> (ø)

if email := getMUR.Annotations[toolchainv1alpha1.MasterUserRecordEmailAnnotationKey]; email != "" {
emails = append(emails, getMUR.Annotations[toolchainv1alpha1.MasterUserRecordEmailAnnotationKey])
if email := getMUR.Spec.PropagatedClaims.Email; email != "" {
emails = append(emails, getMUR.Spec.PropagatedClaims.Email)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you already assigned getMUR.Spec.PropagatedClaims.Email into email, you could do something like this:

Suggested change
emails = append(emails, getMUR.Spec.PropagatedClaims.Email)
emails = append(emails, email)

but it's a minor thing

Copy link

openshift-ci bot commented Dec 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbryzak, xcoulon

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sbryzak
Copy link
Contributor Author

sbryzak commented Dec 12, 2023

@alexeykazakov unit tests were updated shortly after :)
@xcoulon thanks for the review!

@sbryzak sbryzak merged commit ba2105b into codeready-toolchain:master Dec 12, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants