767 Commits (3ce6321707bac4087d4f41ee45482ebee51afb4c)

Author SHA1 Message Date
Barış Soner Uşaklı 9d28b935fd dont load uid 0, -1 from db 6 years ago
Barış Soner Uşaklı a6864a8055 add groupTitle test for guests 6 years ago
Barış Soner Uşaklı ca1e3a758b #6986 6 years ago
Baris Usakli b83e50f286 remove delayImageLoading from api @julianlam 6 years ago
Barış Soner Uşaklı afa84023a2 closes #6942 6 years ago
Barış Soner Uşaklı f8e219c323 handle empty set, add test 6 years ago
Barış Soner Uşaklı b6771836cf closes #6937 6 years ago
Baris Usakli 62787368c6 add searchonly option to searh api 6 years ago
Julian Lam da10ca084b fix: #6921, allow square brackets in usernames 6 years ago
renovate[bot] 64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
6 years ago
Barış Soner Uşaklı 75816deca7
add cache to redis (#6917)
* add cache to redis

move out cache module from mongo

* fix redis tests

* add callback noop

* fix typo

* del cache on field delete

* make redis/mongo caches separate
6 years ago
Julian Lam 501b3a79ca
Refactor skins to be built on server-side (#6849)
* WIP

* using bootswatch from npm instead of bootswatch CDN url

* feat: on-demand client css building for skins

* added ability for client-side to select a skin

* updated loading and saving logic of bootstrapSkin on client side user settings

* fix: broken test for #6849
6 years ago
Baris Usakli 3c611d85ed closes #6912
- on category setParent dialog do not show children of current category
- break recursion if category parentCid is equal to child cid to prevent
infinite loop
- dont allow setting the parentCid of a category to one of it's children
6 years ago
Peter Jaszkowiak 9a32118418 Enable `require.main.require` in tests (#6896) 6 years ago
Barış Soner Uşaklı d3e4daebec posts/delete cleanup 6 years ago
Barış Soner Uşaklı 7aa937a657 remove dupe code in mongodb sorted 6 years ago
Barış Soner Uşaklı ea1e8fb8fe Merge branch 'master' of https://github.com/NodeBB/NodeBB 6 years ago
Barış Soner Uşaklı 19e6c61244 add new test for queue 6 years ago
Barış Soner Uşaklı c27be9db5a
Recent refactor (#6879)
* wip

* fix inf scroll

* remove duplicated code

* remove dupe code in /unread

* use topicList

* update tag page to use topicList

* fix tests

* combine ifs

* remove more dupe code

* disable timeout
6 years ago
Baris Usakli 566564ed74 fix redis tests
fixed typo in groups/data.js
added postcount,viewcount to int fields
6 years ago
Barış Soner Uşaklı fb6067a7ca only parse if field is requested 6 years ago
Barış Soner Uşaklı f3a679e268 remove parseInts 6 years ago
Barış Soner Uşaklı 9c03881d5a add threshold for image resizing 6 years ago
Barış Soner Uşaklı 537b7ff7e8 remove more parseInts 6 years ago
Baris Usakli a228dc2de9 closes #6797 6 years ago
Barış Soner Uşaklı 175e13edf6 group data 6 years ago
Barış Soner Uşaklı c30ff42817 test for hooks page 6 years ago
Barış Soner Uşaklı c738dc7d3e remove some more parseInts 6 years ago
Barış Soner Uşaklı 7a44424214 parse '123' to 123 if it has no default 6 years ago
Barış Soner Uşaklı d07e3e6d97 if not in defaults use string 6 years ago
Barış Soner Uşaklı 4fff5e9baf closes #6855 6 years ago
Barış Soner Uşaklı ac39112271 remove more parseInts 6 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
6 years ago
Barış Soner Uşaklı ee2f9e9434 remove some parseInts 6 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
6 years ago
Barış Soner Uşaklı 038f97b0f5 more settings tests 6 years ago
Barış Soner Uşaklı 8c9754ecee add test for /admin/settings/user 6 years ago
Barış Soner Uşaklı 250e8c01ff closes #5008 6 years ago
Barış Soner Uşaklı da1a90a470 add search test 6 years ago
Baris Usakli baf91089a6 remove unused methods 6 years ago
Baris Usakli 74fdadf8a6 test pubsub cache 6 years ago
Baris Usakli 444fd70ba3 test pubsub 6 years ago
Barış Soner Uşaklı 986511e718 try with higher timeout 6 years ago
Barış Soner Uşaklı 1d15dc089b revert isCluster 6 years ago
Barış Soner Uşaklı aa567a5f2d print out connString and opts 6 years ago
Barış Soner Uşaklı 38ce83304d up widget essentials 6 years ago
Barış Soner Uşaklı 2d8d234c57 test mongodb again 6 years ago
Barış Soner Uşaklı 8f7482955d set cluster to false again 6 years ago
Barış Soner Uşaklı fd31ad3cfe disable busy check on tests 6 years ago
Barış Soner Uşaklı f4df89fe90 closes #6840 6 years ago
Barış Soner Uşaklı 5dbc7f032a reset post cache between each suite 6 years ago
Barış Soner Uşaklı fc68263f91 change to TEST_ENV 6 years ago
Barış Soner Uşaklı 45b6e56665 add node_env to tests 6 years ago
Barış Soner Uşaklı 85c60316ed
upgrade to winston 3.1, closes #6590 (#6838)
* upgrade to winston 3.1

* fix winston in web/install and tests
6 years ago
Barış Soner Uşaklı b57db7fd8e
update groups join to take array of group names (#6834)
* allow groups.join to take an array of group names

* pass an array to groups.join/leave in privileges

* split up groups/membership

* add hits/miss to group cache

* fix typo
6 years ago
Barış Soner Uşaklı c06480b82e add tests for blocked users teaser/unread 6 years ago
Barış Soner Uşaklı d4db8c2d42 removed reset 6 years ago
Barış Soner Uşaklı 1024a0efa1 add reset to pubsub for tests 6 years ago
Baris Usakli 7d8fc09226 add test for pubsub 6 years ago
Baris Usakli 28f2144933 remove time out on plugin upgrade test 6 years ago
Baris Usakli a867b77509 add assert message to test 6 years ago
Barış Soner Uşaklı e615391b22 convert values to string before removing 6 years ago
Barış Soner Uşaklı 5c7dd54815
fix zsets and update them on post move, closes #6823 (#6827) 6 years ago
Baris Usakli 5f49a1d82c disable timeout on build templates 6 years ago
Baris Usakli 9ed4239d8e small changes and test for user/:slug/categories 6 years ago
Barış Soner Uşaklı b58ab48485 add test for /sessions controller 6 years ago
Barış Soner Uşaklı a7c4c59121 change to series 6 years ago
Barış Soner Uşaklı 1bea247748 add username/email to user-delete event 6 years ago
Barış Soner Uşaklı f77091d1ed change user delete so it returns quickly 6 years ago
Barış Soner Uşaklı 805da98a36 remove unnecessary groups.resetCache calls 6 years ago
Barış Soner Uşaklı 061b279c48 Merge branch 'master' of https://github.com/NodeBB/NodeBB 6 years ago
Barış Soner Uşaklı 77beaf2e15
Allow local login,closes #6800 (#6803)
* WIP

* reset groups cache after every suite
6 years ago
Barış Soner Uşaklı 2bd02a7ae1 disable timeout on plugin installs 6 years ago
Barış Soner Uşaklı 944972c6f2 change to series 6 years ago
Barış Soner Uşaklı 18d0deeccb
update deprecated methods (#6794) 6 years ago
Barış Soner Uşaklı 1cb2e1e368 remove console.log switch to series 6 years ago
Barış Soner Uşaklı f618ba8e1e add private category test for unread tids 6 years ago
Barış Soner Uşaklı 95501e8fee
closes #6738 closes #6290 (#6785)
* closes #6738 closes #6290

* fix test, delete keys

* delete all bans on user delete

* fix upgrade script to actually read reason
6 years ago
Barış Soner Uşaklı 59b988a205 change test so it checks url 6 years ago
Barış Soner Uşaklı b7ead6dc9c
Replace jimp with sharp (#6774)
* add probe image size and max image size

* replace jimp and image-probe with sharp

* better name for test

* resize with just path

* resize thumb inplace

* use filename
6 years ago
Barış Soner Uşaklı ea1697d073 remove console.log 6 years ago
Barış Soner Uşaklı 25fed0aa8d change isPasswordCorrect to return false if user does not have password 6 years ago
Barış Soner Uşaklı 2a2e8136cd
fix tests 6 years ago
Ben Lubar 33228bb7fe PostgreSQL database driver (#5861)
* [test/database/list] Fix test list 4 being used in two different tests

* [database/postgres] PostgreSQL database driver

* [database/postgres] Make transactions work based on continuation scope.

* [database/postgres] Implement nested transactions

* eslint --fix

* Add database changes from earlier this week to the PostgreSQL driver.

* Fix typo

* Fix postgres.incrObjectFieldBy returning undefined instead of null when given NaN

* [database/postgres] Fix sortedSetsCard returning an array of strings.

* Update socket.io postgres adapter

* Fix PostgreSQL erroring when multiple updates are made to the same sorted set entry in a single operation.

Add a test case to catch this error.

* Fix lint errors.

* Only prune sessions on one instance in a cluster to avoid deadlocks.

They're caught and handled by the database server, but they spam the logs.

* Fix arguments.slice.
7 years ago
Barış Soner Uşaklı fa499aef18 closes #6680 7 years ago
Baris Usakli 546b13b897 fix lint and tests 7 years ago
Barış Soner Uşaklı c7d6cacd98 closes #6658 7 years ago
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)
7 years ago
Barış Soner Uşaklı 3449cf321b add back cache and pubsub 7 years ago
Barış Soner Uşaklı ae0563375e derp 7 years ago
Baris Usakli 584f88e092 blocks WIP 7 years ago
Baris Usakli be1e83bfc1 fix tests 7 years ago
Barış Soner Uşaklı 82b2a20d0c user tests 7 years ago
Barış Soner Uşaklı ccad95cf73 closes #6579 7 years ago
Barış Soner Uşaklı 2fd2accf8c add tests for top topics
fix popular page displaying 18 topics per page
7 years ago
Barış Soner Uşaklı 4684ab3bf6 suggest topic test 7 years ago
Barış Soner Uşaklı c3fc4a06bf test sortedSetUnion with scores 7 years ago
Julian Lam 8d41e319ea fixed tests 7 years ago
Julian Lam 8e832abf1e additional tests for post diffs privilege checking 7 years ago
Julian Lam 510dd268cc fix tests 7 years ago