1
0
Fork 0
Commit graph

9362 commits

Author SHA1 Message Date
1d4119e853
LOL
remove Q import so pylint doesn't grumble
2024-06-09 10:59:11 +10:00
261e794c1c
possible fix for #3372 - user export timeouts
This definitely needs to be tested on a large DB but I believe it may fix the timeouts b.s. gets when running user exports.

Instead of a gigantic single DB query with heaps of joins, we instead just do a series of simple queries and then use union()
to pull them into a de-duped queryset.

If I understand the results from explain() correctly, this is a massive reduction in DB work:

Unique  (cost=195899.15..198201.71 rows=11808 width=19220)

vs

Unique  (cost=150.28..153.44 rows=16 width=19220)
2024-06-09 10:34:22 +10:00
3545a1c3b6
Merge pull request #3362 from hughrun/gh-actions
add GitHub templates for PRs and releases
2024-06-01 18:50:26 -07:00
4d3d5d15d0
Merge pull request #3370 from Tak/add-hashtag-to-context
Add `as:Hashtag` to activitypub context
2024-06-01 18:48:38 -07:00
d90e8e56d5
Merge pull request #3341 from Minnozz/django-4.2
Upgrade to Django 4.2
2024-05-31 17:04:17 +02:00
eca246fc61 Fix lint 2024-05-31 16:59:24 +02:00
aa2312e8af Merge branch 'main' into django-4.2 2024-05-31 16:52:48 +02:00
61d9e0c260
Move comment to separate line
Co-authored-by: Adeodato Simó <73768+dato@users.noreply.github.com>
2024-05-31 16:49:34 +02:00
44eedd09d9
Merge pull request #1 from dato/django-4.2
minor contributions to django 4.2 upgrade
2024-05-31 16:49:06 +02:00
46544451d4 Add as:Hashtag to activitypub context 2024-05-23 09:40:25 +02:00
4e987a0e66
Merge pull request #3369 from bookwyrm-social/dependabot/pip/requests-2.32.0
Bump requests from 2.31.0 to 2.32.0
2024-05-21 14:47:34 -07:00
dependabot[bot]
332286cdff
---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 05:41:48 +00:00
e4035c6da6
add GitHub templates for PRs and releases
This commit adds:

1. a release template for GitHub releases.
2. a pull request template to help contributors and maintainers to understand and merge PRs faster, and label them correctly.

When using GitHub automated release notes, PRs will be split into sections based on the following labels:

- `breaking-change` or `config-change`
- `dependencies`
- `enhancement`
- `fix` or `bug`
- `plumbing`, `tests` or `deployment`
- all other PRs

Any labels not currently in use will be added once the PR for this commit is finalised and merged.
2024-04-28 13:30:47 +10:00
e6ee169c3e
Narrow down bare type: ignore pragmas 2024-04-26 21:20:43 -03:00
29f852b57e
consolidate multiple cache.delete() calls into cache.delete_many() 2024-04-26 15:36:38 -03:00
acae063652 Fix new warnings from pylint upgrade 2024-04-26 13:59:16 +02:00
c32f9faaa0 Upgrade pylint to 2.17.7 2024-04-26 13:41:01 +02:00
e7f95ef4c2 Modify update_fields in save() when modifying objects
https://docs.djangoproject.com/en/5.0/releases/4.2/#setting-update-fields-in-model-save-may-now-be-required
2024-04-25 15:53:53 +02:00
a6c2ce15dd Early return 2024-04-25 15:51:32 +02:00
7604d0acdb Simplify ObjectMixin broadcast kwarg 2024-04-25 10:31:24 +02:00
77832cbec7 Add merge migration 2024-04-25 10:14:07 +02:00
de67c73237 Add merge migration 2024-04-25 10:14:07 +02:00
f38622fdc9 Define CSRF_TRUSTED_ORIGINS 2024-04-25 10:14:07 +02:00
051dab77bb Replace deprecated CICharField with custom collation for case-insensitivity 2024-04-25 10:14:07 +02:00
2896219e88 Switch from django-redis to the built-in Redis cache backend 2024-04-25 10:14:07 +02:00
03ac846b5d Migrate from pytz to zoneinfo 2024-04-25 10:14:07 +02:00
39c2a0feae Update qrcode to 7.4.2 2024-04-25 10:14:07 +02:00
22986a08f0 Update pytest to 8.1.1 2024-04-25 10:14:07 +02:00
f6bbe673ca Update responses to 0.25.0 2024-04-25 10:14:07 +02:00
f324a3cd1d Update pytest-xdist to 3.5.0 2024-04-25 10:14:07 +02:00
039160e004 Update pytest-env to 1.1.3 2024-04-25 10:14:07 +02:00
a1ff5a478e Update types-Pillow to 10.2.0.20240331 2024-04-25 10:14:07 +02:00
1cb86197d5 Update types-requests to 2.31.0.20240311 2024-04-25 10:14:07 +02:00
2537886b4d Group version constraints for indirect dependencies and change to >= 2024-04-25 10:14:07 +02:00
1474c0d3aa Remove protobuf as a direct dependency 2024-04-25 10:14:07 +02:00
e46bc2e9a1 Update redis-py to 5.0.3 2024-04-25 10:14:07 +02:00
01b37026eb Update Markdown to 3.6 2024-04-25 10:14:07 +02:00
9ebda3fbe8 Update celery to 5.3.6 2024-04-25 10:14:07 +02:00
b6174d9101 Update bleach to 6.1.0 2024-04-25 10:14:06 +02:00
1303f539c3 Update psycopg to 2.9.9 2024-04-25 10:13:21 +02:00
624115bf11 Use headers dict instead of HTTP_* kwargs or request.META 2024-04-25 10:13:21 +02:00
224fae7a87 Fix mypy errors 2024-04-25 10:13:21 +02:00
869bc5a376 Update mypy to 1.7.1 2024-04-25 10:13:21 +02:00
d80a0146bd Update django-stubs to 4.2.7 2024-04-25 10:13:21 +02:00
e1fd57a1d6 Fix constructor arguments to SessionMiddleware in tests 2024-04-25 10:13:21 +02:00
1f8ba4df3e Update python-dateutil to 2.9.0.post0 2024-04-25 10:13:21 +02:00
c11725a5c8 Update pyotp to 2.9.0 2024-04-25 10:13:21 +02:00
309147bd98 Update pycryptodome to 3.20.0 2024-04-25 10:13:21 +02:00
1276112214 Update opentelemetry dependencies 2024-04-25 10:13:21 +02:00
e9325b8798 Update libsass to 0.23.0 2024-04-25 10:13:21 +02:00