Mouse Reeve
0502f6ba42
Merge pull request #3076 from bookwyrm-social/move
...
Add Move activity for user migration (with small change)
2023-11-01 18:19:56 -07:00
Mouse Reeve
86fd62a09e
Merge pull request #3075 from bookwyrm-social/small-migration-fix
...
Adds reverse migration for populate sort title
2023-11-01 18:19:34 -07:00
Mouse Reeve
2137737d9b
Small changes to get blocktrans to work as expected in move code
2023-11-01 17:19:57 -07:00
Mouse Reeve
621cfa7ed2
Merge pull request #2970 from hughrun/move
...
Add `Move` activity for user migration
2023-11-01 17:14:34 -07:00
Mouse Reeve
6f9c7f39fb
Adds reverse migration for populate sort title
...
This doesn't impact much, it just allows you to reverse the migration,
which you would probably (hopefully) only want ot do in development.
2023-11-01 16:24:47 -07:00
Hugh Rundle
c486b9c37e
pylint fixes
2023-10-30 21:47:19 +11:00
Hugh Rundle
df43a8e2c5
Use django-file-resubmit plugin
...
- save cover images to cache when checking author and work for existing records
- fixes #2760
2023-10-30 19:43:39 +11:00
Mouse Reeve
941efb3f72
Merge pull request #3068 from hughrun/3066
...
make options consistent in celery
2023-10-29 17:30:40 -07:00
Hugh Rundle
d2b2cc0521
make options consistent in celery
...
- changes 'broadcasts' to 'broadcast' in Celery page in admin section
- re-orders celery queues on admin page to be in English alphabetical order (other than priority levels) - this makes them consistent with the Flower interface
- fixes #3066
2023-10-29 11:55:06 +11:00
Hugh Rundle
853b5f28a4
add defaults of None to optional AWS values
...
fixes #2989
2023-10-29 11:29:49 +11:00
Hugh Rundle
50ac691126
add alt tag
2023-10-28 06:28:43 +11:00
Hugh Rundle
4d35fd45df
template and migration fixes
2023-10-27 22:22:58 +11:00
Hugh Rundle
6f3b1b565f
fixes to move layout and notifs
...
- make Move notifications less complicated
- moved users cannot do anything other than unmove or log out
- refactor translations for moved users
2023-10-27 22:00:04 +11:00
Adeodato Simó
1952bb6ddc
fix mypy issues
...
The three "ignore" directives are:
- avoid unreadable boilerplate from inherited `Field` methods; and:
- https://github.com/typeddjango/django-stubs/issues/285#issuecomment-600029858
2023-10-24 18:14:05 -03:00
Adeodato Simó
170d1fe205
fix pylint issues (minus no-else-return
)
2023-10-24 17:41:07 -03:00
Adeodato Simó
737ac8e908
Implement PartialDateField using SealedDate and a custom descriptor
2023-10-24 17:30:15 -03:00
Adeodato Simó
9752819bdb
Add support for parsing partial isoformats back
2023-10-24 17:30:13 -03:00
Adeodato Simó
4b47646e28
Fix typing hints in sealed_date module
...
In particular, SealedDate's class methods always return an instance
of the class they're invoked through (i.e., `SealedDate.from_date_parts`
intentionally never returns `MonthSeal` or `YearSeal`).
To propertly annotate this, a type variable is needed (or the much
simpler `Self` in Python 3.11).
2023-10-24 17:29:04 -03:00
Adeodato Simó
5f619d7a39
Implement SealedDateFormField to preserves partial dates
...
Note that Django forms _already_ have suppport for partial date data; we
just need to extend it when converting to Python (using SealedDate instead
of returning an error).
2023-10-24 17:29:00 -03:00
Adeodato Simó
777c8b4549
naturalday_partial filter for working with SealedDate
2023-10-24 04:32:27 -03:00
Adeodato Simó
46d80d56a5
Rename SealedDate.__str__ to partial_isoformat
...
Django uses `str(date)` for backends other than PostgreSQL, so do not
break "YYYY-MM-DD" formatting, just in case.
2023-10-24 04:32:27 -03:00
Adeodato Simó
a9c605ea97
Add SealedDate class for globally-stable, maybe-incomplete dates
2023-10-24 04:32:27 -03:00
Adeodato Simó
52a979da2d
Add failing test case for "January 1st" offset bug
2023-10-24 04:32:27 -03:00
Jascha Ezra Urbach
c9e6dcc2d9
Merge pull request #3053 from bookwyrm-social/develop
...
Release 0.7.0
2023-10-21 18:30:45 +02:00
Jascha Ezra Urbach
00bf2903bc
Bumped version number to 0.7.0 ( #3052 )
2023-10-21 18:29:45 +02:00
Adeodato Simó
698e74a496
Minor vocabulary fixes and structured data improvements ( #3036 )
...
* Remove duplicate Review object under `rating` property
This was preventing validation, since `rating` is not a valid property
(`review` is, which is created from book.html already).
* Drop `bestRating` property in ratings, since it defaults to 5
See <https://schema.org/bestRating > ("If bestRating is omitted,
5 is assumed").
* Create Rating object (and its enclosing Review) in book/rating.html
* Use `position` property for Book objects in a series
`volumeNumber`, previously used, is only valid for objects of type
PublicationVolume (which series members are not).
* Give URL of book series when setting of `isPartOf`
* series.html: Add empty BookSeries object
---------
Co-authored-by: Adeodato Simó <dato@users.noreply.github.com>
2023-10-21 17:53:24 +02:00
Jascha Ezra Urbach
695c67a714
Merge pull request #3051 from bookwyrm-social/jaschaurbach-patch-1
...
Update bump-version.sh
2023-10-21 17:28:55 +02:00
Jascha Ezra Urbach
abb6bcd199
Update bump-version.sh
...
just a little fix
2023-10-21 17:28:44 +02:00
Jascha Ezra Urbach
4e16800b52
Merge pull request #3050 from bookwyrm-social/bump-version-script
...
Create bump-version.sh
2023-10-21 17:18:31 +02:00
Jascha Urbach
4a9d80268a
Create bump-version.sh
...
This scripts reads VERSION (should be semantic version), automatically
suggest a "minor" version update, and ask for input to use either suggestion, or a new value.
creates a pull request with updated VERSION and creates a tag for the new version.
2023-10-21 17:16:55 +02:00
Jascha Ezra Urbach
1685ac1953
Move version out of settings ( #3045 )
...
This removes the content of VERSION from settings.py and moves it into a seperate file which makes it easier to update versionnumbers via script in the future.
2023-10-19 11:29:59 +02:00
Mouse Reeve
2237a7eb9e
Merge pull request #3008 from dato/author_in_citation
...
Cite author in quotations and alt text
2023-10-18 17:31:55 -07:00
Mouse Reeve
caa31de685
Merge pull request #3046 from dato/stylelint-fix
...
Remaining CSS lints and npm exec cleanup
2023-10-18 17:05:52 -07:00
Adeodato Simó
f88a0f8229
Run stylelint to fix remaining issues
...
Including deletion of two duplicate stanzas introduced in 33c13608a8
("Refixing
light and dark themes").
2023-10-18 20:39:12 -03:00
Adeodato Simó
b78d51410b
bw-dev: drop use of npm exec
by setting PATH in Docker image
2023-10-18 20:37:13 -03:00
Adeodato Simó
6392a8e01d
Merge pull request #2032 from viviicat/bw-dev-npm-fix
...
Conflicts:
bw-dev
dev-tools/Dockerfile
bookwyrm/static/css/bookwyrm/_all.scss
bookwyrm/static/css/themes/bookwyrm-dark.scss
bookwyrm/static/css/themes/bookwyrm-light.scss
2023-10-18 18:54:53 -03:00
Jascha Ezra Urbach
912269303e
Merge pull request #2960 from hbrunn/main-systemd-sandboxing
...
Add sandboxing to systemd examples
2023-10-18 21:00:20 +02:00
Jascha Ezra Urbach
abebf82042
Merge pull request #3029 from skmanohar/show-hide-password
...
Show/Hide password icon
2023-10-18 20:34:12 +02:00
Sidharth
25e8b259f7
Show/Hide password icon
2023-10-18 21:33:37 +05:30
Mouse Reeve
3624763073
Merge pull request #3043 from dato/prettier_rerun_final
...
Final prettier re-run
2023-10-17 14:28:48 -07:00
Adeodato Simó
d55e0b6ba3
Final JS update to match 'es5' trailing comma style
...
This is follow-up to cd247a668
("Update .prettierrc").
2023-10-17 17:11:59 -03:00
Jascha Ezra Urbach
06923c64c1
Merge pull request #3003 from dato/book_info_first_pub_date
...
Fallback to showing first published date
2023-10-17 20:16:06 +02:00
Jascha Ezra Urbach
3ade72b90d
Merge pull request #3038 from dato/parsed_date_defaults
...
Stable defaults for incomplete parsed dates
2023-10-17 20:08:04 +02:00
Jascha Ezra Urbach
67f6c0a5a7
Merge pull request #3042 from bookwyrm-social/fix-prettierrc
...
Update .prettierrc
2023-10-17 19:52:10 +02:00
Jascha Urbach
cd247a6689
Update .prettierrc
...
Forgot to change the file pre-merch
2023-10-17 19:49:32 +02:00
Jascha Ezra Urbach
b97dafc303
Merge pull request #3034 from bookwyrm-social/prettier-trailing-comma
...
introduce .prettierrc
2023-10-17 19:32:04 +02:00
Jascha Ezra Urbach
4d352faae3
Merge branch 'main' into prettier-trailing-comma
2023-10-17 19:31:24 +02:00
Jascha Ezra Urbach
f02faa1b74
Merge pull request #3040 from dato/update-node-installation
...
dev-tools: use apt source for Node instead of setup script
2023-10-17 19:13:41 +02:00
Adeodato Simó
1937177e1a
dev-tools: use apt source for Node instead of setup script
...
Extra bits:
- use a single RUN instruction
- silence upgrade notices from pip and npm
2023-10-17 02:26:22 -03:00
Adeodato Simó
3251ef0bf5
Fix creation of covers for ActivityPub imports
...
`cover` comes as a JSON dict, but the code was looking for URL as
an attribute.
(This commit leaves the attribute access in place, just in case
`cover` is updated to serialize as Document proper.)
2023-10-16 17:43:04 -03:00