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

Fix shared usernames display while retrieving CDN locks #7231

Merged

Conversation

srijeet0406
Copy link
Contributor

@srijeet0406 srijeet0406 commented Dec 5, 2022

This PR is not related to any issue.
While locking mutiple CDNs, the "shared usernames" field seems to be wrongly populated, wherein, the list shows up as a combined list of shared users from all the CDNs. This PR fixes that behavior.


Which Traffic Control components are affected by this PR?

  • Traffic Ops
  • Traffic Portal

What is the best way to verify this PR?

Make sure all the tests pass.
Lock multiple CDNs and share the locks amongst other users.
Make sure TP displays the CDN locks notifications correctly.

If this is a bugfix, which Traffic Control versions contained the bug?

  • master

PR submission checklist

@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Merging #7231 (8dbb83f) into master (9bb5ad5) will decrease coverage by 2.40%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #7231      +/-   ##
============================================
- Coverage     28.36%   25.95%   -2.41%     
  Complexity       98       98              
============================================
  Files           617      505     -112     
  Lines         69195    66100    -3095     
  Branches         90       90              
============================================
- Hits          19624    17158    -2466     
+ Misses        47760    47291     -469     
+ Partials       1811     1651     -160     
Flag Coverage Δ
golib_unit 52.98% <ø> (-0.01%) ⬇️
grove_unit 4.60% <ø> (ø)
t3c_generate_unit 24.96% <ø> (ø)
traffic_monitor_unit 20.43% <ø> (ø)
traffic_ops_integration 57.68% <ø> (-12.04%) ⬇️
traffic_ops_unit 19.81% <0.00%> (ø)
traffic_stats_unit 10.41% <ø> (ø)
v3 57.68% <ø> (ø)
v4 ?
v5 ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...raffic_ops/traffic_ops_golang/cdn_lock/cdn_lock.go 0.00% <0.00%> (ø)
lib/go-atscfg/parentabstraction.go 79.47% <0.00%> (-0.53%) ⬇️
traffic_ops/v4-client/deliveryservice_requests.go
traffic_ops/v4-client/steeringtarget.go
traffic_ops/v5-client/topology.go
traffic_ops/v4-client/asn.go
traffic_ops/v4-client/profile.go
traffic_ops/v5-client/profile.go
traffic_ops/v4-client/topology.go
traffic_ops/v4-client/cachegroup.go
... and 104 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@rimashah25 rimashah25 left a comment

Choose a reason for hiding this comment

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

Code LGTM. The locks show the correct username. Unit tests and API(v3/v4/v5) tests pass locally.

@shamrickus shamrickus merged commit e24fcb6 into apache:master Dec 8, 2022
@ocket8888
Copy link
Contributor

This PR is not related to any issue.

... but what does it do, then?

@mitchell852
Copy link
Member

This PR is not related to any issue.

... but what does it do, then?

it does what the title says :)

@ocket8888
Copy link
Contributor

It just says it fixed it, but I don't even know what the problem was in the first place

@srijeet0406
Copy link
Contributor Author

It just says it fixed it, but I don't even know what the problem was in the first place

I have updated the description.

@ocket8888
Copy link
Contributor

Cool, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants