Mouse Reeve
e7c5b77b4c
Removes unused connector fields and adds active boolean
2021-05-11 09:54:04 -07:00
Mouse Reeve
e15d6654e3
Free text field for the site footer
2021-04-30 10:42:27 -07:00
Mouse Reeve
6551c59c45
Don't store default edition in the dataase
2021-04-28 16:05:17 -07:00
Mouse Reeve
85297426e0
Adds merge migration
2021-04-26 14:33:16 -07:00
Mouse Reeve
64c2313a5d
Merge branch 'main' into inventaire
2021-04-26 14:22:05 -07:00
Mouse Reeve
3ade2d3bb1
New version of black, new whitespace
2021-04-26 09:15:42 -07:00
Mouse Reeve
f9c40aadd9
Python formatting
2021-04-22 18:30:58 -07:00
Mouse Reeve
74ccaf27fa
Tag removal migration
2021-04-22 18:23:23 -07:00
Mouse Reeve
c7daf27baf
Adds migration for last edited by field
2021-04-22 09:06:26 -07:00
Pablo Barton
f6824268ed
584 sorting of lists
2021-04-16 22:17:15 -04:00
Mouse Reeve
878b3c6fe8
Only reactivate appropriate users when undoing domain block
2021-04-12 10:16:03 -07:00
Mouse Reeve
93fe091034
Adds field for user deactivation reason
2021-04-12 09:51:10 -07:00
Mouse Reeve
96d15d3d57
Adds merge migration
2021-04-11 10:05:36 -07:00
Mouse Reeve
77caf1a8fa
Merge branch 'main' into domain-block
2021-04-11 10:02:11 -07:00
Mouse Reeve
cca7c9a98a
Adds merge migrations
2021-04-10 09:35:03 -07:00
Mouse Reeve
13d54871b7
Merge branch 'main' into domain-block
2021-04-10 09:26:01 -07:00
Mouse Reeve
ee6f37d7d2
python formatting
2021-04-08 15:11:16 -07:00
Mouse Reeve
779377bd0c
Makes localname case insensitive
2021-04-08 09:00:32 -07:00
Mouse Reeve
8261fbf86a
Updates federated server model with notes field
...
Also makes it more editable, and changes the status types
2021-04-07 11:28:31 -07:00
Mouse Reeve
e3e28973f1
Adds merge migration
2021-04-07 11:24:09 -07:00
Mouse Reeve
4e0225749d
Merge branch 'main' into domain-block
2021-04-07 11:23:15 -07:00
Mouse Reeve
7c5f078682
Adds missing migration for #898
2021-04-07 10:33:56 -07:00
Mouse Reeve
fec3d63e46
Python formatting
2021-04-06 18:17:33 -07:00
Mouse Reeve
82c2f2eeb1
Adds more author identifier fields
2021-04-06 17:46:06 -07:00
Mouse Reeve
bfdcf611e7
Adds inventaire identifier to book data fields
2021-04-06 13:54:57 -07:00
Mouse Reeve
f30d05acfc
Update connector model to add new connector
2021-04-06 10:40:13 -07:00
Mouse Reeve
194fcb8055
Adds migration for federated server table statuses
2021-04-05 15:54:20 -07:00
Mouse Reeve
45d229d712
Makes outbox an optional field on the user table
2021-04-02 07:35:56 -07:00
Mouse Reeve
634509a7f3
Associate users with their invites
2021-04-01 17:20:02 -07:00
Pablo Barton
b0dc5f3f93
357 Users set preferred timezone, used for readthroughs
2021-03-28 19:16:43 -04:00
Mouse Reeve
320dfd1a59
Python formatting
2021-03-24 08:39:37 -07:00
Mouse Reeve
1707bba8a8
Adds ordering to status model
2021-03-24 08:37:25 -07:00
Mouse Reeve
abde06a700
Pytohn formatting
2021-03-21 16:47:09 -07:00
Mouse Reeve
16994908d8
Lets users opt in to directory
2021-03-21 14:45:11 -07:00
Mouse Reeve
81ab73f309
Black formatting
2021-03-20 20:19:27 -07:00
Mouse Reeve
5e24b438ff
Placeholders for send/ignore request flows
2021-03-20 20:16:13 -07:00
Mouse Reeve
4d07cb1eb5
Adds invite request model
2021-03-20 18:27:30 -07:00
Mouse Reeve
396a43136d
Black formatting
2021-03-20 18:04:10 -07:00
Mouse Reeve
d3a4282f11
Show progress on status
2021-03-20 18:03:20 -07:00
Mouse Reeve
2a612f7278
Formatting
2021-03-20 17:39:05 -07:00
Mouse Reeve
daa0268eb3
Update progress with comments
2021-03-20 17:35:10 -07:00
Mouse Reeve
1b5c71c7b1
formatting
2021-03-19 12:44:30 -07:00
Mouse Reeve
5a0723cde7
Migrations for django 3.1 upgrade
2021-03-19 12:43:36 -07:00
Mouse Reeve
5ed3320c9b
Formatting
2021-03-19 12:16:44 -07:00
Mouse Reeve
266c6fe777
Make rating a decimal field
2021-03-19 12:14:59 -07:00
Mouse Reeve
48a5232ebb
Formatting
2021-03-18 09:06:00 -07:00
Mouse Reeve
9a20b5dbd5
Hide goal using database field instead of localstorage
2021-03-18 09:00:25 -07:00
Mouse Reeve
550eba1f68
Black formatting
2021-03-16 12:59:25 -07:00
Mouse Reeve
e5750de3dd
Notify admins when a report is filed
2021-03-16 12:57:23 -07:00
Mouse Reeve
848edd2972
Adds missing migration for reports model
2021-03-12 16:32:11 -08:00
Mouse Reeve
0d2c641d01
Reformats report model
2021-03-09 12:57:38 -08:00
Mouse Reeve
21f199c548
Make reports
2021-03-08 18:36:50 -08:00
Mouse Reeve
e59c127686
Adds models for reporting
2021-03-08 17:16:59 -08:00
Mouse Reeve
5fe989e20f
Formats migrationwq
2021-03-08 09:58:07 -08:00
Mouse Reeve
84534a2991
Adds merge migration
2021-03-08 09:54:53 -08:00
Mouse Reeve
3bdfc341e4
Runs black
2021-03-08 09:54:02 -08:00
Mouse Reeve
ad43e5c83a
Merge branch 'main' into review-rate
2021-03-08 09:48:25 -08:00
Mouse Reeve
70296e760b
Runs black
2021-03-08 08:49:10 -08:00
Henri Bourcereau
703ff60271
isbn search
2021-03-06 18:09:15 +01:00
Mouse Reeve
0cf2baccac
Adds merge migration
2021-02-28 10:40:10 -08:00
Mouse Reeve
5bc4456d4e
Merge branch 'main' into review-rate
2021-02-28 10:35:20 -08:00
Mouse Reeve
7622bef35d
Adds separate privacy policy section
2021-02-27 11:53:36 -08:00
Joel Bradshaw
717cbe3034
Use very fancy SQL nonsense
...
This should be more efficient than running the queries one by one
2021-02-26 23:12:39 -08:00
Joel Bradshaw
ee7388052c
Use SQL parameters, and make unconvert work
...
DBAs don't want you to know about this One Simple Trick
2021-02-26 22:57:26 -08:00
Mouse Reeve
2e36cfbcf6
Creates new semi-functional migration
2021-02-25 14:58:09 -08:00
Ilona Brand
73c30e8c9a
Add user default privacy setting to the privacy_select and user preferences
2021-02-13 19:42:25 -06:00
Mouse Reeve
06feef44ad
Merge branch 'main' into review-rate
2021-02-12 18:33:05 -08:00
Mouse Reeve
3aa7f8afe0
Safer migration runpython function
2021-02-10 17:30:26 -08:00
Mouse Reeve
2bf4b17113
Adds notification type referencing lists
2021-02-10 13:15:12 -08:00
Mouse Reeve
9561bb2294
Adds reverse runpython for migration
2021-02-09 11:21:43 -08:00
Mouse Reeve
ad7a045582
Makes shelbook user required
2021-02-07 11:29:13 -08:00
Mouse Reeve
7381536ad6
circular import issues and added_by migration
2021-02-04 14:27:26 -08:00
Mouse Reeve
dfb5c396b0
Moves activitypub mixin to its own file
2021-02-04 10:47:18 -08:00
Mouse Reeve
23ce639e5c
migration to change privacy field type
2021-02-02 09:41:24 -08:00
Mouse Reeve
d73a1b4ec1
handles list privacy in display
2021-01-31 08:41:11 -08:00
Mouse Reeve
fe088f21fb
Model and migration for lists
2021-01-30 21:00:36 -08:00
Joel Bradshaw
ed83032330
Fix migration for if db has multiple empty emails
...
If the database has multiple users with an empty email column, this
migration will fail because multiple empty strings break the unique
constraint.
A fresh database won't have this problem because it won't have any
legacy users with empty strings instead of NULL, but for existing
databases we need to convert the empty strings to NULL so they don't run
awry of the unique constraint.
2021-01-24 16:39:26 -08:00
Mouse Reeve
3db0de3dd4
Makes pages/percents toggle-able in sidebar
2021-01-22 09:19:02 -08:00
Joel Bradshaw
57607c3590
Regenerate merge migration
2021-01-19 23:53:42 -08:00
Joel Bradshaw
85edee42ef
Merge branch 'main' into progress_update
2021-01-19 23:49:35 -08:00
Mouse Reeve
328ebc39c1
Adds migration
2021-01-19 07:38:12 -08:00
Joel Bradshaw
79e284e5be
Just scootch the migration merge up
2021-01-18 19:59:40 -08:00
Joel Bradshaw
29140be78e
Merge branch 'main' into progress_update
2021-01-18 19:41:06 -08:00
Mouse Reeve
96cc9d44db
Fixes email migration
2021-01-18 11:57:20 -08:00
Mouse Reeve
8a00c7741a
Nullable email
2021-01-18 11:51:51 -08:00
Mouse Reeve
11dd8c8f82
Allow users to log in with email or username
2021-01-18 11:06:28 -08:00
Joel Bradshaw
0af4863568
Update merge migration
2021-01-17 13:21:26 -08:00
Joel Bradshaw
a4519d55c9
Merge branch 'main' into progress_update
2021-01-17 13:05:38 -08:00
Mouse Reeve
112b9f9332
Create goal with privacy
2021-01-16 11:34:19 -08:00
Mouse Reeve
b648012af5
Adds form and models for reading goal
2021-01-16 08:18:54 -08:00
Joel Bradshaw
1e13997c5d
Create an actual user, add missing file
...
Also allow `./bw-dev up -d`
I'm not sure why this was necessary, but it makes enough sense
2021-01-13 23:02:56 -08:00
Joel Bradshaw
48147883ce
Merge branch 'main' into progress_update
2021-01-13 19:53:26 -08:00
Joel Bradshaw
ec2a43faa5
Fix error in migrations
...
I was getting the following error when running 0035:
AttributeError: 'Edition' object has no attribute 'get_rank',
But that line seems to be unnecessary, since save() does the same thing,
and we are already calling that.
2021-01-13 18:37:05 -08:00
Mouse Reeve
83852e29eb
Update edition ranks when work is saved
2021-01-11 10:02:49 -08:00
Mouse Reeve
6db64e33e4
set rank on editions
2021-01-11 09:29:23 -08:00
Mouse Reeve
b44b42be7e
Adds rank field to edition model
2021-01-11 09:18:40 -08:00
Mouse Reeve
d04271af75
Adds field on import job to check if job completed
...
the task isn't a reliable indicator, unfortunately.
2021-01-07 08:08:12 -08:00
Mouse Reeve
c8d53ee0df
Adds site invite created date
2021-01-05 11:38:03 -08:00
Mouse Reeve
ff9caf3d51
Fixes migration version numbering
2021-01-04 21:39:57 -08:00
Mouse Reeve
a73f51ad78
Merge branch 'main' into review-rate
2021-01-04 13:42:39 -08:00
Mouse Reeve
0f4a30324e
Makes more about instance text customizable
2021-01-04 12:58:31 -08:00
Mouse Reeve
0c0e9bebdf
Use uploaded logos in templates
2021-01-04 12:47:10 -08:00
Mouse Reeve
7cc2dfe517
Merge branch 'main' into logo-default
2021-01-04 12:18:40 -08:00
Mouse Reeve
dad202823a
Moves review re-structing into separate migration
2021-01-01 15:37:32 -08:00
Mouse Reeve
385ec4d70a
Adds ReviewRating model
...
I can't just calling Rating because that would clash with the rating
field
2021-01-01 11:51:52 -08:00
Mouse Reeve
e89bfdc572
Makes registration user/localname fields more sensible
2020-12-24 11:39:57 -08:00
Mouse Reeve
cfa1a1b42c
Remove sync fields and share fields between book and author
2020-12-21 12:17:18 -08:00
Mouse Reeve
aac264c998
Generate author_text field dynamically
2020-12-21 12:10:42 -08:00
Mouse Reeve
60738011a2
user's name and bio field are optional
...
get it together, mouse
2020-12-20 12:09:19 -08:00
Mouse Reeve
b796686483
Adds cw field
2020-12-16 19:20:15 -08:00
Mouse Reeve
a3c7d324d6
Sanitize incoming html
2020-12-16 16:47:23 -08:00
Mouse Reeve
5dbacb3524
Merge branch 'main' into switch-edition
2020-12-16 09:22:04 -08:00
Mouse Reeve
b2c1bc1481
Migration consistency
2020-12-16 09:20:24 -08:00
Mouse Reeve
af823cf645
Merge migration
2020-12-15 17:53:20 -08:00
Mouse Reeve
61041a0dba
Adds migration for privacy field
...
no actual change here, but it's a new field type
2020-12-13 21:11:53 -08:00
Mouse Reeve
b36eaef172
Merge branch 'main' into switch-edition
2020-12-13 21:10:37 -08:00
Mouse Reeve
d3371991e1
Remove deleted util file from migrations
2020-12-12 20:18:03 -08:00
Mouse Reeve
823da2e7de
Re-create migration
2020-12-12 16:14:41 -08:00
Mouse Reeve
ae07bbffb7
Merge branch 'main' into logo-default
2020-12-12 16:03:23 -08:00
Mouse Reeve
31a407d74a
Use name field only for author name
...
It feels janky to remove a more granular name designation, but all these
first/last name fields were algorithmically populated by a dubious
process of splitting the name by a space character. If it makes sense to
have first/last name fields, it should be re-added with some
consideration.
2020-12-12 09:53:21 -08:00
Mouse Reeve
a176c6cd35
Creates merge migration
2020-12-12 09:38:05 -08:00
Mouse Reeve
801b6c3a77
Merge branch 'main' into follow-remote-ids
2020-12-12 09:34:54 -08:00
Mouse Reeve
716068474e
Merge branch 'main' into switch-edition
2020-12-11 16:59:59 -08:00
Mouse Reeve
117d243577
Expand site settings and add footer
2020-12-11 12:31:02 -08:00
Mouse Reeve
4d4ee8b8c3
Starts getting reverse fields working for deserialization
...
also fixes the fields on the image model and runs a long overdue
migration
2020-12-07 18:28:42 -08:00
Mouse Reeve
a85043b351
Updates to_model to use fields
2020-12-03 12:35:57 -08:00
Mouse Reeve
8bc0a57bd4
Remove outdated user fields
2020-11-30 11:40:04 -08:00
Mouse Reeve
74a58e5267
Use custom model fields in user model
2020-11-30 10:32:29 -08:00
Mouse Reeve
e9be31e9c1
merge migrations
2020-11-28 19:06:40 -08:00
Mouse Reeve
dfd730757d
handle unset default editions
2020-11-28 17:42:09 -08:00
Joel Bradshaw
7fadbeeb55
Merge branch 'main' into progress_update
2020-11-28 11:06:01 -08:00
Mouse Reeve
fd7e476c9b
refactors tag model to fit ordered collection structure
2020-11-28 11:04:54 -08:00
Mouse Reeve
a93b5cf5bc
Use remote_id resolver to load books, user
2020-11-28 10:18:24 -08:00
Joel Bradshaw
a951f20ff6
Add a couple forgotten files
2020-11-28 00:36:01 -08:00
Mouse Reeve
86cbb3edbd
Merge branch 'main' into activitypub-cleanup
2020-11-27 20:13:32 -08:00
Mouse Reeve
4626d94ab9
handle image attachments recursively
2020-11-27 20:11:46 -08:00
Mouse Reeve
624ff71a11
Makes attachment Images a serializable class
2020-11-27 17:20:01 -08:00
Joel Bradshaw
3cb28273c4
Merge branch 'main' into progress_update
2020-11-27 17:05:54 -08:00
Joel Bradshaw
d8b2afff3d
Replace naive datetimes with aware ones
2020-11-27 16:35:03 -08:00
Joel Bradshaw
3b0b8f16f6
Merge migration branches
...
Also add $@ to bw-dev migrations, and factor the shift 1 out
2020-11-27 16:08:04 -08:00
Joel Bradshaw
85026b837c
Merge branch 'main' into progress_update
2020-11-27 15:52:55 -08:00
Joel Bradshaw
64fb88cc10
ProgressUpdate doesn't need its own date field
...
Just use the base model's created_date
2020-11-25 23:03:32 -08:00
Mouse Reeve
7b4847852a
Merge migrations manually
2020-11-24 13:42:47 -08:00
Mouse Reeve
3dc0fc7e8f
Merge branch 'main' into edit-books-erros
2020-11-24 13:40:53 -08:00
Mouse Reeve
9bbedc5d9a
Fixes field causing form invalidation when editing books
2020-11-24 13:25:58 -08:00
Mouse Reeve
ff5a0f7bc2
Adds alt text to status images
2020-11-24 11:44:13 -08:00
Mouse Reeve
ad7ce6595b
Receive and save incoming images
2020-11-24 11:25:07 -08:00
Mouse Reeve
88e4705717
Use attachment database table
2020-11-23 20:42:05 -08:00
Mouse Reeve
dab0aeffb2
Adds image attachment field to status model
2020-11-23 12:48:41 -08:00
Joel Bradshaw
c9b2b4efac
Add migration for ProgressUpdate
2020-11-16 23:54:03 -08:00
Mouse Reeve
86504989b4
fixes import matching with local books
2020-11-13 09:59:57 -08:00
Mouse Reeve
e3a803b907
Allow import retry
2020-11-13 09:02:41 -08:00
Mouse Reeve
ab0f9230c7
Adds privacy setting to shelves
2020-11-10 13:39:58 -08:00
Mouse Reeve
ff96835c2a
Migrate default edition field to work model
...
Fixes #281
2020-11-04 11:27:49 -08:00
Mouse Reeve
8a4e00c6b9
migrations are fucked
2020-11-02 16:17:48 -08:00
Mouse Reeve
76a4f0e9a7
Merge migration
2020-11-01 11:13:34 -08:00
Mouse Reeve
8ae9519bf2
Merge branch 'main' into mention_users
2020-11-01 11:09:16 -08:00
Mouse Reeve
0cf1838276
Mention and notify users when creating a status
2020-11-01 10:13:51 -08:00
Mouse Reeve
4e02a8df99
Track when user was last active
...
fixes #10
2020-11-01 09:20:35 -08:00
Mouse Reeve
02265b1e49
Show federated servers and connectors in admin
2020-10-31 12:45:39 -07:00
Mouse Reeve
a17f54e457
Fixes federation bugs
2020-10-30 15:22:20 -07:00
Mouse Reeve
c9354a5ad1
Make federated server blankable
2020-10-30 13:11:13 -07:00
Mouse Reeve
0b0de12968
Allow users to set privacy on imported reviews
...
or not import them at all. Fixes #252
2020-10-30 11:21:02 -07:00
Mouse Reeve
7fb593af8c
Remove status associated with import
2020-10-29 16:48:28 -07:00
Mouse Reeve
6243cf0e4a
uses enum for post privacy database field
2020-10-26 14:33:02 -07:00
Mouse Reeve
1cc0c14f86
Deleted date should be null-able
...
Fixes #240
2020-10-20 18:50:39 -07:00
Mouse Reeve
d1d339225c
Merge migrations
2020-10-16 17:11:17 -07:00
Mouse Reeve
1672c699e5
Merge pull request #239 from mouse-reeve/deletion
...
Deletion
2020-10-16 17:03:34 -07:00
Mouse Reeve
7f579ffefa
Read incoming deletion activities
2020-10-16 17:00:10 -07:00
Mouse Reeve
2a0af0138d
Uses activitypub mixin in relationship models
...
plus tests
2020-10-16 10:37:33 -07:00
Mouse Reeve
7a9d6099fc
Use triagram similarity for user search
2020-10-14 10:04:03 -07:00
Mouse Reeve
22410e3f47
Adds deleted database fields to Status
2020-10-14 09:20:36 -07:00
Mouse Reeve
94fc365a52
Allow logo upload
2020-10-05 16:07:53 -07:00
Mouse Reeve
0a9809e6b3
Email should *not* be unique
...
turns out this is jank-city when you try to federate
2020-10-05 14:48:26 -07:00
Mouse Reeve
93738bb48c
Uses fixed string as site name
...
The domain is *better* but it was causing the makemigrations to trigger
whenever the domain name in .env changes, which is a real hassle with
a free version of ngrok
2020-10-05 14:42:15 -07:00
Mouse Reeve
8433d8bf41
Make user email addresses unique
2020-10-02 14:56:37 -07:00
Mouse Reeve
d4b18678bd
Forgot password flow
2020-10-02 13:32:19 -07:00
Mouse Reeve
a2b3a79181
Adds missing migrations
2020-09-28 18:25:35 -07:00
Mouse Reeve
585c66b64f
Fixes capitalization syntax in new migration
2020-09-21 08:37:49 -07:00
Mouse Reeve
13a8bb45af
Corrects references in tests
2020-09-21 08:22:58 -07:00
Mouse Reeve
c7883cd615
Updates migrations
...
To get the app working again I ran resetdb, let it crash in initdb,
then ran the migration, then re-ran initdb
2020-09-21 08:10:37 -07:00
Mouse Reeve
f77c156733
rename main code directory
2020-09-17 13:30:54 -07:00