Barış Soner Uşaklı
87dd6c83eb
fix: tests
2020-07-05 21:06:25 -04:00
Barış Soner Uşaklı
746222d6c6
fix: handle scan/zscan returning duplicate elements on redis
...
increase count on redis zscan
2020-07-05 20:49:18 -04:00
Barış Soner Uşaklı
057b783df7
feat: use covered query
2020-07-03 23:23:42 -04:00
Barış Soner Uşaklı
e95cd28f6f
Zscan ( #8458 )
...
* feat: zscan
* fix: mongodb tests
* feat: scan, ip search starts with
2020-07-02 20:11:53 -04:00
Barış Soner Uşaklı
723fe8e8e0
feat: zscan ( #8457 )
...
* feat: zscan
* fix: mongodb tests
2020-07-02 17:59:20 -04:00
Barış Soner Uşaklı
e80379dc0e
feat: display stack trace on winston.error
2020-06-20 23:32:12 -04:00
Barış Soner Uşaklı
bef37e27cb
fix: test lock for user create ( #8415 )
...
* fix: test lock for user create
* fix: redis hdel with undefined
* feat: add test for undefined key in deleteObjectFields
2020-06-18 23:16:48 -04:00
Barış Soner Uşaklı
7ed1a0140a
fix : #8401 , #8237
...
switch to @nodebb/socket.io-adapter-mongo
2020-06-14 22:49:59 -04:00
Barış Soner Uşaklı
2c9e865763
fix: retry failed setObject calls
2020-05-30 15:49:34 -04:00
Barış Soner Uşaklı
0009f54e6e
feat: add getSortedSetMembers
2020-05-26 22:55:28 -04:00
Barış Soner Uşaklı
1b9e8928eb
feat: use getSortedSetsMembers to load followed tids
2020-05-25 16:59:53 -04:00
Barış Soner Uşaklı
a015af4a41
feat: add batch size to cursors
2020-05-22 20:25:26 -04:00
Barış Soner Uşaklı
9600ede579
feat: up cache size
2020-05-22 13:06:21 -04:00
Barış Soner Uşaklı
3ec05eeaf8
fix: user faster method if sorting by smallest set
2020-05-21 22:57:48 -04:00
Barış Soner Uşaklı
4ee3543ea4
feat: tweak intersection code, add tests
2020-05-21 22:12:58 -04:00
Barış Soner Uşaklı
e5228179c1
Mongo intersection ( #8322 )
...
* feat: intersection without aggregation
* feat: intersection
* feat: remove debug code
2020-05-20 19:13:47 -04:00
Barış Soner Uşaklı
12c6bc2e07
feat: convert queries so they used indices directly
2020-05-19 00:22:54 -04:00
Barış Soner Uşaklı
7a801abade
fix: tests on redis
2020-05-16 22:49:34 -04:00
Barış Soner Uşaklı
2587112f9d
feat: if only one value is passed used faster function
2020-05-16 09:36:17 -04:00
Barış Soner Uşaklı
edf9fe3b7f
feat: add null tests for sorted sets
2020-05-09 10:38:56 -04:00
Julian Lam
ccc6118d30
Testing suite integration for openapi spec ( #8263 )
...
* feat: testing suite integration for openapi spec
The testing suite now takes the openapi spec into account. It will
check each route defined, make a call to it, and compare the
response with the defined schema. Any mismatches will cause the
test to fail.
* fix(openapi): removed debug stuff from tests
* fix(openapi): fixed some tests
* fix(openapi): added additional check to tests, test fixes
* fix(openapi): better tests, fixed spec errors
* fix(openapi): bad conditional in test
* fix: oops
* fix(openapi): more tests fixing
* fix(openapi): more tests
* fix(openapi): fix some more tests
* fix: verbose'd an info log
* fix: topic pagination route returns schema-optimized pagination block
* fix(openapi): more test/spec fixes
* fix(openapi): accidentally sending in authenticated jar for anon routes
* fix(openapi): more test/spec fixes
* fix(openapi): more spec fixes
* fix: timestampReadable Invalid Date
* fix(openapi): more tests... almost there
* fix(openapi): more tests fixing
* fix(openapi): finally all tests passing
* fix(openapi): added reverse test to compare response to spec
... and fixed all the tests that broke
* fix: remove tests related to group covers, as route is gone
* fix(openapi): broken test on travis
* fix(openapi): broken test on travis
* fix(openapi): broken test on travis
* fix(openapi): object cache is not present for psql
* fix: tests
Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com >
2020-04-23 21:50:08 -04:00
Peter Jaszkowiak
e68156e1f2
fix(deps): bump dependencies ( #8239 )
...
* fix(deps): bump dependencies
* fix(deps): commander@5
* fix(deps): use @nodebb/mubsub
2020-04-13 15:50:20 -04:00
Opliko
41c20761e1
Remove deprecated mongo connection options, fixes #8079 ( #8174 )
...
fix #8079
Unified Topology changes the concept of connecting and causes isConnected to always return true, making any reconnection options useless. Next major version of the driver will remove isConnected entirely.
So:
- reconnect tries
- reconnectInterval
- autoReconnect
Are deprecated and don't really do anything anymore (when unified topology is used at least) other than causing warnings at startup since the 3.4 version of the driver (the current version used by NodeBB is 3.5).
Reference: http://mongodb.github.io/node-mongodb-native/3.5/reference/unified-topology/
2020-02-21 20:15:07 -05:00
Ben Lubar
f65922297d
fix abysmal postgresql performance in getSortedSetsMembers ( #8030 )
...
* refactor postgres upgrade function to use async
* add function wrapper for getting the elements of a sorted set to avoid postgres planning the query with a nested sequential scan
* fix fatal(?!) lint errors
* add missing await
* bump PostgreSQL version on Travis CI to one that isn't over 3 years out of date
2019-11-13 14:45:48 -05:00
Barış Soner Uşaklı
b01a47cbc1
feat: log errors from mubsub
2019-10-21 16:12:52 -04:00
Barış Soner Uşaklı
4e28e575cf
fix: mongo collection stats
2019-10-06 22:08:52 -04:00
Barış Soner Uşaklı
02d38caf47
refactor: async/await
2019-10-05 17:05:52 -04:00
Barış Soner Uşaklı
1f0c6f3d60
refactor: async/await mongo
2019-10-03 22:26:33 -04:00
Barış Soner Uşaklı
310c6fd33f
properly filter /unread /recent /popular /top ( #7927 )
...
* feat: add failing test for pagination
* feat: test
* fix: redis tests
* refactor: remove logs
* fix: add new test
* feat: make sortedSetRangeByScore work with keys on redis
* fix: hardcoded set name
* feat: show topics from readable categories on recent/popular/top
* feat: rewrite unread topics
respect watched categories and followed topics
* fix: term + watched
2019-09-26 21:55:49 -04:00
Barış Soner Uşaklı
22b02f1407
feat: add failing test for pagination ( #7924 )
...
* feat: add failing test for pagination
* feat: test
* fix: redis tests
* refactor: remove logs
2019-09-25 21:06:57 -04:00
Barış Soner Uşaklı
572bc29742
refactor: shorter map
2019-09-25 00:08:28 -04:00
Barış Soner Uşaklı
039710493a
refactor: remove logs
2019-09-24 23:49:19 -04:00
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ı
1f054c7ecb
fix: redis tests
2019-09-24 19:19:22 -04:00
Barış Soner Uşaklı
910b9b8864
fix : #7919 , add useUnifiedTopology
2019-09-21 18:44:41 -04:00
Baris Usakli
77cb4b55cb
fix : #7892 , handle string 'true'/'false'
2019-09-10 13:56:57 -04:00
David Karrick
9b4ae4c04a
Added Postgres SSL Support ( #7887 )
...
* [Added] Postgres SSL Support
* [Added]Postgres SSL Support
* [Added] Postgres SSL Support
2019-09-07 13:27:51 -04:00
Barış Soner Uşaklı
1e0190abef
fix : #7842 , groups.invite works with an array of uids
2019-08-18 21:51:32 -04:00
Julian Lam
29f96b199c
fix(style): requiring parens in block bodies
2019-08-13 15:12:27 -04:00
Julian Lam
0921230976
fix(style): updated code to follow new eslint recommendations
...
Squashed commit of the following:
commit f9ce878b26
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 14:30:46 2019 -0400
fix(style): updated code to follow new eslint recommendations
commit 80dd370e41
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 14:14:58 2019 -0400
fix(deps): update dependency sitemap to v4
Squashed commit of the following:
commit f4dd9cabb2
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 11:33:05 2019 -0400
fix: resolved breaking changes from sitemap v4 upgrade
commit 9043415ee1
Merge: e3352b272 72590b346
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 11:09:55 2019 -0400
Merge branch 'master' into renovate/sitemap-4.x
commit e3352b272e
Author: Renovate Bot <bot@renovateapp.com >
Date: Mon Aug 12 07:59:05 2019 +0000
fix(deps): update dependency sitemap to v4
commit 8e3c0cdcae
Author: Renovate Bot <bot@renovateapp.com >
Date: Fri Aug 9 00:49:51 2019 +0000
fix(deps): update dependency commander to v3
commit 2104449d38
Author: Renovate Bot <bot@renovateapp.com >
Date: Tue Aug 13 15:00:27 2019 +0000
fix(deps): update dependency mongodb to v3.3.0
commit d2937f446a
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Tue Aug 13 10:36:48 2019 -0400
feat: async/await admin/controllers
commit 1b97e8b199
Author: Misty (Bot) <deploy@nodebb.org >
Date: Tue Aug 13 09:28:39 2019 +0000
Latest translations and fallbacks
commit 69a48957a2
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Mon Aug 12 21:56:09 2019 -0400
feat: async/await
commit b9b2a7e593
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Mon Aug 12 20:58:29 2019 -0400
feat: async/await refactor
controllers/accounts
commit a8d43a1759
Author: Baris Usakli <barisusakli@gmail.com >
Date: Mon Aug 12 14:49:40 2019 -0400
feat: async/await controllers/accounts
commit 2f25aae57b
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 23:09:50 2019 -0400
fix : #7831 , fix pagination
convert to async/await
commit c9e83f2374
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 00:14:35 2019 -0400
fix: remove empty line
commit 30be91b26c
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 00:13:41 2019 -0400
fix: remove useless catchs and empty line
commit 2e4a71c0b6
Author: Renovate Bot <bot@renovateapp.com >
Date: Sat Aug 10 06:51:50 2019 +0000
chore(deps): update dependency eslint-config-airbnb-base to v14
2019-08-13 15:12:27 -04:00
Barış Soner Uşaklı
8d4f20865f
fix: redis pubsub not being required correctly
...
split connection logic into separate module
2019-08-06 18:27:00 -04:00
Barış Soner Uşaklı
186321e646
fix: mongo.close using wrong client
2019-08-06 17:35:03 -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ı
3b24de4cb3
fix: mongodb tests
2019-07-16 00:48:41 -04:00
Barış Soner Uşaklı
fcf3e0770b
feat: #7743 categories
2019-07-16 00:41:42 -04:00
Barış Soner Uşaklı
cd2e68cb2d
feat: remove unused code, add 2 tests
2019-07-12 20:16:05 -04:00
Barış Soner Uşaklı
53e1b349ae
Change post owner ( #7752 )
...
* feat: #7749 , allow array of keys for setObject
* feat: sortedSetRemoveBulk
* feat: test for bulk remove
* feat: #7083 , ability to change post ownership
* feat: #7083 , fix tid:<tid>:posters
* feat: #7083 , front end
* fix : #7752 , psql methods
* fix: add missing await
* fix: maybe psql
2019-07-12 14:06:09 -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