Commit graph

9439 commits

Author SHA1 Message Date
Mouse Reeve
7ecf3b65d7
Merge pull request #3451 from Guanchishan/patch-1
Fix IntegrityError caused by duplicate periodic task creation
2024-10-17 15:23:31 -07:00
Mouse Reeve
f1b0e4b9d6
Merge pull request #3432 from hughrun/3426
add test for resolving users with aliases
2024-10-17 14:49:33 -07:00
Mouse Reeve
1923db31b1
Merge pull request #3434 from hughrun/signed_requests
sign all AP requests
2024-10-17 14:13:55 -07:00
Davidzdh
6143aa66e3
Fix IntegrityError when creating periodic tasks
Change PeriodicTask.objects.get_or_create() to PeriodicTask.objects.update_or_create().

This change prevents a potential IntegrityError when creating a periodic task due to duplicate primary key. By using update_or_create, if the record already exists, it will be updated instead of attempting to insert a new record with the same primary key, ensuring the process completes without error.
2024-10-11 20:28:27 +09:00
Hugh Rundle
cfe10fa874
update error message 2024-09-09 10:19:03 +10:00
Mouse Reeve
13381b9b4d
Merge pull request #3435 from hughrun/docker-version
docker-compose 'version' has been deprecated
2024-09-08 17:16:10 -07:00
Hugh Rundle
c0ce22a607
docker-compose 'version' has been deprecated 2024-09-09 10:04:16 +10:00
Hugh Rundle
9c89e0fbaf
sign all AP requests
We have been attempting unsigned GET requests and then if they fail,
sending another signed request within the same loop.

This not only causes single-threaded instances to fail, confusing new
users, but is also unnecessary, since servers that don't require
requests to be signed will just ignore the signed headers.

Signing all AP requests simplifies things and should see a
marginal increase in speed when interacting with new servers
that require signed payloads.
2024-09-09 09:46:04 +10:00
Hugh Rundle
1a93ba0cac
check alias with new user data
Instead of breaking a bunch of existing tests...
2024-09-09 08:47:59 +10:00
Hugh Rundle
ed55e052f6
add test for resolving users with aliases 2024-09-08 18:11:47 +10:00
Mouse Reeve
cbdb59d3cf
Merge pull request #3408 from bookwyrm-social/dependabot/pip/aiohttp-3.10.2
Bump aiohttp from 3.9.4 to 3.10.2
2024-09-02 05:39:26 -07:00
Dato Simó
80248d3c1d Convert min_confidence param to string to appease mypy 2024-08-31 20:16:41 -03:00
Mouse Reeve
904aa6c49a
Merge pull request #3394 from matthewmincher/feature/user-shelf-preview-order
Order user shelf previews by book shelved date
2024-08-27 18:38:21 -07:00
Mouse Reeve
4123478058
Merge pull request #3423 from bookwyrm-social/misc-tests
Adds some unit tests
2024-08-27 18:33:43 -07:00
Mouse Reeve
3555ef9d2e
Merge pull request #3416 from bookwyrm-social/edit-status-header
Sets edit status header to indicate status type
2024-08-27 14:37:26 -07:00
Hugh Rundle
23dfe3924d
Merge pull request #3418 from bookwyrm-social/hide-ratings
Hide ratings
2024-08-27 19:06:07 +10:00
Mouse Reeve
abb97e6044
Merge branch 'main' into edit-status-header 2024-08-26 13:34:49 -07:00
Mouse Reeve
a6912dc0c2
Merge branch 'main' into hide-ratings 2024-08-26 12:35:47 -07:00
Mouse Reeve
df607a0e45
Merge pull request #3419 from bookwyrm-social/test-fix
Uses workaround for test that fails ~sometimes~
2024-08-26 12:35:32 -07:00
Mouse Reeve
bd773f41c7 Uses much simpler approach to ensuring test result order 2024-08-26 11:33:01 -07:00
Mouse Reeve
9f5ca7ae60 Uses workaround for test that fails ~sometimes~ 2024-08-25 17:53:43 -07:00
Mouse Reeve
698a0b113c Adds some unit tests 2024-08-24 14:54:52 -07:00
Mouse Reeve
c9155bdd78 Adds migration 2024-08-23 18:17:36 -07:00
Mouse Reeve
23471f698c Prettifies javascript 2024-08-23 17:41:02 -07:00
Mouse Reeve
612098475a Adds option to show ratings to the user settings panel 2024-08-23 17:34:52 -07:00
Mouse Reeve
f53bb62b2b Allow users to hide ratings in the UI 2024-08-23 17:32:03 -07:00
Mouse Reeve
142ed70d4d Sets edit status header to indicate status type
Fixes #2671
2024-08-23 16:42:39 -07:00
Mouse Reeve
413c26bc5e
Merge pull request #3135 from hughrun/csv
csv import and export fixes
2024-08-23 16:29:04 -07:00
Mouse Reeve
7ff1ab974e
Merge pull request #3411 from timothyjrogers/fix-link-verification-modal-unauthenticated-buttons
Narrowed is_authenticated check in verfication_modal to only restrict…
2024-08-12 19:11:07 -07:00
Tim Rogers
cf61279e18 Narrowed is_authenticated check in verfication_modal to only restrict report button 2024-08-12 19:56:26 -05:00
Mouse Reeve
6ec3783736
Merge branch 'main' into dependabot/pip/aiohttp-3.10.2 2024-08-11 17:12:21 -07:00
Mouse Reeve
cf753afaa9
Merge pull request #3410 from timothyjrogers/trim-search-whitespace
Trim search whitespace
2024-08-11 17:12:04 -07:00
Tim Rogers
f68e33ffc6 Added additional test cases for searches with leading and trailing whitespace 2024-08-11 14:02:24 -05:00
Tim Rogers
2bb77d9bf8 Updated search view to trim leading and trailing whitespace for author, book, and list query values 2024-08-11 13:01:48 -05:00
Hugh Rundle
7fc54c509c
fixes for bookwyrm csv import
- fix tests
- revert change to GenericImporter tests
- import the review name
- add extra properties to ImportItem
2024-08-10 16:37:30 +10: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]
fc33edb749
Bump aiohttp from 3.9.4 to 3.10.2
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.4 to 3.10.2.
- [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.4...v3.10.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-09 18:22:34 +00: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
Hugh Rundle
8aba8caae9
merge migration 2024-07-28 21:08:14 +10: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
43577f3ca0
Merge branch 'main' into csv 2024-07-27 12:26:21 -07: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