Skip to content

Conversation

@OffBy0x01
Copy link
Collaborator

Currently HubRestApi is massive, and subsequently getLogger(name) isn't being used to it's full potential. This PR splits HubRestAPI into numerous smaller files, each with a name denoting the types of functions contained within i.e. Roles.py contains get_roles_url_from_user_or_group (among others).

First pull request of many from me - backporting changes I made during a year long client engagement.

@gsnyder2007 gsnyder2007 requested a review from mkumykov December 22, 2020 18:32
@gsnyder2007 gsnyder2007 self-assigned this Dec 22, 2020
@gsnyder2007 gsnyder2007 self-requested a review December 22, 2020 18:32
@OffBy0x01
Copy link
Collaborator Author

Forgot to add; I made HubInstance directly importable by adding it to init.py:
This enables: from blackduck import HubInstance

@OffBy0x01
Copy link
Collaborator Author

@gsnyder2007 had a thought this morning - it might make more sense to leave HubRestApi.py as is for now, and use the new file structure for the authentication refactor. Let me know what you think of this.

Copy link
Contributor

@gsnyder2007 gsnyder2007 left a comment

Choose a reason for hiding this comment

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

After discussions with a number of contribors to hub-rest-api-python we have agreed to move forward on this PR and PR 129. So, I'm going to merge this PR 127, and also PR 129, do regression testing to ensure nothing is broken and prepare a v1 of blackduck for TestPyPi and then after more testing will push to PyPi

@gsnyder2007 gsnyder2007 merged commit bcde8a8 into blackducksoftware:master Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants