Commit graph

267 commits

Author SHA1 Message Date
Oleg Silkin
a84e0e0f84 Add docker-compose.yml 2020-04-03 15:38:29 -04:00
Oleg Silkin
fd05ea1145 Update travis config & add generic yaml config 2020-04-03 15:33:23 -04:00
Oleg Silkin
c27baa89fe rate limit comments 2020-04-01 18:52:36 -04:00
Oleg Silkin
84cafd643f replace oracle driver with pymysql driver 2020-04-01 18:50:09 -04:00
Oleg Silkin
3b6b052000 Removes incorrect method for get_channel_from_comment_id 2020-04-01 18:49:37 -04:00
Oleg Silkin
20f9ccc8c5 Moves to using CharField in place of TextField 2020-04-01 18:49:03 -04:00
Oleg Silkin
08060a71d3 Implements hide_comments method using ORM 2020-04-01 18:13:28 -04:00
Oleg Silkin
c852697c94 reimplements abandon method using ORM; no longer require channel_id param 2020-04-01 18:12:46 -04:00
Oleg Silkin
8f12d997ae json -> yaml 2020-03-31 13:59:37 -04:00
Oleg Silkin
a6f056821f Adds a strict validator which fails upon possible FK violations 2020-03-31 13:59:20 -04:00
Oleg Silkin
bd06d1c992 Improves database configuration 2020-03-31 13:57:30 -04:00
Oleg Silkin
1153711636 Reimplements API methods using ORM 2020-03-31 13:55:44 -04:00
Oleg Silkin
e0b6d16c89 Removes certain sqlite-specific functions from application 2020-03-30 22:00:10 -04:00
Oleg Silkin
dba14460cc Unittests using peewee binds instead of direct sqlite connection 2020-03-30 21:59:26 -04:00
Oleg Silkin
45733d2dc4 Remove queries.py 2020-03-30 21:58:37 -04:00
Oleg Silkin
aee12eba54 removes inherited base database in favor of binding api 2020-03-30 21:58:07 -04:00
Oleg Silkin
a22b4a9162 Adds delete, edit, and hide operations 2020-03-30 18:04:20 -04:00
Oleg Silkin
8138e71668 Sets database dynamically 2020-03-30 18:02:20 -04:00
Oleg Silkin
510f2a5d29 Adds comment create logic 2020-03-27 17:44:51 -04:00
Oleg Silkin
63f2c7e9e0 Moves the clean method to misc.py, moves misc.py 2020-03-27 17:44:22 -04:00
Oleg Silkin
644e5e8477 adds get_channel_from_id & simplifies to all call comment_list 2020-03-27 15:59:57 -04:00
Oleg Silkin
cc20088b06 Implements all search queries 2020-03-27 05:07:56 -04:00
Oleg Silkin
a581425a64 Shifts from JSON configuration to yml based 2020-03-27 01:26:13 -04:00
Oleg Silkin
0529fa7d01 Implements DB model and preliminary select queries 2020-03-27 01:24:34 -04:00
Oleg Silkin
464fc88d8e
Merge pull request #35 from lbryio/disables-anon
Disables Anonymous Comments
2020-03-03 20:49:42 -05:00
Oleg Silkin
77d499a0a3 Removes unused tests 2020-02-18 15:28:59 -05:00
Oleg Silkin
a825c6a4b9 Anonymous comment unit-test now tests against anonymous comments 2020-02-18 15:28:46 -05:00
Oleg Silkin
220ceefbd2 Uses is_valid_base_comment instead of static proxy method 2020-02-18 15:27:29 -05:00
Oleg Silkin
723026f967 Proper kwarg management 2020-02-18 15:26:04 -05:00
Oleg Silkin
ac69cd6966 Requires credential input for comment creation 2020-02-18 14:36:38 -05:00
Oleg Silkin
6329ef1011 add .gitignore 2020-01-19 23:16:07 -05:00
Oleg Silkin
8a631d288f Merge branch 'master' of https://github.com/lbryio/comment-server 2020-01-19 23:14:29 -05:00
Oleg Silkin
e9a8a3935c Add gitignore 2020-01-19 23:14:01 -05:00
Oleg Silkin
8257d459ca
Merge pull request #33 from lbryio/error-logging
Better error logging
2020-01-19 23:13:09 -05:00
Oleg Silkin
6a00c7aa82 Better error logging 2020-01-19 23:11:07 -05:00
Oleg Silkin
c937a6aa68
Merge pull request #32 from lbryio/return-claimid
All comment returning methods now include `claim_id`
2020-01-06 23:20:57 -05:00
Oleg Silkin
25eb4f9acd Prevents claim resolve error from disrupting entire hide operation 2020-01-06 23:16:46 -05:00
Oleg Silkin
7916d8b7ff All comment returning methods now include claim_id 2020-01-06 23:03:59 -05:00
Oleg Silkin
c073c8edc9
Merge pull request #31 from lbryio/soften-dependencies
`create_comment` doesnt require `claim_id` when `parent_id` is specified
2020-01-04 01:08:21 -05:00
Oleg Silkin
2fb3b7309c create_comment no longer requires claim_id when parent_id is supplied 2020-01-03 22:32:44 -05:00
Oleg Silkin
f6474e1abe
Merge pull request #30 from lbryio/typo
Fix typo in README.md
2020-01-03 15:43:48 -05:00
Oleg Silkin
56dfd77c9b Fix typo in README.md 2020-01-03 15:42:07 -05:00
Oleg Silkin
d74d2c2321
Merge pull request #27 from lbryio/update
Edit Comments added to API + mega-update
2020-01-03 15:36:25 -05:00
Oleg Silkin
b9fe4dceef jetbrains didn't 'clean' these imports 2020-01-03 15:34:04 -05:00
Oleg Silkin
9d40cdca0f jetbrains didn't 'clean' these imports 2020-01-03 15:32:19 -05:00
Oleg Silkin
6250cae13c touchups 2019-12-31 04:59:58 -05:00
Oleg Silkin
2311fa00e6 Adds edit comment queries and handle 2019-12-31 00:41:35 -05:00
Oleg Silkin
c856438d70 Improves unit test 2019-12-30 17:28:40 -05:00
Oleg Silkin
c55012176e Gets rid of redundant create_comment function 2019-12-30 17:27:38 -05:00
Oleg Silkin
7dee7cc853 reorganize imports 2019-12-30 17:26:37 -05:00