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 cea206a9b8 .
* 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
2019-07-09 12:46:49 -04:00
Barış Soner Uşaklı
2e2c3ac110
fix : #7352
2019-02-09 10:14:43 -05:00
Barış Soner Uşaklı
26ccd8f626
fix: db info page
...
if there is no connection to db, connect first
2018-12-10 15:30:10 -05:00
Barış Soner Uşaklı
6330d51446
less derpy output
2018-11-28 19:54:52 -05:00
Barış Soner Uşaklı
ed1bf9a16f
add more info to advanced db page
2018-11-28 19:24:54 -05:00
Barış Soner Uşaklı
0524fd9caa
closes #6996 ( #6997 )
...
* closes #6996
* fix lint
2018-11-24 23:02:22 -05:00
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
2018-08-31 11:04:42 -04:00
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.
2018-08-08 15:13:48 -04:00
Barış Soner Uşaklı
77d47b31fb
cleanly shutdown
...
wait for webserver to stop accepting connections
destroy current connections
wait for db connection to close
2018-03-22 16:36:23 -04:00
Baris Usakli
3c4b4f5263
don't call calback twice #6375
2018-03-21 12:25:25 -04:00
Barış Soner Uşaklı
8a6345ded7
possible fix for pubsub
2018-01-22 16:41:22 -05:00
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
2018-01-18 13:02:56 -05:00
Barış Soner Uşaklı
e092778ba6
closes #6200
2018-01-15 15:05:33 -05:00
Peter Jaszkowiak
e609e497b3
Provide more error information to logs
...
Provides full stack instead of just message
2017-11-01 18:59:48 -06:00
Baris Usakli
7fe239229d
show 3 digits
2017-06-20 16:34:34 -04:00
Peter Jaszkowiak
3c2d4fe649
Switch from underscore to lodash
2017-05-27 14:51:45 -06:00
Barış Soner Uşaklı
fd0043f36a
more tests
2017-05-19 20:24:54 -04:00
barisusakli
b91b41dfa3
show database values in gbs
2017-04-22 17:08:54 -04:00
barisusakli
ba51a6c746
fix underscore
2017-04-22 00:33:49 -04:00
barisusakli
a2784738a4
fix lint
2017-04-22 00:15:12 -04:00
barisusakli
2029de4cc5
closes #5449
2017-04-21 23:56:24 -04:00
barisusakli
3d39a577f4
style change
2017-04-21 23:55:57 -04:00
barisusakli
65a65b19c0
tests for #5600
2017-04-16 14:46:02 -04:00
barisusakli
185b6e5c8e
#5600
2017-04-16 14:31:49 -04:00
Peter Jaszkowiak
4bb49a7171
ESlint no-unused-vars
2017-02-18 15:05:36 -07:00
Peter Jaszkowiak
3b0dd2d1ef
ESlint padded-blocks
2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
a038c66549
ESlint quotes
2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
b1b486f729
ESlint quote-props
2017-02-18 01:19:20 -07:00
Peter Jaszkowiak
1cf25f57fc
ESlint no-space-func
2017-02-17 22:17:10 -07:00
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
2017-02-17 19:31:21 -07:00
Dominic Lennon
a06e39528f
Code review change
2017-01-16 08:48:53 +00:00
Dominic Lennon
ed19454eca
Adding more specific timing for session timings
2017-01-11 10:51:41 +00:00
Dominic Lennon
d248ef95cd
Fix for issue #5334 . SessionStore now uses the correct value
2017-01-10 11:48:27 +00:00
Barış Soner Uşaklı
e0501656b6
parallel startup
2016-12-09 00:18:25 +03:00
Barış Soner Uşaklı
8c8e2ae190
closes #5271
2016-12-09 00:00:39 +03:00
barisusakli
5d6e2ad083
multiple test fixes
2016-11-23 17:15:36 +03:00
barisusakli
6d97c4cec8
up mongo deps, create session store after db.authenticate
2016-10-14 22:18:28 +03:00
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
2016-10-13 11:43:39 +02:00
barisusakli
4eb8015017
closes #5069
2016-09-29 14:31:32 +03:00
barisusakli
7f041a756d
closes #4865
2016-08-04 20:58:04 +03:00
barisusakli
dcbf53bae3
moved search to dbsearch
2015-12-11 10:57:13 +02:00
psychobunny
78ea462620
fix crash when redis server isn't running
2015-06-08 15:34:39 -04:00
Julian Lam
96526a37a3
fixed #3218
2015-06-05 13:33:58 -04:00
barisusakli
7b550b13b9
display both redis/mongo info if available
2015-05-08 15:36:06 -04:00
Julian Lam
848babcdfa
Merge pull request #2778 from ahwayakchih/support-more-config-defaults-for-setup
...
This adds more setup defaults from config.
2015-04-17 11:14:30 -04:00
barisusakli
c7128bcc98
part 1 of search change
2015-03-14 23:00:24 -04:00
ahwayakchih
4c2f628baa
Added support for using mongo:password and redis:password from config, when no password is entered at setup. This allows for having "default" password and overrides from config. Added using mongo:username and port from config when running setup.
2015-02-25 22:27:19 +01:00
barisusakli
7cbaa90d36
update to socket.io 1.2.1, return_buffers option
2014-11-24 13:44:59 -05:00
barisusakli
73fb653ddf
emit works
2014-11-20 19:02:29 -05:00
psychobunny
f149fb0191
linting, TIL that obj.$key is valid syntax
2014-10-08 12:22:39 -04:00