Barış Soner Uşaklı
f9d6912b4a
refactor: async/await file
2019-09-23 22:30:17 -04:00
Barış Soner Uşaklı
5fce45580a
fix: remove useless catchs and empty line
2019-08-11 00:13:41 -04:00
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ı
4d9bc30d1f
feat: async3 upgrade ( #7639 )
...
* feat: async3 upgrade WIP
* fix: async.doWhilst
* fix: async early exit
* fix: psql doUntil
* fix: psql again
2019-05-30 14:36:33 -04:00
Julian Lam
df8c22e9c7
Allow new "withScores" option in batch.processSortedSet ( #6602 )
2018-06-22 16:28:25 -04:00
Baris Usakli
d469f53eba
using async in batch
...
removed unused code in debug
2017-07-06 12:08:01 -04:00
Barış Soner Uşaklı
3d85992757
modify db.processSortedSet so it works with intervals
2017-06-23 18:18:34 -04:00
Barış Soner Uşaklı
b4b68498cd
added interval option to processSortedSet
2017-06-23 17:17:27 -04:00
barisusakli
08049c0712
remove empty block
2017-04-22 13:49:10 -04:00
Julian Lam
33082d90cc
updated logic to make it a bit simpler to implement per upgrade script
2017-04-16 13:25:01 -04:00
Peter Jaszkowiak
1ed571189c
Make utils and translator easier to require
...
Move utils.walk to file.walk, backwards compatible
2017-04-08 20:27:52 -06:00
Peter Jaszkowiak
11cb3a9554
ESlint operator-assignment, block-scoped-var
2017-02-18 14:20:58 -07:00
Peter Jaszkowiak
2ba46808a1
ESlint one-var, fix comma-dangle
2017-02-17 20:20:42 -07:00
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
2017-02-17 19:31:21 -07:00
barisusakli
01e7b864b8
change batch.js style
2016-11-03 23:24:41 +03:00
Sergii Paryzhskyi
e515b791da
Fix eslint rules ( #5117 )
...
* Fix semi linter rule
* Fix semi-spacing linter rule
* Fix no-undef-init linter rule
* Fix space-before-blocks linter rule
2016-10-25 15:34:47 -04:00
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
2016-10-13 11:43:39 +02:00
barisusakli
038418bf87
batch.processArray
...
use batch.processArray in notifications.push and moveRecentReplies
added notification tests
added test for moveRecentReplies
clear group cache if a group is deleted
2016-10-11 16:06:47 +03:00
Ben Lubar
df8c1abf7d
fast path for mongodb batches (otherwise it's O(n^2) memory, which gets ugly fast)
2016-02-29 16:16:05 -06:00
barisusakli
878e548296
renamed end to stop globally
...
fixed getting favourites for admins
2015-03-31 23:40:58 -04:00
barisusakli
c4a39c8163
use processSortedSet instead of getting all users
2014-10-26 20:10:57 -04:00
barisusakli
b48d81310c
#2095
2014-09-16 21:43:11 -04:00