blackducksoftware / hub-rest-api-python

HUB REST API Python bindings
Apache License 2.0
89 stars 105 forks source link

Modified way sub projects are determined from activityData to componentType attribute. #162

Closed nichollsdave closed 3 years ago

nichollsdave commented 3 years ago

NOTE this requires pip blackduck 0.0.56 to ensure the correct request header to obtain componentType e.g. pip install blackduck==0.0.56

It seems the activityData could in some scenarios contain data for sub projects and this broke the previous way this script determined which components were sub projects. There is a componentType attribute that solves the issue as long as a specific request header is sent - this is a public API. See /api-doc/public.html#_listing_bom_components . Switched to using this but it does require the latest blackduck PyPi module.