optittm / bugprediction

A CLI tool to assess the risk of releasing your next version. Can generate a comprehensive dataset for testing your bug prediction models.
MIT License
0 stars 1 forks source link

Fix/crash survey #59

Closed FredericDymko closed 1 year ago

FredericDymko commented 1 year ago

Description:

This merge request addresses several improvements and fixes related to the Survey Connector module. The changes implemented are as follows:

  1. Pagination Support:

    • The Survey Connector has been modified to support pagination for retrieving survey data. This ensures that all comments are fetched from the survey API, even if they are spread across multiple pages.
  2. PyDriller Version Fix:

    • An issue with PyDriller has been identified, requiring a specific fix. To resolve this issue, the PyDriller version has been locked to 2.4.1. This guarantees compatibility and resolves any potential conflicts. Please see : #271
  3. Improved Error Handling:

    • Previously, the Survey Connector verified the reachability of the API before making requests. However, it has been determined that this check is unnecessary. Therefore, the connector now handles cases where it's unable to reach the API gracefully, eliminating the need for this validation.
  4. Unit Test Modifications:

    • The unit tests for the Survey Connector have been updated to validate the effectiveness of the refactored connector. These tests ensure that the pagination functionality and error handling are working as expected.

Please review and merge this request to incorporate the mentioned improvements and fixes into the codebase.