Barış Soner Uşaklı
5db037f1ea
chore: up mongo deps ( #11375 )
...
* chore: up mongo deps
* mongodb 5.x no more callbacks
2 years ago
Barış Soner Uşaklı
3c60ccfd4d
feat: upgrade connect-mongo, closes https://github.com/NodeBB/NodeBB/pull/9367
4 years ago
Peter Jaszkowiak
b9fd2c87f3
chore: bump deps ( #9335 )
...
* chore: bump deps
* fix: husky git hooks
4 years ago
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
4 years ago
Barış Soner Uşaklı
1c45fa1ba5
feat: socket.io 3 changes ( #8845 )
...
* feat: socket.io 3 changes
* feat: replace socketio-wildcard with socket.onAny
up socket.io-redis to 6.x
* feat: remove mongodb/psql socket.io adapters
* feat: show data on fail
* fix: tests
* fix: typo
* fix: logger test fix
* fix: logger.io_close
* chore: up deps
* chore: update readme to reflect redis requirement
* fix: increase timeout show data if test fails
4 years ago
Barış Soner Uşaklı
202dcef42e
fix : #9010 , show rest of info even if clusterMonitor priv is not granted
4 years ago
Barış Soner Uşaklı
ce6b20c4b7
feat: remove topics.async.getTopicData usage
5 years ago
Barış Soner Uşaklı
393f19b461
feat: pass connection options to socket.io-adapter-mongo
5 years ago
Barış Soner Uşaklı
7ed1a0140a
fix : #8401 , #8237
...
switch to @nodebb/socket.io-adapter-mongo
5 years ago
Barış Soner Uşaklı
4e28e575cf
fix: mongo collection stats
5 years ago
Barış Soner Uşaklı
1f0c6f3d60
refactor: async/await mongo
5 years ago
Barış Soner Uşaklı
8d4f20865f
fix: redis pubsub not being required correctly
...
split connection logic into separate module
6 years ago
Barış Soner Uşaklı
186321e646
fix: mongo.close using wrong client
6 years ago
Barış Soner Uşaklı
af1f7249a7
feat: test psql without defineProperty ( #7815 )
...
* feat: test psql without defineProperty
* feat: refactor psql
remove .bind calls, use module.pool.query directly
move requires to top of file
move promisify to bottom so .init etc are promisified
* feat: mongodb
move requires to bottom
* feat: redis
6 years ago
Barış Soner Uşaklı
805dcd7ca2
Async refactor in place ( #7736 )
...
* 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
6 years ago
Barış Soner Uşaklı
ebfc369ade
feat: upgrade to connect-mongo 3.0.0, closes #7693
6 years ago
Barış Soner Uşaklı
fab52b840c
fix: prevent crash if results.stats or results.serverStatus is undefined
6 years ago
Barış Soner Uşaklı
26ccd8f626
fix: db info page
...
if there is no connection to db, connect first
6 years ago
Barış Soner Uşaklı
ed1bf9a16f
add more info to advanced db page
6 years ago
Barış Soner Uşaklı
0524fd9caa
closes #6996 ( #6997 )
...
* closes #6996
* fix lint
6 years ago
Barış Soner Uşaklı
0de60cfdca
fix mongodb tests
6 years ago
Barış Soner Uşaklı
8ca36ad122
closes #6890
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
Barış Soner Uşaklı
986511e718
try with higher timeout
6 years ago
Barış Soner Uşaklı
0aebb9caf8
closes #6844
6 years ago
Barış Soner Uşaklı
9dbe68a9cb
testing again
6 years ago
Barış Soner Uşaklı
18d0deeccb
update deprecated methods ( #6794 )
7 years ago
Barış Soner Uşaklı
0519f84734
Promisify modules ( #6723 )
...
* WIP promisify
* promisify psql
* ability to skip some keys
* dont promisify client object
* remove async
* clone entire module so it has all properties
* add shim for node 6
* ignore sessionStore as well
* ignore pool on psql
7 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ı
8263f81d0c
fix pubsub when only mongodb is used
7 years ago
Barış Soner Uşaklı
3b5d6951bb
closes #6499
7 years ago
Barış Soner Uşaklı
77d47b31fb
cleanly shutdown
...
wait for webserver to stop accepting connections
destroy current connections
wait for db connection to close
7 years ago
Barış Soner Uşaklı
8a6345ded7
possible fix for pubsub
7 years ago
Ben Lubar
e85aabbe74
Allow running as a cluster without Redis ( #6233 )
...
* [database/*] Allow databases other than Redis to provide pubsub for clustering if Redis is not present
* [pubsub] Delay messages sent before the database is ready until the database is ready.
* [pubsub] Restore old behavior of not using the database in non-clustered NodeBB instances.
See comment: https://github.com/NodeBB/NodeBB/pull/6233#issuecomment-357814968
7 years ago
Baris Usakli
5ca3b535e7
closes #6105
7 years ago
Peter Jaszkowiak
e609e497b3
Provide more error information to logs
...
Provides full stack instead of just message
7 years ago
Barış Soner Uşaklı
7ad4420b6a
closes #6000
7 years ago
Baris Usakli
7fe239229d
show 3 digits
8 years ago
Peter Jaszkowiak
3c2d4fe649
Switch from underscore to lodash
8 years ago
Barış Soner Uşaklı
fd0043f36a
more tests
8 years ago
Barış Soner Uşaklı
54a9e7eab9
#5674
8 years ago
Barış Soner Uşaklı
33f135c091
closes #5675
8 years ago
barisusakli
b91b41dfa3
show database values in gbs
8 years ago
barisusakli
b7b65c7d63
change style
8 years ago
barisusakli
65a65b19c0
tests for #5600
8 years ago
barisusakli
9f8d80e3a4
closes #5600
8 years ago
Peter Jaszkowiak
57696b22f4
Partial fix #5538
8 years ago
Barış Soner Uşaklı
6b0a907ede
closes #5552
8 years ago
Julian Lam
b6134b160e
moved auto_reconnect out of socketOptions object for Mongo
8 years ago
barisusakli
5e0de4b8fb
closes #5517
8 years ago