rr-
a22fe306d1
server/posts: fix deleting posts with relations
2016-08-31 22:49:45 +02:00
rr-
243ab15b85
server/tags: add order to tag names
...
The better implementation of a224297
.
Fixes ability to reorder tag aliases, especially - the ability to change
the tag's primary name after it was created. Until now, both of these
scenarios needed sad workarounds on the user part.
2016-08-28 20:00:50 +02:00
rr-
bb369efa99
server/general: disable autoflush
2016-08-26 14:41:05 +02:00
rr-
280a55046a
server/db: make query counter thread-local
2016-08-24 12:31:55 +02:00
rr-
80af79779d
server/snapshots: rewrite
2016-08-16 21:51:25 +02:00
rr-
6c29377f6b
server/db: allow full DSN; use memdb in tests
...
The earlier commit is still relevant as it allows to integrate real
database when needed.
2016-08-16 21:42:09 +02:00
rr-
e688f39887
server/db: specify nullable for foreign keys
...
This is mostly stylistic change, but it clearly shows the intended
behavior should we detect more integrity violation errors.
2016-08-16 17:22:33 +02:00
rr-
522886ae6c
server/db: fix user cascade deletions
2016-08-16 17:22:33 +02:00
rr-
a224297c4f
server/db: poor fix for tag aliases' order
...
It's a hack, but it seems to work okay.
2016-08-16 17:22:33 +02:00
rr-
0320a0b55b
server/general: improve versioning effectiveness
...
...by integrating it with sqlalchemy that adds WHERE conditions for each
UPDATE and DELETE statement.
2016-08-16 17:22:33 +02:00
rr-
9aea55e3d1
server/general: embrace most of PEP8
...
Ignored only the rules about continuing / hanging indentation.
Also, added __init__.py to tests so that pylint discovers them. (I don't
buy pytest's BS about installing your package.)
2016-08-14 16:44:03 +02:00
rr-
8d04df38fd
server/general: add entity versions
2016-08-07 09:55:51 +02:00
rr-
2429e95102
server/users: fix cascade deletions
2016-08-02 12:27:01 +02:00
rr-
ff189a3915
server/posts: fix deleting post with comments
2016-08-02 12:27:01 +02:00
rr-
b7f2982c9e
server/posts: fix relations bidirectionality
2016-07-17 21:14:03 +02:00
rr-
c21494be25
server/posts: make relations bidirectional
2016-07-03 18:30:32 +02:00
rr-
7eec347bca
server/tags: add description field
2016-06-23 00:15:25 +02:00
rr-
1019062698
server/users: fix fetching columns
2016-06-16 23:42:36 +02:00
rr-
48cf3b47c0
server/users: don't fetch stats eagerly
2016-06-14 07:50:22 +02:00
rr-
6b68c77e17
server/posts: add relation-count token
2016-06-13 20:09:15 +02:00
rr-
a67db59d99
server/comments: fix serializing cached scores
2016-06-12 14:01:38 +02:00
rr-
caecaee785
server/users: offer more stats in user entity
2016-06-03 21:46:25 +02:00
rr-
48bcbbff83
server/search: improve performance
2016-05-30 20:51:52 +02:00
rr-
77998f1660
server/tags: let mods set default category
2016-05-22 22:17:11 +02:00
rr-
59ae0a4c9a
server/db: maintain order of tag aliases
...
First alias has a special meaning in certain contexts, such as post
serialization, where only one alias is chosen to show to the client.
2016-05-11 18:32:53 +02:00
rr-
ba3678dec1
server/posts: implement FLAG_MAP
2016-05-10 12:15:33 +02:00
rr-
4ec842024c
server/users: implement RANK_MAP
2016-05-10 12:15:33 +02:00
rr-
cd15cdff7a
server/scores+favorites: merge duplicate code
2016-05-10 12:15:05 +02:00
rr-
3481c1072d
server/general: fix a few pylint warnings
2016-05-10 12:02:24 +02:00
rr-
fcbfa90879
serevr/tags: fix search by post count and category
2016-05-09 22:36:29 +02:00
rr-
f39e58b1bc
server/db: create indexes
2016-05-09 09:43:00 +02:00
rr-
356d5050fd
server/tools: add v1.x migration script
2016-05-08 23:26:46 +02:00
rr-
2330cf017d
server/db: fix mappings
...
Post notes had mixed up column types. I fixed that and at the same time,
I took the opportunity to convert everything into Unicode. Also, I've
changed existing migrations rather than creating new ones - it's not
like we're even close to alpha...
2016-05-08 22:18:13 +02:00
rr-
d813601d92
server/api: log queries in debug mode
2016-05-08 20:33:16 +02:00
rr-
198cb0af3e
server/users: hardcode available ranks
2016-05-08 16:59:25 +02:00
rr-
58964bcdc9
server/posts: add post listing
2016-05-07 21:50:37 +02:00
rr-
ce095816d9
server/posts: add post creating
2016-05-02 00:07:33 +02:00
rr-
83cc7a568d
server/posts: add post (un)favoriting
2016-04-28 19:04:44 +02:00
rr-
587a8f8276
server/posts: add post retrieving
2016-04-25 10:48:15 +02:00
rr-
52f4018bee
server/comments+posts: add rating
2016-04-24 16:37:11 +02:00
rr-
093863b944
server/comments: add comment tables
2016-04-24 10:31:49 +02:00
rr-
cf00a3a2de
server/posts: add post featuring
2016-04-22 20:58:04 +02:00
rr-
14059de1d7
server/db: add more post tables
2016-04-22 18:36:12 +02:00
rr-
c2a39a0fd5
server/snapshots: change snapshot representation
2016-04-21 19:01:41 +02:00
rr-
74fb297584
server/db: fix aggregates
2016-04-20 15:17:11 +02:00
rr-
fe56e376f6
server/tags: export also tag categories
2016-04-19 15:51:26 +02:00
rr-
2fba374e65
server/tags: introduce tag category API
2016-04-19 12:05:14 +02:00
rr-
1597ae7c5c
server/db: refactor session usage
2016-04-18 23:06:51 +02:00
rr-
e3a4793d54
server/tags: move tag categories to database
2016-04-18 22:08:30 +02:00
rr-
9350c4ff97
server/snapshots: add snapshots to tags
2016-04-18 20:44:39 +02:00