fabric8-analytics-server
fabric8-analytics-server copied to clipboard
fabric8-analytics API server
Ignore vulnerability feature for VA with test cases
This PR adds snyk attribution and utm param for requests coming from Clair component. This is just a stop gap solution to unblock Quay 3.5.2 release. ### Sample response ```...
DO NOT MERGE THIS PR, it for testing PR script. SUMMARY Change HTTP library used to send s TESTS - [x] Send 'GET' request - [x] Send 'POST' request with/without...
Maintainability index is too high for utils.py and api_v1.py modules. Please try to fix it, especially for utils.py (it will be easier): ``` bayesian/utils.py - B (18.98) bayesian/api_v1.py - B...
The following branch needs to be covered by unit tests as well: https://github.com/fabric8-analytics/fabric8-analytics-server/blob/2202a57d0d080fe6bf92937251161fe5ead3c7c1/bayesian/api_v1.py#L399
https://github.com/fabric8-analytics/fabric8-analytics-server/blob/2202a57d0d080fe6bf92937251161fe5ead3c7c1/bayesian/utils.py#L728
Needs to be fixed together with https://github.com/fabric8-analytics/fabric8-analytics-server/issues/583 https://github.com/fabric8-analytics/fabric8-analytics-server/blob/2202a57d0d080fe6bf92937251161fe5ead3c7c1/bayesian/utils.py#L733
https://github.com/fabric8-analytics/fabric8-analytics-server/blob/2202a57d0d080fe6bf92937251161fe5ead3c7c1/bayesian/api_v1.py#L805 For the (user visible) timestamp and to be able to debug issues, it is much better to use UTC timestamps.
https://github.com/fabric8-analytics/fabric8-analytics-server/blob/2202a57d0d080fe6bf92937251161fe5ead3c7c1/bayesian/utils.py#L736 is equal to: ``` return diff > STACK_ANALYSIS_REQUEST_TIMEOUT ```