Closed ludeeus closed 3 days ago
[!TIP]
AI model upgrade
## `gpt-4o` model for reviews and chat is now live OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide any feedback or to report any issues.
tests/snapshots/scripts/data/generate_category_data_with_prior_content/integration/repositories.json (1)
Pattern `tests/**/*.json`: Never suggest changes to the JSON files located under the tests directorytests/snapshots/scripts/data/generate_category_data_with_prior_content/integration/summary.json (1)
Pattern `tests/**/*.json`: Never suggest changes to the JSON files located under the tests directorytests/snapshots/scripts/data/generate_category_data_with_prior_content/integration/data.json (1)
Pattern `tests/**/*.json`: Never suggest changes to the JSON files located under the tests directorytests/snapshots/diagnostics/exception.json (1)
Pattern `tests/**/*.json`: Never suggest changes to the JSON files located under the tests directorytests/snapshots/diagnostics/base.json (1)
Pattern `tests/**/*.json`: Never suggest changes to the JSON files located under the tests directorytests/output/proxy_calls.json (1)
Pattern `tests/**/*.json`: Never suggest changes to the JSON files located under the tests directory
custom_components/hacs/utils/validate.py (1)
`121-121`: **Change Approved: Added `prerelease` field.** The addition of the `prerelease` field to the validation schema looks good.tests/scripts/data/test_generate_category_data.py (3)
`60-60`: **Change Approved: Added snapshot validation for summary data.** The addition of snapshot validation for summary data looks good and ensures consistency. --- `99-105`: **Change Approved: Added snapshot validation for summary data.** The addition of snapshot validation for summary data looks good and ensures consistency. --- `107-185`: **Change Approved: Added test case for generating category data with prior content.** The new test case for handling prior content is comprehensive and covers various scenarios, including mocking GraphQL responses.custom_components/hacs/utils/data.py (3)
`50-50`: **Change Approved: Added `prerelease` field to exported repository data.** The addition of the `prerelease` field to the exported repository data looks good. --- `293-293`: **Change Approved: Added `prerelease` field to restored repository data.** The addition of the `prerelease` field to the restored repository data looks good. --- `306-307`: **Change Approved: Added logic to handle `prerelease` field during repository restoration.** The logic to handle the `prerelease` field during the repository restoration process looks good.scripts/data/generate_category_data.py (4)
`60-86`: **Change Approved: Added GraphQL query for fetching release information.** The addition of the GraphQL query for fetching release information looks good. --- `195-195`: **Change Approved: Added initialization for `HacsDataClient`.** The initialization of `HacsDataClient` looks good and is necessary for the new functionality. --- `238-292`: **Change Approved: Updated `concurrent_update_repository` to use GraphQL for fetching release data.** The update to use GraphQL for fetching release data looks good and improves the accuracy of the data retrieval process. --- Line range hint `456-513`: **Change Approved: Added logic to validate and store fetched data.** The added logic to validate and store the fetched data ensures data integrity and consistency.custom_components/hacs/repositories/base.py (7)
`117-117`: **Change approved: Added `prerelease` to `REPOSITORY_KEYS_TO_EXPORT`.** The addition of the `prerelease` attribute is consistent with the PR objectives and appears necessary for the intended functionality. --- `169-169`: **Change approved: Added `prerelease` to `RepositoryData` class.** The addition of the `prerelease` attribute to the `RepositoryData` class aligns with the PR objectives and is necessary for the intended functionality. --- `574-578`: **Change approved: Improved exception handling in `download_zip_files` method.** The improved exception handling by catching `BaseException` and logging the error enhances robustness. --- `617-618`: **Change approved: Improved exception handling in `async_download_zip_file` method.** The improved exception handling by catching `BaseException` and logging the error enhances robustness. --- `727-728`: **Change approved: Improved exception handling in `async_get_hacs_json` method.** The improved exception handling by catching `BaseException` and logging the error enhances robustness. --- `829-830`: **Change approved: Improved exception handling in `remove_local_directory` method.** The improved exception handling by catching `BaseException` and logging the error enhances robustness. --- `1283-1284`: **Change approved: Improved exception handling in `dowload_repository_content` method.** The improved exception handling by catching `BaseException` and logging the error enhances robustness.tests/output/proxy_calls.json (1)
`1255-1270`: **Verify the accuracy of the added API endpoints.** The new test case `test_generate_category_data_with_prior_content[category_test_data0]` and its associated API endpoints have been added. Ensure these endpoints are correct and relevant to the test case.
Attempt 2...
3841 had to be reverted (in #3846) because of an issue with releases that were not latest, and not draft/pre.
That information was not in the REST API, so this had to be changed to using GraphQL...