-
Notifications
You must be signed in to change notification settings - Fork 0
Merge2025 #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 102 out of 104 changed files in this pull request and generated 3 comments.
Files not reviewed (2)
- .github/workflows/django.yml: Language not supported
- ci_testing/test_requirements.txt: Language not supported
| migrations.AddField( | ||
| model_name='multilayerdimension', | ||
| name='layer', | ||
| field=models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, to='layers.layer'), |
Copilot
AI
Apr 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using an empty string as the default for a ForeignKey is likely to cause issues since it expects an integer or a valid instance reference. Consider using a proper default value (e.g., None or a valid pk) or handling it via a custom migration data migration.
| field=models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, to='layers.layer'), | |
| field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='layers.layer'), |
Add log before error Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ntroduce essential configurations for CORS and testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 103 out of 103 changed files in this pull request and generated 2 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pollardld
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: in the future, more frequent pull requests will allow for quicker and, likely, more accurate reviews.
Portal Sync - Merge 2025
This pull request includes several important changes to the project, focusing on adding CORS support, updating the CI workflow, and enhancing test coverage reporting. Additionally, a new management command for updating layer HTTP status has been added.
CORS Support:
corsheaderstoINSTALLED_APPSandCorsMiddlewaretoMIDDLEWAREin the settings file. Configured CORS allowed origins and whitelist to support local development. (.github/.github/settings.py)CI Workflow Updates:
Tests, which includes setting up Python, installing dependencies, running tests, and creating a coverage badge. (.github/.github/workflows/django.yml) [1] [2]Test Coverage:
coveragepackage totest_requirements.txtto enable test coverage reporting. (ci_testing/test_requirements.txt)README.mdto include badges for test build status and coverage. (README.md)Management Command:
update_least_recent_layer_http_status.pyto check and update the HTTP status of the least recently checked layer. (layers/management/commands/update_least_recent_layer_http_status.py)