Commit Graph

30 Commits

Author SHA1 Message Date
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- 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- 87b1ee4564 server/tests: use real database
I'm experimenting with snapshots and found following limitation of
SQLite: https://www.sqlite.org/isolation.html
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- af62f8c45a server/general: ditch falcon for in-house WSGI app
For quite some time, I hated Falcon's class maps approach that caused
more chaos than good for Szurubooru. I've taken a look at the other
frameworks (hug, flask, etc) again, but they all looked too
bloated/over-engineered. I decided to just talk to WSGI myself.

Regex-based routing may not be the fastest in the world, but I'm fine
with response time of 10 ms for cached /posts.
2016-08-14 16:43:35 +02:00
rr- 2b3d193b7c server/tags: don't auto-create tag categories 2016-08-14 11:38:59 +02:00
rr- 205f372f76 server/tests: colorize verbose output 2016-05-11 23:47:50 +02:00
rr- 198cb0af3e server/users: hardcode available ranks 2016-05-08 16:59:25 +02:00
rr- ce095816d9 server/posts: add post creating 2016-05-02 00:07:33 +02:00
rr- 4530b6e3b8 server/tests: show SQL queries only with -v 2016-04-30 12:46:52 +02:00
rr- 612734e9ff server/comments: add comment creating 2016-04-24 10:31:49 +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- a926838b90 server/general: rename 'misc' to 'util' 2016-04-20 11:59:46 +02:00
rr- 57b18c6461 server/general: rename 'util' to 'func' 2016-04-20 11:58:17 +02:00
rr- d3f2ef296b server/tests: don't recreate database every test 2016-04-20 11:48:34 +02:00
rr- 2e57a0746f server/general: consistently use db.session 2016-04-19 18:10:22 +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- 1c064778c6 server/tests: adapt freezegun
The reason why this is added to the project is because it has turned out
mocking the time is not as trivial as I originally anticipated
(specifically, there are some problems with SQLite).
2016-04-18 19:42:24 +02:00
rr- bc15fb6675 server/posts: add sketch of post table 2016-04-17 16:35:31 +02:00
rr- 470ff70f91 server/tests: use common fixtures in pw reset test 2016-04-17 12:54:30 +02:00
rr- adecdd4cd9 server/tags: add tag updating 2016-04-16 13:41:19 +02:00
rr- ec4cba94a9 server/db: introduce tags 2016-04-16 09:19:55 +02:00
rr- 3bf9d6b462 server/tests: add sql logging 2016-04-15 23:26:38 +02:00
rr- 3d4ceb13b8 server/api: move all io mgmt to context
where input/output includes files, JSON metadata and GET parameters.
Additionally, formalize context with a new class, Context.
2016-04-15 23:26:38 +02:00
rr- 07ea920def server/tests: switch to pytest 2016-04-15 18:00:06 +02:00