Commit graph

9326 commits

Author SHA1 Message Date
Bart Schuurmans 01b37026eb Update Markdown to 3.6 2024-04-25 10:14:07 +02:00
Bart Schuurmans 9ebda3fbe8 Update celery to 5.3.6 2024-04-25 10:14:07 +02:00
Bart Schuurmans b6174d9101 Update bleach to 6.1.0 2024-04-25 10:14:06 +02:00
Bart Schuurmans 1303f539c3 Update psycopg to 2.9.9 2024-04-25 10:13:21 +02:00
Bart Schuurmans 624115bf11 Use headers dict instead of HTTP_* kwargs or request.META 2024-04-25 10:13:21 +02:00
Bart Schuurmans 224fae7a87 Fix mypy errors 2024-04-25 10:13:21 +02:00
Bart Schuurmans 869bc5a376 Update mypy to 1.7.1 2024-04-25 10:13:21 +02:00
Bart Schuurmans d80a0146bd Update django-stubs to 4.2.7 2024-04-25 10:13:21 +02:00
Bart Schuurmans e1fd57a1d6 Fix constructor arguments to SessionMiddleware in tests 2024-04-25 10:13:21 +02:00
Bart Schuurmans 1f8ba4df3e Update python-dateutil to 2.9.0.post0 2024-04-25 10:13:21 +02:00
Bart Schuurmans c11725a5c8 Update pyotp to 2.9.0 2024-04-25 10:13:21 +02:00
Bart Schuurmans 309147bd98 Update pycryptodome to 3.20.0 2024-04-25 10:13:21 +02:00
Bart Schuurmans 1276112214 Update opentelemetry dependencies 2024-04-25 10:13:21 +02:00
Bart Schuurmans e9325b8798 Update libsass to 0.23.0 2024-04-25 10:13:21 +02:00
Bart Schuurmans e0a14ea2ba Update django-sass-processor to 1.4 2024-04-25 10:13:21 +02:00
Bart Schuurmans 69c273486c Update django-model-utils to 4.4.0 2024-04-25 10:13:19 +02:00
Bart Schuurmans ffb3549e06 Update django-imagekit to 5.0.0 2024-04-25 10:12:30 +02:00
Bart Schuurmans 16e1b17a33 Update django-csp to 3.8 2024-04-25 10:12:30 +02:00
Bart Schuurmans 3dfbc44c9a Update django-celery-beat to 2.6.0 2024-04-25 10:12:30 +02:00
Bart Schuurmans 23bf089004 Update boto3 to 1.34.74 2024-04-25 10:12:30 +02:00
Bart Schuurmans b5ef9f6241 Configure STORAGES using OPTIONS instead of subclassing 2024-04-25 10:12:30 +02:00
Bart Schuurmans 4fa823e8df Update django-storages to 1.14.2
The problem that boto3 closes files has been worked around in django-storages.
2024-04-25 10:12:30 +02:00
Bart Schuurmans cfcb873235 Update pytest-cov to 5.0.0 2024-04-25 10:12:30 +02:00
Bart Schuurmans 0007c86a2c Update environs to 11.0.0 2024-04-25 10:12:30 +02:00
Bart Schuurmans 984d7fb7d8 Update pytest-django to 4.8.0 2024-04-25 10:12:30 +02:00
Bart Schuurmans 92a94d2fdc django.utils.timezone.utc alias is deprecated 2024-04-25 10:12:30 +02:00
Bart Schuurmans 0d621b68e0 Reorder operations in save() overrides
Accessing many-to-many relations before saving is no longer allowed.

Reorder all operations consistently:
1. Validations
2. Modify own fields
3. Perform save by calling super().save()
4. Modify related objects and clear caches

Especially clearing caches should be done after actually saving, otherwise the old data can be
re-added immediately by another request before the new data is written.
2024-04-25 10:12:30 +02:00
Bart Schuurmans 47fdad9c87 Use new STORAGES setting 2024-04-25 10:12:30 +02:00
Bart Schuurmans 3349817a0b settings.USE_L10N is deprecated 2024-04-25 10:12:30 +02:00
Bart Schuurmans 45bd67cb04 Add migration resulting from Django 4.2 upgrade 2024-04-25 10:12:29 +02:00
Bart Schuurmans 2f4010b93b Upgrade Django to 4.2
- https://docs.djangoproject.com/en/5.0/releases/4.0/
- https://docs.djangoproject.com/en/5.0/releases/4.1/
- https://docs.djangoproject.com/en/5.0/releases/4.2/
2024-04-25 10:12:29 +02:00
Mouse Reeve c4b21ee258
Merge pull request #3114 from SMillerDev/feat/api/oauth
feat: add OAuth authentication
2024-04-24 15:45:54 -07:00
Mouse Reeve ad830dd885
Merge pull request #3350 from Minnozz/custom-port
Correctly handle serving BookWyrm on custom port
2024-04-24 15:27:01 -07:00
Mouse Reeve 366c647585
Merge pull request #3359 from bookwyrm-social/dependabot/pip/aiohttp-3.9.4
Bump aiohttp from 3.9.2 to 3.9.4
2024-04-24 15:13:30 -07:00
Bart Schuurmans 4f58b11330 Include the correct protocol and port in remote IDs 2024-04-24 15:35:19 +02:00
Bart Schuurmans 609bc15406 Support http:// protocol in BookWyrm connector 2024-04-24 15:30:47 +02:00
Bart Schuurmans c42db40a63 Construct absolute URLs with the correct protocol and port 2024-04-24 15:30:47 +02:00
Bart Schuurmans 3aefbb548e Allow serving BookWyrm on a non-standard port 2024-04-24 15:30:47 +02:00
Bart Schuurmans baea105c18 pytest.ini env values should be unquoted
Otherwise the quotes end up in the strings.
2024-04-24 15:30:47 +02:00
Bart Schuurmans c73d1fff6a Remove unnecessary exceptions from validate_url_domain 2024-04-24 15:30:47 +02:00
Bart Schuurmans 3d183a393f
Merge pull request #3360 from hughrun/move-fix
refactor Move for more redundancy
2024-04-24 15:30:19 +02:00
Bart Schuurmans f24fdf73b5 Update to match newer code style 2024-04-24 15:08:48 +02:00
Bart Schuurmans 839ab2fafd
Merge branch 'main' into move-fix 2024-04-24 14:56:32 +02:00
Bart Schuurmans 637f19b208
Merge pull request #3336 from Minnozz/s3-url-protocol
Support AWS_S3_URL_PROTOCOL
2024-04-24 14:53:55 +02:00
Bart Schuurmans 031223104f Clarify AWS_S3_URL_PROTOCOL in .env.example 2024-04-24 14:46:57 +02:00
Hugh Rundle 6684d60526
refactor Move for more redundancy
As outlined in #3354, a use `Move` fails if the user is moving from a BookWyrm server to another BookWrym server.
This is because:

1. the original code did not announce changes to alsoKnownAs;
2. the original code always checked the locally saved profile rather than refetching the remote data;

This commit fixes both these problems by forcing `MoveUser` to always perform a "refresh" of the local data from the remote, and by saving the user with broadcast=True when updating alsoKnownAs ids.
2024-04-22 13:35:08 +10:00
dependabot[bot] cca58023ed
Bump aiohttp from 3.9.2 to 3.9.4
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.2 to 3.9.4.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.9.2...v3.9.4)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-18 15:51:34 +00:00
Bart Schuurmans bf5c08dbf3 Add docker-compose.override.yml to .gitignore 2024-04-15 13:17:00 +02:00
Bart Schuurmans be872ed672 Support AWS_S3_URL_PROTOCOL
- Allow setting in .env
- Default to PROTOCOL (same as before)
- Propagate to django-storages so it generates the correct URLs in sass_src
2024-04-15 13:16:51 +02:00
Bart Schuurmans 70f803a1f6
Merge pull request #3353 from dato/fix_quotation_str_pagenum
Fix creation of quotations with no end position
2024-04-15 13:11:55 +02:00