1
0
Fork 0
Commit graph

723 commits

Author SHA1 Message Date
Josh Soref
d640bc9b1c spelling: nonexistent
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
0b30373bd3 spelling: mention'd
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
3b9828c0fc spelling: existing
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
3850183e95 spelling: doesn't
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
f1640399e3 Python formatting 2023-03-29 10:13:44 -07:00
4fcb01805e Fixes test comparison string 2023-03-29 09:14:30 -07:00
8a0e88db83 Adds test for links with # symbols 2023-03-29 08:39:41 -07:00
42dd199084 Unit test that identifies clashes between links and mentions 2023-03-29 08:28:45 -07:00
0cebc4388c Adds unit tests for referer helper 2023-03-20 12:47:21 -07:00
12af5992a3
Merge pull request #2524 from chdorner/feature/tag-support
Initial hashtag support
2023-03-12 16:37:39 -07:00
50a81bdfdd Change CSV export to buffer instead of streaming
The idea behind a streaming CSV export was to reduce the amount of
memory used, by avoiding building the entire CSV file in memory before
sending it to the client. However, it didn't work out this way in
practice: the query objects that were created to represent each line
caused Postgres to generate a very large (~200MB on bookwyrm.social)
temp file, not to mention the memory being used by the Query object
likely being similar to, if not larger than that used by the finalized
CSV row.

While we should in the long term run our CSV exports as a Celery task,
this change should allow CSV exports to work on large servers without
causing disk-space problems.

Fixes: #2157
2023-03-08 21:37:56 -05:00
Christof Dorner
9ca9883e0b Enable finding existing hashtags case-insensitive
We should store hashtags case-sensitive, but ensures that an existing
hashtag with different case are found and re-used. for example,
an existing #BookWyrm hashtag will be found and used even if the
status content is using #bookwyrm.
2023-03-07 13:16:45 +01:00
Christof Dorner
f3334b1550 Render hashtag links with data-mention="hashtag" attribute 2023-03-07 13:16:45 +01:00
Christof Dorner
499aace9fb Add basic view listing activities from a given hashtag 2023-03-07 12:59:32 +01:00
Christof Dorner
ba0fcccfc5 Link hashtags in status content 2023-03-07 12:55:36 +01:00
Christof Dorner
c68304a99b Parse hashtags and store them in CreateStatus view 2023-03-07 12:55:36 +01:00
3a67727a9a
Merge pull request #2638 from Giebisch/page-range
Page Range
2023-02-27 17:39:42 +11:00
0a07607240 Improves discover page test so it catches errors
Without `select_subclasses` in the mock, it wasn't actually collecting
any statuses to display, so errors on that view weren't caught in this
test.
2023-02-22 08:43:13 -08:00
Giebisch
21575fbf3f Unused variable fix 2023-02-06 14:09:53 +01:00
Giebisch
f65e0b7632 Add Quotation endposition test 2023-02-06 14:00:04 +01:00
8a65296c29
Merge pull request #2618 from hughrun/tests
use mocks for isni API calls
2023-01-26 06:06:05 -08:00
4b6678903f
Merge pull request #2617 from bookwyrm-social/follow-priority
Make follow activities a high priority
2023-01-26 06:03:57 -08:00
1fe6892d0a pylint 2023-01-26 16:54:14 +11:00
aa6eaccfbb use mocks for isni API calls
- fixes a couple of tests making author ISNI calls
- notes a future TODO to remove some possibly useless code
2023-01-26 16:22:50 +11:00
9fdcc7debd Fixes mocks in tests 2023-01-25 09:32:45 -08:00
Giebisch
70f4d72322 Added Tests for several RSS Feeds 2023-01-20 23:28:50 +01:00
Christof Dorner
1c6548a0ad Ensure transient cover_url field value gets persisted across form renders
Given this field doesn't map to an `Edition` model field it lost its values when re-rendering the form.
It worked only when the form was valid and rendered as part of the confirmation screen, which is due to
the context data value being set in `add_authors` which was only getting called after the form validation.

I've opted to pull it out into a separate new function that gets called before form validation.
2023-01-04 18:02:04 +01:00
7ff654720c updates tests 2022-12-16 14:45:32 -08:00
89478ac87e
Merge pull request #2491 from chdorner/register-tz-support
Detect preferred timezone via JavaScript on register
2022-12-11 14:49:29 -08:00
Christof Dorner
13b262bb7b Detect preferred timezone via JavaScript on register 2022-12-11 23:32:07 +01:00
734fb5ad34
Merge pull request #2489 from chdorner/user-reviews-comments-tab
Add new user tab listing only reviews and comments
2022-12-11 11:53:31 -08:00
c314c9b5e3
Adds email config admin view (#2494)
This view lets you see your email configuration and send a test email.
2022-12-11 11:37:09 -08:00
ac8b060d58
Isfdb ID for books and authors (#2482)
* New ID: Audible ASIN

Audible belongs to Amazon BUT they do not share the same IDs. The Audible ASIN of an audiobook is never the same as the Amazon ASIN.

Yeah, I know, Amazon is great. The fact that the ASIN is a good distinction for different works and editions bothers me more than I will ever be willing to admint.

* New ID "ISFDB"

Internet Speculative Ficiton Database ID for books and authors.
Links to the entry if set.

* Added aasin to test

Added aasin to test

* the answer expects more emptxy fields...
2022-12-11 11:33:33 -08:00
Christof Dorner
fbd8e22b97 Add new user tab listing only reviews and comments 2022-12-11 20:24:00 +01:00
26a05d2182 Adds tests for impressum page 2022-12-04 13:13:05 -08:00
5172f67c35
Merge pull request #2450 from bookwyrm-social/impressum
Adds database fields for legal page/impressum
2022-12-04 12:12:26 -08:00
b7b7b2680e Fixes unit test 2022-12-04 11:44:42 -08:00
81ab08aaa3 Fixes editing links 2022-11-25 08:28:45 -08:00
f95729a0c3 Adds unit test for failing view 2022-11-15 21:45:06 -08:00
317cf5fcf5 Generate fewer add_status_tasks
Previously, every time a status was saved, a task would start to add it
to people's timelines. This meant there were a ton of duplicate tasks
that were potentially heavy to run. Now, the Status model has a "ready"
field which indicates that it's worth updating the timelines. It
defaults to True, which prevents statuses from accidentally not being
added due to ready state.

The ready state is explicitly set to false in the view, which is the
source of most of the noise for that task.
2022-11-15 14:14:32 -08:00
49d0590599 Another tweak to how import wait times are calculated 2022-11-10 13:59:27 -08:00
eae1866992
Allow users to temporarily deactivate their accounts (#2324) 2022-11-10 13:40:54 -08:00
f80e2465ed Adds tests for recent import average time 2022-11-10 12:29:36 -08:00
b64f0511a5 Another mock 2022-11-07 10:07:37 -08:00
141d3aa813 Updates mocks in tests 2022-11-07 09:50:05 -08:00
6e748c5476 Typo fix 2022-11-05 18:16:59 -07:00
14e61fa32d Adds extremely basic tests file 2022-11-03 10:55:21 -07:00
0ba4dbbc6f Fixes pagination and user links on import admin 2022-11-03 10:54:59 -07:00
881d5682e3 Updates test mock 2022-11-01 18:20:56 -07:00
905aa66f38 add test_post_login_with_2fa 2022-10-15 07:47:20 +11:00