Skip to content
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

Prepare upgrade to Django 4.2 #362

Merged
merged 15 commits into from
Mar 15, 2024
Merged

Prepare upgrade to Django 4.2 #362

merged 15 commits into from
Mar 15, 2024

Conversation

Viicos
Copy link
Contributor

@Viicos Viicos commented Feb 13, 2024

No description provided.

Updated settings from the default project
These are the straightforward ones
This will be needed for the new notifications_api_common library
Upgrade is pretty straightforward. Followed documentation
@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2024

Codecov Report

Attention: Patch coverage is 96.93878% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 94.84%. Comparing base (9cb3e4b) to head (e1c217f).

Files Patch % Lines
src/objects/utils/autoschema.py 50.00% 2 Missing ⚠️
src/objects/api/fields.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #362      +/-   ##
==========================================
- Coverage   94.90%   94.84%   -0.06%     
==========================================
  Files         133      135       +2     
  Lines        4628     4657      +29     
==========================================
+ Hits         4392     4417      +25     
- Misses        236      240       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Viicos Viicos requested a review from annashamray February 14, 2024 14:13
@Viicos
Copy link
Contributor Author

Viicos commented Feb 14, 2024

Waiting on a new commonground-api-common release.

Copy link
Collaborator

@annashamray annashamray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OAS schemas are not generated anymore. Requesting http://127.0.0.1:8000/api/v2/schema/ fails with error:

AttributeError: module 'rest_framework.serializers' has no attribute 'NullBooleanField'

I think it's because drf-spectacular and rest_framework have conflict versions

Could you please fix it and add a regression test (requesting "v2:schema" returns 200)?

src/objects/conf/base.py Outdated Show resolved Hide resolved
requirements/base.in Show resolved Hide resolved
docs/installation/config.rst Show resolved Hide resolved
docs/installation/config.rst Show resolved Hide resolved
Viicos added 3 commits March 14, 2024 12:29
Latest version without too much breaking changes
Fix `AutoSchema` subclass
Regenerate schemas
Add regression test
@Viicos Viicos requested a review from annashamray March 14, 2024 11:48
docs/installation/config.rst Show resolved Hide resolved
requirements/base.in Show resolved Hide resolved
src/objects/tests/v2/test_schema.py Show resolved Hide resolved
@Viicos Viicos requested a review from annashamray March 14, 2024 14:35
Copy link
Collaborator

@annashamray annashamray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Viicos Viicos merged commit 7e09be6 into master Mar 15, 2024
8 checks passed
@Viicos Viicos deleted the upgrade-42 branch March 15, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants