Commit Graph

358 Commits (3f0ca3139306dbfd9aa2aba0c4ddda2903194af2)

Author SHA1 Message Date
barisusakli e2196af8ab part 2 of search changes
barisusakli c7128bcc98 part 1 of search change
barisusakli ec8fc8b97b dont do anything if id is falsy
added callback
Barış Soner Uşaklı e4199179f7 Merge remote-tracking branch 'origin/master' into mongodb-3.0-driver-2.0
Barış Soner Uşaklı ea9fccbf2a fix -inf +inf
added test for -inf +inf
Barış Soner Uşaklı 6bd3c54a03 fix findAndModify
temp fix for connect-mongo
create admin after categories
Barış Soner Uşaklı e421a2c7cd pass session
psychobunny b0628c2df8 missing semi-colons in database/
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.
Barış Soner Uşaklı 52aa7d27e8
Barış Soner Uşaklı 9de0c0cdd4 closes
barisusakli d577371a51 fix test
barisusakli 0dca86f255 fix tests
barisusakli 3bcd8aefb0 deleteObjectFields method
cleaned up user reset
Barış Soner Uşaklı 749ce5f8e5 dont crash if callback isnt supplied to list methods
barisusakli 39cac43b96 if key isn't found dont error
Conflicts:
	src/database/redis/main.js
barisusakli bd8a77a22b dont crash if callback isnt passed in
barisusakli 2c45dc6450 redis helpers
barisusakli c379753341 upgrade scripts
upgrade groups to sorted set(groups:createtime) upgrade
upgrade groups:<name>:members to sorted set
new database methods
tests
barisusakli 96c27d29f4 dont crash if callback isn't supplied
barisusakli 4c62590bc8 closes
Julian Lam eb5b8ccec3 better check for group exist, groups with different cases can no longer be created,
barisusakli f67053df52 figure out pathname, dont crash if callback isnt supplied
barisusakli fbd875b397 fix sortedSetIncrBy return
barisusakli 0a534b20e3 sortedSetCount fix for +inf/-inf
barisusakli 03ee524121 fix tests and mongo method
barisusakli 00541b2bc8 sortedSetRange tests
barisusakli 4d5ed784a1 more hash tests
getObjectValues
isObjectField
deleteObjectField
incrObjectField
barisusakli c62e7ed641 list test fix
barisusakli 3e8c29e5f9 list tests
barisusakli 1cbf5ddfe9 only send back err on redis.deleteAll
barisusakli 7cf3719c80 fix rename and increment
barisusakli 410d9fa4fa fix more tests
barisusakli bf54859a27 key tests
barisusakli 37235557bb fix callback in redis.setRemove
barisusakli 00fb3ab909 only send back error for sortedSetsRemove
barisusakli cd41e192d1 closes
barisusakli 2f8e6a1f2b closes
barisusakli 984b17349a closes
barisusakli c0c85c24cf duh strings dont work
barisusakli 7cbaa90d36 update to socket.io 1.2.1, return_buffers option
barisusakli 73fb653ddf emit works
barisusakli 81e4bcd358 fix rename to multi
barisusakli 671ec8532c fix unfavourite
barisusakli 1d2d69fa45 use helpers, redis crash fix
barisusakli 0a44d3f5e0 moved updateCategoryField out, db.delete only sends back err
barisusakli c56b9aafff closes , replace Infinity with '+inf'
barisusakli 9440f8f8cd
barisusakli 1fe82ee452 added 2 new methods to dbal
getSortedSetRangeWithScores
getSortedSetRangeByScoreWithScores
barisusakli 0bb0424998 bubble error
barisusakli 1b80e6dbb2 fix email update on mongo
barisusakli fec84821b7 removed this wasn't the problem after all
barisusakli df590d01e6 set key as well
not sure if this fixes dupe keys
barisusakli 9e8be432b3 notification changes
-only send a notification when the person you follow creates a topic
-you still get a notification per post if you are following a topic
-changed notifications.push so that it sends the notifications over a
period of time, currently to 50 users per second
-optimized topics.notifyFollowers and
user.notifications.sendTopicNotification, they no longer query the
database for the topic and post data instead they get it as params
-you can no longer follow yourself :)
-changed mongo sortedSetRemove so that it doesn't use $in if there is
only a single value to remove
barisusakli 90224d2de3 removed unique for now
barisusakli f2883c2c9f createIndex helper
barisusakli 1be6a253bf make _key value index unique
barisusakli b65c17c5bc parseInt score
barisusakli e699c02b65 get less data
barisusakli 10ead05d4b another unused require
barisusakli 8cc1cc0f1b removed unused require
barisusakli 1eb95a71ae no need for $in
barisusakli feed33f6e2 closes
barisusakli 035c32df66 dont need to pass value on upserts
psychobunny b42e57bfdd removing leveldb from our dbal
a) It isn't being maintained, especially not by me
b) I haven't seen anybody actually interested in this db software so
there's no real point in supporting it unless we have a few people who
are interested

If you ARE interested though - please contact me and we can figure
something out in future :)
psychobunny f149fb0191 linting, TIL that obj.$key is valid syntax
barisusakli 5db24fbe68 closes
barisusakli 740c336480 typo
barisusakli dba20160ce check length
barisusakli 33780e6fdb closes
barisusakli 73d358edc5 faster getTeasers
got rid of getPostIndices
barisusakli c72c876b04 check value
Julian Lam 4c70a0da4f removing postgres file from databases/
Julian Lam 24ac7ba316 better templating and styling for
Julian Lam f082849126 removing console.log
Julian Lam 43db2289c2 moving db selection into db.connect, where it should be
barisusakli 31db0d78b1 return empty array instead of undefined
barisusakli 3865fd3ab9 fixes crash is sets is empty
Julian Lam 625247611b closed
barisusakli e8dc9fed3c remove unnecessary index
the _key:1 score:-1 index already handles reverse sorting on score
barisusakli 212e15b2c2 fixin redis zrevrangebyscore to return value score
barisusakli 34106aa209 fix fields
barisusakli 5fc760c6c4 unread changes
barisusakli 9d25772b53 added sortedSetIncrBy
barisusakli 176023d712 read poolsize from config
barisusakli c5f9a8a111 increase poolSize to 10 from default 5
barisusakli c5c97c784a optimize getPostIndices
only use 1 set when its in a topic
Julian Lam 3554887f10 back to using redis.auth
Julian Lam 5a36c33fac fixed -- passing in cached (pre-required) redis module into socket.io so it uses the same redis module... why? who bloody knows.
Julian Lam ecea917d11 closed -- NodeBB will prefer using Redis as session store if at all possible
Julian Lam 20819e3dfd Revert "use redis session storage instead of connect-mongo"
This reverts commit 056f89d6cf.
Julian Lam f41be4ae8b exposed redis' "connect" method, so socket.io can call it from outside database/redis.js, fixed NodeBB requiring Redis as a socket.io store. It will now go back to using in-memory store per process, if no redis config is found in the NodeBB configuration. re:
barisusakli b1f492dec3 fix redis bulk zadd
barisusakli 515e663f85 getObjectsFix
return empty array if keys is empty or not an array
barisusakli c640e01969 show stack
barisusakli 5f2a66295c check keys
barisusakli 7d93926ef7 removed async.map
barisusakli e2707353e9 dont return unnecessary data
barisusakli 59120df71c bulk fix
barisusakli 1bad2f79ee show megabyte values