Commit graph

219 commits

Author SHA1 Message Date
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