Commit graph

9403 commits

Author SHA1 Message Date
Mouse Reeve
0ff2fe9d80 Adds 10k more books to book page test 2024-08-09 15:59:48 -07:00
Mouse Reeve
cf55a89816 Ups the max query time so that all tests pass 2024-08-09 13:59:04 -07:00
Mouse Reeve
dc72b5b9a0 Adds query time logger to dashbaord views 2024-08-09 13:59:04 -07:00
Mouse Reeve
d56a21e232
Merge branch 'main' into query-time 2024-08-09 13:47:52 -07:00
Mouse Reeve
26b6699b26 Moves query logger duration into pytest.ini file 2024-08-09 13:39:06 -07:00
Mouse Reeve
95c2798fc7
Merge pull request #3401 from dato/comment_progress_keep_start_date
Fix reading progress `start_date` bug
2024-08-09 13:07:01 -07:00
Mouse Reeve
66dd39e6d8
Merge pull request #3151 from dato/celery_inmem
In-memory Celery backend for tests
2024-08-09 13:02:53 -07:00
Mouse Reeve
96a2fa5afc
Merge pull request #3402 from dato/ostatus_no_empty_titles
Avoid empty <title> in templates
2024-08-09 12:43:06 -07:00
Mouse Reeve
9e73ab048b
Merge pull request #3407 from bookwyrm-social/dependabot/pip/django-4.2.15
Bump django from 4.2.14 to 4.2.15
2024-08-09 12:40:24 -07:00
dependabot[bot]
b45435803a
Bump django from 4.2.14 to 4.2.15
Bumps [django](https://github.com/django/django) from 4.2.14 to 4.2.15.
- [Commits](https://github.com/django/django/compare/4.2.14...4.2.15)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-07 19:33:05 +00:00
Adeodato Simó
69962bb7c9 Avoid empty <title> in templates
Newer versions of tidylib complain about this.
2024-07-28 21:58:26 -03:00
Adeodato Simó
3d28019146 Use in-memory backends for Celery in tests and workflows
At the moment, this doesn't have much of an effect since most task
calls are mock'd out.
2024-07-28 06:42:11 -03:00
Adeodato Simó
f4133e0236 celerywyrm: allow broker and result backend from the environment
This allows to easily configure an in-memory transport for tests.
2024-07-28 06:42:11 -03:00
Adeodato Simó
041f2fc413 edit_readthrough: set start_date/finish_date iff present in request
Fixes: #3164
2024-07-28 05:58:38 -03:00
Adeodato Simó
812221456b Add failing test case for comment progress clobbering start_date 2024-07-28 05:56:25 -03:00
Mouse Reeve
7f773b3dbd
Merge pull request #3398 from bookwyrm-social/pylint3
Upgrade pylint to 3.x
2024-07-27 12:03:21 -07:00
Mouse Reeve
7311526f2e
Merge pull request #3375 from bookwyrm-social/pr-template
Reorganizes PR template a bit
2024-07-27 12:01:32 -07:00
Mouse Reeve
355a6071ff
Merge branch 'main' into pylint3 2024-07-27 11:48:58 -07:00
Mouse Reeve
cc7250770c
Merge branch 'main' into query-time 2024-07-27 11:48:55 -07:00
Mouse Reeve
e41b27e5f4
Merge branch 'main' into pr-template 2024-07-27 11:48:48 -07:00
Mouse Reeve
eef055159e
Merge pull request #3400 from dato/upgrade_sqlparse
Add an up-to-date sqlparse to requirements.txt
2024-07-27 11:48:38 -07:00
Adeodato Simó
08876512eb Actions: run makemigrations check with increased verbosity 2024-07-27 15:27:09 -03:00
Adeodato Simó
afd44e109c Add an up-to-date sqlparse to requirements.txt
This is used in utils/db.py to format triggers.

A migration is needed for minor whitespace fixes between
0.4.4 and 0.5.1.
2024-07-27 15:19:43 -03:00
Mouse Reeve
f0e5c334e7
Merge pull request #3399 from dato/pylint_useless_suppression_cleanup
pylint suppression cleanup
2024-07-27 09:21:17 -07:00
Mouse Reeve
300eeac0e1
Merge pull request #3374 from bookwyrm-social/landing-page-books
Use a simpler query for books to show on the landing page
2024-07-27 08:47:02 -07:00
Mouse Reeve
dc54f28e17 Type fix 2024-07-27 08:44:44 -07:00
Mouse Reeve
ca822e1b83 Adds query logger to more tests 2024-07-27 08:41:50 -07:00
Mouse Reeve
8ce29849a9
Merge pull request #3393 from bookwyrm-social/dependabot/pip/django-4.2.14
Bump django from 4.2.11 to 4.2.14
2024-07-27 08:36:17 -07:00
Adeodato Simó
0b87aacfce pylint: enable useless-suppression lint and perform cleanup 2024-07-27 03:47:35 -03:00
Adeodato Simó
81ee5e945f pylint: remove unused global suppressions 2024-07-27 03:42:27 -03:00
Adeodato Simó
1a0fbac76c pylint: upgrade to 3.2.6
This only requires fixing:

    E0606: Possibly using variable 'results' before assignment
    E0606: Possibly using variable 'input_type' before assignment
2024-07-27 03:38:47 -03:00
Adeodato Simó
2cdbddca09 .pylintrc: use symbolic names for message suppressions 2024-07-27 03:10:47 -03:00
Bart Schuurmans
ab307388f4
Merge pull request #3384 from lo48576/fix/css-path-prefix-with-s3-backend
Fix CSS path prefix when S3 storage is used
2024-07-14 13:24:02 +02:00
dependabot[bot]
8a235bcda1
Bump django from 4.2.11 to 4.2.14
Bumps [django](https://github.com/django/django) from 4.2.11 to 4.2.14.
- [Commits](https://github.com/django/django/compare/4.2.11...4.2.14)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-10 22:16:44 +00:00
Mouse Reeve
3236003107
Merge pull request #3378 from hughrun/get-books-for-user
possible fix for #3372 - user export timeouts
2024-06-22 20:24:36 -07:00
YOSHIOKA Takuma
1a2f434514
Fix CSS path prefix when S3 storage is used
django-sass-processor 1.4 looks up OPTIONS using `sass_processor`
instead of `staticfiles`.

Fixes #3383.
2024-06-13 05:03:10 +09:00
Mouse Reeve
9984e853e5 Adds test for query that creates bookwyrm export query 2024-06-08 20:10:08 -07:00
Mouse Reeve
b84ca3d03f Uses query duration tester in more places 2024-06-08 19:21:39 -07:00
Mouse Reeve
fdc6ae24bc Adds test class for checking query durations
This is a first pass and I wrote it specifically so that it would fail
on the query in test_book.py
2024-06-08 18:46:25 -07:00
Hugh Rundle
1d4119e853
LOL
remove Q import so pylint doesn't grumble
2024-06-09 10:59:11 +10:00
Hugh Rundle
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
Mouse Reeve
2e675474a9 Reorganizes PR template a bit
I found the template a little overwhelming, so this is an attempt to
make it a little more navigable and slightly less effortful.
2024-06-08 08:31:34 -07:00
Mouse Reeve
3f08d6d8c4 Use a simpler query for books to show on the landing page 2024-06-08 08:18:54 -07:00
Mouse Reeve
3545a1c3b6
Merge pull request #3362 from hughrun/gh-actions
add GitHub templates for PRs and releases
2024-06-01 18:50:26 -07:00
Mouse Reeve
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
Bart Schuurmans
d90e8e56d5
Merge pull request #3341 from Minnozz/django-4.2
Upgrade to Django 4.2
2024-05-31 17:04:17 +02:00
Bart Schuurmans
eca246fc61 Fix lint 2024-05-31 16:59:24 +02:00
Bart Schuurmans
aa2312e8af Merge branch 'main' into django-4.2 2024-05-31 16:52:48 +02:00
Bart Schuurmans
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
Bart Schuurmans
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