ocket8888 opened a new pull request #4397: Fixed /api/2.0/roles always returning empty array URL: https://github.com/apache/trafficcontrol/pull/4397 ## What does this PR (Pull Request) do? - [x] This PR is not related to any Issue The `/roles` endpoint when called in API version 2.0 is always returning an empty array because of how it handles the new v1.3 fields. This fixes that. ## Which Traffic Control components are affected by this PR? - Traffic Ops ## What is the best way to verify this PR? Build and run, make a GET request to `/roles`, verify the resulting array of roles is not empty. ## If this is a bug fix, what versions of Traffic Control are affected? - master ## The following criteria are ALL met by this PR - [x] Tests are being added in #4374 - [x] Documentation is being added in #4371 - [x] An update to CHANGELOG.md is not necessary - [x] This PR includes any and all required license headers - [x] This PR does not include a database migration - [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY**
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services