Barış Soner Uşaklı
b602c04463
feat: refactor getSortedSetRange to allow big arrays
2019-09-24 23:47:45 -04:00
Barış Soner Uşaklı
7e7ea7a697
refactor: dont modify key
2019-09-24 22:04:20 -04:00
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
2019-08-05 09:20:00 -04:00
Barış Soner Uşaklı
daed76d5d6
feat: cache group:members for priv groups
2019-07-18 23:58:59 -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ı
bd640a1107
Topic await errors ( #7727 )
...
* feat: derp await
* feat: restore user.getSettings
* feat: cleanup
* feat: make tid const
* feat: cleanup
* fix: tests
* feat: deprecate filter:controllers.topic.get
* feat: rewrite post-index logic
* feat: change calculation to match others
* fix: use .async
* feat: remove try/catch wrapper
2019-07-03 12:48:26 -04:00
Barış Soner Uşaklı
a39f0ef592
fix : #5570 , create per category user post zsets
2019-06-24 15:21:43 -04:00
Barış Soner Uşaklı
3780a58ffb
feat: shorter setsCard
2019-06-22 23:43:17 -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
Barış Soner Uşaklı
fef7e13c9e
feat: small fixes
2018-12-17 18:56:09 -05:00
Barış Soner Uşaklı
d2c2d56f59
feat: change sortedSetsScore
2018-12-15 00:57:51 -05:00
Barış Soner Uşaklı
00afc5b3ab
fix: remove log
2018-12-14 16:36:07 -05:00
Barış Soner Uşaklı
eb7ae54f81
Category watch state ( #7109 )
...
* feat: wip, category watch change
* feat: pass data to client
* feat: allow changing state
* fix: account page categories
* fix: show in unread if topic is followed or category is watched
* feat: add default watch state to acp
* feat: save user category watch state
* feat: update unread recent pages
* fix: remove dupe code
* fix: flip conditions
* fix: handle empty arrays
* fix: ignore/watch on others profile
* feat: upgrade script for category states
if there are any users ignoring categories set their state in new zset and delete cid:<cid>:ignorers
* fix: upgrade
* fix: tests
* fix: redis count
* fix: more tests
2018-12-14 16:24:17 -05:00
Barış Soner Uşaklı
85a07e999b
fix : #7102
2018-12-12 13:46:13 -05:00
Barış Soner Uşaklı
263c918088
feat: remove uid:<uid>:ignored:cids ( #7099 )
...
use cid:<cid>:ignorers instead
2018-12-12 11:15:34 -05:00
Baris Usakli
e65d40c937
dont return undefined from sortedSetsCard if keys is empty or falsy
2018-12-07 16:50:35 -05:00
Barış Soner Uşaklı
48690a01b9
dont need to call multi if keys.length is 0
2018-11-21 17:24:38 -05:00
Barış Soner Uşaklı
f8e219c323
handle empty set, add test
2018-11-11 15:39:17 -05:00
Barış Soner Uşaklı
7aa937a657
remove dupe code in mongodb sorted
2018-10-28 16:20:38 -04:00
Barış Soner Uşaklı
18d0deeccb
update deprecated methods ( #6794 )
2018-09-26 15:02:57 -04:00
Barış Soner Uşaklı
fe80186ddf
add withscores
2018-06-22 16:28:22 -04:00
Barış Soner Uşaklı
3b5d6951bb
closes #6499
2018-05-10 16:31:16 -04:00
Barış Soner Uşaklı
6a9a73c86c
changes to leaveAllGroups
...
Groups.destroy can take an array of groupnames
Groups.leave can take an array of groupnames
db.incrObjectField/decrObjectField can take an array of keys
db.sortedSetRemove can take an array of keys and values
db.setRemove can take an array of keys
2018-03-17 18:49:38 -04:00
Ben Lubar
5b1ed21634
[database/mongo] Improve speed of sortedSetRank ( #6229 )
...
* [database/mongo] Improve speed of sortedSetRank
* [database/mongo] Fix sortedSetRank to filter by _key
2018-01-12 13:32:07 -05:00
Barış Soner Uşaklı
8e04e86e24
closes #5912
2017-12-07 20:43:07 -05:00
Baris Usakli
30ae0a5499
another process.nextTick
2017-11-15 13:06:23 -05:00
Baris Usakli
e187a0def2
fix method name
2017-11-15 11:50:44 -05:00
Baris Usakli
12546cb9ad
break up sync operation
2017-11-15 11:35:25 -05: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
barisusakli
7ce6c1d0ad
closes #5571
2017-04-13 16:36:02 -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
c18808fdeb
ESlint no-useless-concat, no-mixed-spaces-and-tabs
2017-02-18 14:42:15 -07:00
Peter Jaszkowiak
c4bdb72941
ESlint no-unneeded-ternary
...
and no-extend-native, no-sequences
2017-02-18 12:59:46 -07:00
Peter Jaszkowiak
896c8c7343
ESlint object-curly-spacing
2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
1493afee2a
ESlint indent
2017-02-18 02:38:03 -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
604358ecc4
ESlint keyword-spacing, no-multi-spaces
2017-02-18 01:52:56 -07:00
Peter Jaszkowiak
2e031f3759
ESlint comma-spacing
2017-02-18 01:31:47 -07:00
Peter Jaszkowiak
277a7fb8b4
ESlint key-spacing, no-trailing-spaces
2017-02-18 01:27:46 -07:00
Peter Jaszkowiak
3361a72725
ESlint no-plusplus
...
and no-empty, space-unary-ops
2017-02-18 01:12:18 -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
b71ab64cf4
organize dbal sorted code
2016-12-23 14:12:07 +03:00
Moritz Schmidt
c8393d6f87
mongo: set scores as float instead of int
2016-12-11 15:58:57 +01:00
Barış Soner Uşaklı
c512a02c83
Merge pull request #5124 from yariplus/lexistuff
...
Add additional lexical dbal operations.
2016-10-18 12:17:02 +03:00
yariplus
af2122bdb9
fix lex tests maybe
2016-10-17 18:08:56 -04:00
yariplus
472dd007d8
fix mongo lex callback
2016-10-17 15:24:35 -04:00
yariplus
be3b35dea3
fix callbacks and regex
2016-10-16 23:07:22 -04:00