You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement customizable URL paths for upload endpoints
- Add DEFAULT_URL_PATHS constant in upload.py with configurable URL templates
- Pass url_paths from command context through do_upload_logic to UploadSender
- Simplify UploadSender to use provided url_paths directly without fallbacks
- Support different URL paths for COVERAGE and TEST_RESULTS upload types
- Update prevent-cli main.py to customize TEST_RESULTS path to test_analytics
- Refactor tests to use simpler parameter passing with url_paths in data dicts
- Ensure all upload functionality tests pass with new URL path system
This enables downstream projects like prevent-cli to customize upload endpoint
URLs by setting url_paths in the Click context object, providing flexibility
for different deployment environments and API versions.
0 commit comments