Commit Graph

41 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
658dd03b03 feat: add tools to recent/unread (#8477)
* feat: add tools to recent/unread

* fix: open api spec

* fix: more api spec
2020-07-08 14:09:10 -04:00
Barış Soner Uşaklı
aad0880f7c feat: add filter:categories.getRecentTopicReplies
pass req.query to getRecentTopicReplies
2020-05-08 22:36:16 -04:00
Julian Lam
ccc6118d30 Testing suite integration for openapi spec (#8263)
* feat: testing suite integration for openapi spec

The testing suite now takes the openapi spec into account. It will
check each route defined, make a call to it, and compare the
response with the defined schema. Any mismatches will cause the
test to fail.

* fix(openapi): removed debug stuff from tests

* fix(openapi): fixed some tests

* fix(openapi): added additional check to tests, test fixes

* fix(openapi): better tests, fixed spec errors

* fix(openapi): bad conditional in test

* fix: oops

* fix(openapi): more tests fixing

* fix(openapi): more tests

* fix(openapi): fix some more tests

* fix: verbose'd an info log

* fix: topic pagination route returns schema-optimized pagination block

* fix(openapi): more test/spec fixes

* fix(openapi): accidentally sending in authenticated jar for anon routes

* fix(openapi): more test/spec fixes

* fix(openapi): more spec fixes

* fix: timestampReadable Invalid Date

* fix(openapi): more tests... almost there

* fix(openapi): more tests fixing

* fix(openapi): finally all tests passing

* fix(openapi): added reverse test to compare response to spec

... and fixed all the tests that broke

* fix: remove tests related to group covers, as route is gone

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): object cache is not present for psql

* fix: tests

Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
2020-04-23 21:50:08 -04:00
Barış Soner Uşaklı
23571224b5 feat: add parent cids to body class 2020-03-26 12:04:04 -04:00
Baris Usakli
e291a60964 fix: page count for filters 2019-08-30 12:32:21 -04:00
Baris Usakli
bd8736db38 refactor: controllers/category.js 2019-08-19 16:22:54 -04:00
Barış Soner Uşaklı
a63ddbe2aa fix: #7040
if category doesn't exist return null and 404
2018-12-01 17:15:38 -05:00
Barış Soner Uşaklı
44a957faca remove more parseints 2018-10-23 22:28:37 -04:00
Barış Soner Uşaklı
9c022afae1 Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
ee2f9e9434 remove some parseInts 2018-10-20 17:55:13 -04:00
Barış Soner Uşaklı
d31d8fa806 move category pageview to controllers
so topic views are tracked as category views
2018-06-01 14:57:59 -04:00
psychobunny
212486d230 hide topic upvotes on category page when rep system is disabled 2018-01-29 16:41:34 -05:00
Barış Soner Uşaklı
3196311f15 closes #6184 2017-12-19 11:47:13 -05:00
Baris Usakli
38e52a65be fix breadcrumbs and home /api route not loading 2017-11-15 14:48:28 -05:00
Barış Soner Uşaklı
9e9de2edd0 closes #5976 2017-10-10 11:01:16 -04:00
Baris Usakli
1b0c6741f8 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 2017-06-22 14:52:49 -04:00
Baris Usakli
ef9e656f34 closes #5740
added token to topic page as well
check privilege even if token is provided
tests
2017-06-22 12:44:37 -04:00
psychobunny
228e9ab8e3 proof of concept for #5740 2017-06-20 16:12:55 -04:00
Baris Usakli
982184740d small refactor of category controller 2017-06-08 12:39:12 -04:00
Baris Usakli
037a0e5239 closes #5742
also fix reverse infinite scroll when sorting is changed
2017-06-06 16:40:32 -04:00
Barış Soner Uşaklı
79a48cec5f controllers/category tests 2017-05-25 20:01:07 -04:00
Peter Jaszkowiak
0fe10f5e86 Escape topic titles at the source, deduplicate 2017-04-15 01:38:42 -06:00
Peter Jaszkowiak
1fb48ef7a7 Fix #5592 (#5593)
* Fix #5592
Escape translation tokens in topic titles, descriptions, profile about, and post contents

* Fix tests
2017-04-13 21:37:54 +03:00
Peter Jaszkowiak
1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
2017-04-08 20:27:52 -06:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
a038c66549 ESlint quotes 2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
a5a3f3089a ESlint no-mixed-operators 2017-02-18 01:51:11 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
barisusakli
e009ce5609 closes #5443 2017-02-17 16:46:30 +03:00
barisusakli
c0a8fd7395 allow multiple tags 2017-01-05 21:14:21 +03:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
barisusakli
958fe3e72f closes #3762 2016-09-19 13:08:31 +03:00
barisusakli
58ab76d3c2 action:category.loaded, sort qs on category page 2016-07-21 23:53:43 +03:00
barisusakli
25f3a31ff1 closes #4587 2016-04-30 10:47:28 +03:00
Ben Lubar
c7cfe45d0b fix double-URL-encoding causing redirect loops 2016-03-22 19:54:27 -05:00
Julian Lam
3f998a9081 Updated topic and category controller to not redirect on incorrect
slug if the call is made via API route.

Cold load? Anything goes.
2016-03-14 13:05:55 -04:00
acardinale
de1dd3a5df Fix filter:category.build error (double next) 2016-03-09 19:38:56 +01:00
barisusakli
7542364d31 added settings to payload 2016-01-29 11:49:59 +02:00
barisusakli
1a87767c2c removed extra isAdminOrMod check 2016-01-27 20:36:40 +02:00
barisusakli
80cc251741 style 2016-01-06 12:56:00 +02:00
barisusakli
96aa94ee10 refactor categories 2016-01-06 12:49:27 +02:00