45 Commits (d9a16855d0b63800e55c39e02a51e401c9c48311)

Author SHA1 Message Date
Barış Soner Uşaklı 22cd265434 fix: tests 5 years ago
Barış Soner Uşaklı 220297d501 fix: use correct topic count for category 5 years ago
Barış Soner Uşaklı c1c617b323 feat: add topicIndex to category page 5 years ago
Julian Lam 68f8d6e3a1 fix: #8549 send 308 Permanent Redirect on topic/category shortlinks 5 years ago
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
5 years ago
Barış Soner Uşaklı aad0880f7c feat: add filter:categories.getRecentTopicReplies
pass req.query to getRecentTopicReplies
5 years ago
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ı <[email protected]>
5 years ago
Barış Soner Uşaklı 23571224b5 feat: add parent cids to body class 5 years ago
Baris Usakli e291a60964 fix: page count for filters 6 years ago
Baris Usakli bd8736db38 refactor: controllers/category.js 6 years ago
Barış Soner Uşaklı a63ddbe2aa fix: #7040
if category doesn't exist return null and 404
6 years ago
Barış Soner Uşaklı 44a957faca remove more parseints 7 years ago
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
7 years ago
Barış Soner Uşaklı ee2f9e9434 remove some parseInts 7 years ago
Barış Soner Uşaklı d31d8fa806 move category pageview to controllers
so topic views are tracked as category views
7 years ago
psychobunny 212486d230 hide topic upvotes on category page when rep system is disabled 7 years ago
Barış Soner Uşaklı 3196311f15 closes #6184 7 years ago
Baris Usakli 38e52a65be fix breadcrumbs and home /api route not loading 7 years ago
Barış Soner Uşaklı 9e9de2edd0 closes #5976 8 years ago
Baris Usakli 1b0c6741f8 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 8 years ago
Baris Usakli ef9e656f34 closes #5740
added token to topic page as well
check privilege even if token is provided
tests
8 years ago
psychobunny 228e9ab8e3 proof of concept for #5740 8 years ago
Baris Usakli 982184740d small refactor of category controller 8 years ago
Baris Usakli 037a0e5239 closes #5742
also fix reverse infinite scroll when sorting is changed
8 years ago
Barış Soner Uşaklı 79a48cec5f controllers/category tests 8 years ago
Peter Jaszkowiak 0fe10f5e86 Escape topic titles at the source, deduplicate 8 years ago
Peter Jaszkowiak 1fb48ef7a7 Fix #5592 (#5593)
* Fix #5592
Escape translation tokens in topic titles, descriptions, profile about, and post contents

* Fix tests
8 years ago
Peter Jaszkowiak 1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak a038c66549 ESlint quotes 8 years ago
Peter Jaszkowiak a5a3f3089a ESlint no-mixed-operators 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
barisusakli e009ce5609 closes #5443 8 years ago
barisusakli c0a8fd7395 allow multiple tags 8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 9 years ago
barisusakli 958fe3e72f closes #3762 9 years ago
barisusakli 58ab76d3c2 action:category.loaded, sort qs on category page 9 years ago
barisusakli 25f3a31ff1 closes #4587 9 years ago
Ben Lubar c7cfe45d0b fix double-URL-encoding causing redirect loops 9 years ago
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.
9 years ago
acardinale de1dd3a5df Fix filter:category.build error (double next) 9 years ago
barisusakli 7542364d31 added settings to payload 9 years ago
barisusakli 1a87767c2c removed extra isAdminOrMod check 9 years ago
barisusakli 80cc251741 style 9 years ago
barisusakli 96aa94ee10 refactor categories 9 years ago