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

Fixed /api/2.0/roles always returning empty array #4397

Merged
merged 2 commits into from Feb 13, 2020

Conversation

ocket8888
Copy link
Contributor

What does this PR (Pull Request) do?

  • 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

  • Tests are being added in Create API v2 tests #4374
  • Documentation is being added in API 2.0 documentation #4371
  • An update to CHANGELOG.md is not necessary
  • This PR includes any and all required license headers
  • This PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

@ocket8888 ocket8888 added bug something isn't working as intended Traffic Ops related to Traffic Ops regression bug a bug in existing functionality introduced by a new version medium impact impacts a significant portion of a CDN, or has the potential to do so labels Feb 13, 2020
@ocket8888
Copy link
Contributor Author

Not really sure about "medium", but at best it means that new users can not be created and old ones can't be updated - which is a bit of a big deal when users can't be deleted.

Copy link
Contributor

@mhoppa mhoppa left a comment

Choose a reason for hiding this comment

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

works, good catch/fix

@mitchell852 mitchell852 merged commit 232d667 into apache:master Feb 13, 2020
@ocket8888 ocket8888 deleted the fix-2.0-roles branch February 13, 2020 21:03
@mitchell852 mitchell852 removed the bug something isn't working as intended label Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium impact impacts a significant portion of a CDN, or has the potential to do so regression bug a bug in existing functionality introduced by a new version Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants