Commit Graph

44 Commits (220297d501752a08417a1c3e940f33c08e2c21eb)

Author SHA1 Message Date
Barış Soner Uşaklı 220297d501 fix: use correct topic count for category
Barış Soner Uşaklı c1c617b323 feat: add topicIndex to category page
Julian Lam 68f8d6e3a1 fix: send 308 Permanent Redirect on topic/category shortlinks
Barış Soner Uşaklı 658dd03b03
feat: add tools to recent/unread ()
* feat: add tools to recent/unread

* fix: open api spec

* fix: more api spec
Barış Soner Uşaklı aad0880f7c feat: add filter:categories.getRecentTopicReplies
pass req.query to getRecentTopicReplies
Julian Lam ccc6118d30
Testing suite integration for openapi spec ()
* 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>
Barış Soner Uşaklı 23571224b5 feat: add parent cids to body class
Baris Usakli e291a60964 fix: page count for filters
Baris Usakli bd8736db38 refactor: controllers/category.js
Barış Soner Uşaklı a63ddbe2aa fix:
if category doesn't exist return null and 404
Barış Soner Uşaklı 44a957faca remove more parseints
Barış Soner Uşaklı 9c022afae1
Parse int ()
* 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
Barış Soner Uşaklı ee2f9e9434 remove some parseInts
Barış Soner Uşaklı d31d8fa806 move category pageview to controllers
so topic views are tracked as category views
psychobunny 212486d230 hide topic upvotes on category page when rep system is disabled
Barış Soner Uşaklı 3196311f15 closes
Baris Usakli 38e52a65be fix breadcrumbs and home /api route not loading
Barış Soner Uşaklı 9e9de2edd0 closes
Baris Usakli 1b0c6741f8 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Baris Usakli ef9e656f34 closes
added token to topic page as well
check privilege even if token is provided
tests
psychobunny 228e9ab8e3 proof of concept for
Baris Usakli 982184740d small refactor of category controller
Baris Usakli 037a0e5239 closes
also fix reverse infinite scroll when sorting is changed
Barış Soner Uşaklı 79a48cec5f controllers/category tests
Peter Jaszkowiak 0fe10f5e86 Escape topic titles at the source, deduplicate
Peter Jaszkowiak 1fb48ef7a7 Fix ()
* Fix 
Escape translation tokens in topic titles, descriptions, profile about, and post contents

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