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

Remove duplicate API_PREFIX #922

Merged
merged 2 commits into from
Jul 18, 2022
Merged

Remove duplicate API_PREFIX #922

merged 2 commits into from
Jul 18, 2022

Conversation

sanders41
Copy link
Contributor

@sanders41 sanders41 commented Jul 18, 2022

Closes

Code Changes

  • Remove API_PREFIX from fidesctl/core/utils.py and change references to API_PREFIX in fidesctl/api/reoutes/util.py

Steps to Confirm

  • Run test suite

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Documentation Updated:
    • documentation complete, or draft/outline provided (tag docs-team to complete/review on this branch)
    • documentation issue created (tag docs-team to complete issue separately)
  • Issue Requirements are Met
  • Relevant Follow-Up Issues Created
  • Update CHANGELOG.md

Description Of Changes

API_PREFIX was originally duplicated in fidesctl/core/utils.py because the api was installed as an extra, and when it was not installed the API_PREFIX was not available causing an error. Now that api has been moved into fidesctl and is always included this is no longer needed, and removing the duplicate makes maintenance easier.

@sanders41 sanders41 requested a review from a team July 18, 2022 16:38
Copy link
Contributor

@ThomasLaPiana ThomasLaPiana left a comment

Choose a reason for hiding this comment

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

Very observant catch 💯

@ThomasLaPiana ThomasLaPiana merged commit f827297 into main Jul 18, 2022
@ThomasLaPiana ThomasLaPiana deleted the api-prefix branch July 18, 2022 21:56
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.

2 participants