feat(sca): using the new api license/get-licenses-violations instead of packages/get-licenses-violations (which is deprecated)
User description
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
New/Edited policies (Delete if not relevant)
Description
Include a description of what makes it a violation and any relevant external links.
Fix
How does someone fix the issue in code and/or in runtime?
Checklist:
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have added tests that prove my feature, policy, or fix is effective and works
- [ ] New and existing tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
Generated description
Dear maintainer, below is a concise technical summary of the changes proposed in this PR:
Replace the deprecated API endpoint packages/get-licenses-violations with the new license/get-licenses-violations in the get_license_statuses and get_license_statuses_async functions. Enhance error logging by including request input and response details. Introduce a utility function chunk_array to split arrays into smaller chunks. Update tests to reflect the new API endpoint and add tests for the chunk_array function.
| Topic | Details | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Array Chunking | Introduce a utility function chunk_array to split arrays into smaller chunks.Modified files (2)
Latest Contributors(0)
| |||||||||
| Error Logging Enhancement | Enhance error logging by including request input and response details in the get_license_statuses and get_license_statuses_async functions.Modified files (1)
Latest Contributors(2)
| |||||||||
| API Endpoint Update | Replace the deprecated API endpoint packages/get-licenses-violations with the new license/get-licenses-violations in the get_license_statuses and get_license_statuses_async functions.Modified files (4)
Latest Contributors(2)
|