Commit Graph

116 Commits (c1a7968d23f0809e7012edfccf49b193749998ec)

Author SHA1 Message Date
Barış Soner Uşaklı 5fa098326f fix: https://github.com/NodeBB/NodeBB/pull/8685
fix category link redirect on cold load
fix helpers.redirect if passed in url is external
fix ajaxify so it doesn't slice first character of external url
Julian Lam ee4d90f68f fix: test breakage from f300c933a5
Julian Lam f300c933a5 refactor: move session revocation route to write api
Barış Soner Uşaklı 255cf43ea9 fix: show msg on fail
Barış Soner Uşaklı bf480ee58b refactor: setupApiRoute signature
Barış Soner Uşaklı 872bacf1c4
Admin/users ()
* feat: wip admin/users

* feat: more work

* feat: more fixes

* feat: , verified/unverified user groups

* feat: add filter

* feat: change user search to use filters array

* refactor: remove unused search call

* fix: tests

* fix: cant join system groups

* fix: upgrade script
Barış Soner Uşaklı 7db224f689 fix: timeago test for dev/prod
Barış Soner Uşaklı cecdd2915e fix: timeago test
Barış Soner Uşaklı 3b231360d3 feat: load jquery-form before using
Julian Lam 229eb2c2d8 fix(writeapi): tests
psychobunny bf3c1c0878 fix: manifest test + remove duplicate test
Barış Soner Uşaklı 5e8c376115 fix: remove old test
Barış Soner Uşaklı e3a0b4b1c1 fix: tests
Barış Soner Uşaklı 52718ce0ba fix: remove old test
Barış Soner Uşaklı f0ce309d03 fix: test
Barış Soner Uşaklı 3be4d5f7d5 feat: redirect /me to user profile
Barış Soner Uşaklı ec5582b53c
feat: add privilege give/rescind hooks ()
* feat: add privilege give/rescind hooks

action:privileges.categories.give/rescind
action:privileges.global.give/rescind

breaking change, privileges.categories.give/rescind and privileges.global.give/rescind use full privilege name for groups ie `groups:find` instead of `find`

* fix: tests, privileges renamed
Barış Soner Uşaklı e3c9dafa08 fix: tests
Julian Lam cf7e0cfd2d
feat: no more session cookie for guests ()
* feat: no more session cookie for guests

* fix(tests): added additional tests and fixed the broken test
Barış Soner Uşaklı dec8040c09 feat: widgets/index.js
enable widget-essentials in tests
fix widget test
Julian Lam 79eed9ae60 feat: meta/templates.js
Barış Soner Uşaklı cd2e68cb2d feat: remove unused code, add 2 tests
Barış Soner Uşaklı 805dcd7ca2
Async refactor in place ()
* feat: allow both callback&and await

* feat: ignore async key

* feat: callbackify and promisify in same file

* Revert "feat: callbackify and promisify in same file"

This reverts commit cea206a9b8e6d8295310074b18cc82a504487862.

* feat: no need to store .callbackify

* feat: change getTopics to async

* feat: remove .async

* fix: byScore

* feat: rewrite topics/index and social with async/await

* fix: rewrite topics/data.js

fix issue with async.waterfall, only pass result if its not undefined

* feat: add callbackify to redis/psql

* feat: psql use await

* fix: redis 🌋

* feat: less returns

* feat: more await rewrite

* fix: redis tests

* feat: convert sortedSetAdd

rewrite psql transaction to async/await

* feat: 🐶

* feat: test

* feat: log client and query

* feat: log bind

* feat: more logs

* feat: more logs

* feat: check perform

* feat: dont callbackify transaction

* feat: remove logs

* fix: main functions

* feat: more logs

* fix: increment

* fix: rename

* feat: remove cls

* fix: remove console.log

* feat: add deprecation message to .async usage

* feat: update more dbal methods

* fix: redis :voodoo:

* feat:  fix redis zrem, convert setObject

* feat: upgrade getObject methods

* fix: psql getObjectField

* fix: redis tests

* feat: getObjectKeys

* feat: getObjectValues

* feat: isObjectField

* fix: add missing return

* feat: delObjectField

* feat: incrObjectField

* fix: add missing await

* feat: remove exposed helpers

* feat: list methods

* feat: flush/empty

* feat: delete

* fix: redis delete all

* feat: get/set

* feat: incr/rename

* feat: type

* feat: expire

* feat: setAdd

* feat: setRemove

* feat: isSetMember

* feat: getSetMembers

* feat: setCount, setRemoveRandom

* feat: zcard,zcount

* feat: sortedSetRank

* feat: isSortedSetMember

* feat: zincrby

* feat: sortedSetLex

* feat: processSortedSet

* fix: add mising await

* feat: debug psql

* fix: psql test

* fix: test

* fix: another test

* fix: test fix

* fix: psql tests

* feat: remove logs

* feat: user arrow func

use builtin async promises

* feat: topic bookmarks

* feat: topic.delete

* feat: topic.restore

* feat: topics.purge

* feat: merge

* feat: suggested

* feat: topics/user.js

* feat: topics modules

* feat: topics/follow

* fix: deprecation msg

* feat: fork

* feat: topics/posts

* feat: sorted/recent

* feat: topic/teaser

* feat: topics/tools

* feat: topics/unread

* feat: add back node versions

disable deprecation notice
wrap async controllers in try/catch

* feat: use db directly

* feat: promisify in place

* fix: redis/psql

* feat: deprecation message

logs for psql

* feat: more logs

* feat: more logs

* feat: logs again

* feat: more logs

* fix: call release

* feat: restore travis, remove logs

* fix: loops

* feat: remove .async. usage
Julian Lam 745a9589e9
Use topics:read privilege for topic filtering use cases ()
* fix: use topics:read privilege for topic filtering use cases

* fix: tests

* fix: more broken tests
Barış Soner Uşaklı c72da5595a fix:
3 new global privileges
view:users
view:tags
view:groups
Julian Lam c831ff0de3
fix: removal of timeago fallback middleware ()
* fix: removal of timeago fallback middleware

Instead of loading English fallback on missing language, we opt
to not send a script tag for a missing language to begin with.

Timeago already loads with English as default, so it will just
continue to use English.

* fix: check userLang against supported language codes

* fix: cleaned up code as per @pitaj

* fix: added comments

* fix: more fixes as per @pitaj

* feat: added addl. test for timeago locales, fixed broken test
Barış Soner Uşaklı 99e0895e99 fix: move the check to get methods
all .post methods will have csrf
Barış Soner Uşaklı 1f918ca8f8
Home route ()
* fix: WIP home fix

* remove console.log

* fix: 

on redis run all tests in subfolder /forum
fix URI errors
fix sping/ping
Barış Soner Uşaklı 0361849bb1 check status code
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
Barış Soner Uşaklı 85c60316ed
upgrade to winston 3.1, closes ()
* upgrade to winston 3.1

* fix winston in web/install and tests
Baris Usakli 9ed4239d8e small changes and test for user/:slug/categories
Barış Soner Uşaklı b58ab48485 add test for /sessions controller
Barış Soner Uşaklı 805da98a36 remove unnecessary groups.resetCache calls
Barış Soner Uşaklı c7d6cacd98 closes
Peter Jaszkowiak 04d31fe1d4 Precompile all templates
- Benchpress compilation is 33x faster now
- Native module with JS fallback and pre-built binaries
- Dev template build is <1sec now
- Minified template build is ~5sec (uglify accounts for almost all)
Barış Soner Uşaklı 3449cf321b add back cache and pubsub
Barış Soner Uşaklı ae0563375e derp
Barış Soner Uşaklı ccad95cf73 closes
Barış Soner Uşaklı a7267df404 closes
Barış Soner Uşaklı 229e49cf8f closes , closes
Barış Soner Uşaklı 65dc530df5 some controller tests
Barış Soner Uşaklı bc18b489e6 fix group test
Barış Soner Uşaklı 18b559bab0 fix test name
Barış Soner Uşaklı 2bf275fe29
Barış Soner Uşaklı 2455df438c fix test
Barış Soner Uşaklı 43180d4b83
Baris Usakli d9c38c7e4f closes
Barış Soner Uşaklı d96674da64 add test for composer fix
Peter Jaszkowiak 11b9cb7688 Fix , `action:home.get:*` returned to previous functionality ()
Added tests to confirm `buildHeader` is used and `/api` works