Commit Graph

81 Commits (0083d4ff1c136a7b46e33fd617458a1da7a3c5a2)

Author SHA1 Message Date
Julian Lam 848babcdfa Merge pull request from ahwayakchih/support-more-config-defaults-for-setup
This adds more setup defaults from config.
barisusakli c7128bcc98 part 1 of search change
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.
barisusakli 7cbaa90d36 update to socket.io 1.2.1, return_buffers option
barisusakli 73fb653ddf emit works
psychobunny f149fb0191 linting, TIL that obj.$key is valid syntax
Julian Lam f082849126 removing console.log
Julian Lam 43db2289c2 moving db selection into db.connect, where it should be
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 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 38494a2af0 pass in session directly
barisusakli 24ebf20d7e first commit
Julian Lam 584fe60284 fixed , redis error handling will go back to crashing the error (though the error will be logged at least)
barisusakli 5f7ed289de print stack on db error
barisusakli 90f5683cc2 read redis host just before connecting
psychobunny 7a823283e4 fixed my derp
psychobunny f892a6793a mongo/redis - don't show passwords when typing in CLI
psychobunny 8a1f6eb43e forgot to export helpers as well for secondary db
psychobunny bba3df6802 moving db.close into the parent module
psychobunny df5f3d185a don't attempt to initialize db until we attempt to initialize
psychobunny 9ad7ce9ca8 organizing redis driver
barisusakli 1e3b88a7f0 passing array straight to redis
barisusakli 9d405812cb changed sortedSetRangeByScore
barisusakli e11efad0b7 added getSortedSetRangeByScore
barisusakli 4f72513f19 removed keys
barisusakli 76037a5f14 closes
added a new method called isSetMembers takes in an array of values to
test if they are members of a set
barisusakli 3d68c7c6b6 added getObjectsFields methods to db class, changed getUsers methods to use the new method, refactor to user.js and mongo.js
barisusakli 71f84655ca minor cleanup
barisusakli 57f9f8bc57 closes
Baris Soner Usakli da0e1a8eb9 added back err to redis flushdb
Baris Soner Usakli 4986c8ed3a fixed tests
Baris Soner Usakli 87f337f2fb cleanup
Baris Soner Usakli fff3ba5bec hinted redis.js
Baris Soner Usakli 3958ee4120 added close db command
Julian Lam a2942e22cc Revert "removing exported search methods from redis and mongo"
This reverts commit bba3b76108.
Julian Lam bba3b76108 removing exported search methods from redis and mongo
Baris Soner Usakli 1e44ca3a0f upgrade topics:tid to sorted set, topics:recent doesnt have deleted topics
Baris Soner Usakli a909a25393 closes
Baris Soner Usakli c78942b7a4 added warnings if no pwd setup for db,
Julian Lam 8ac7ccb4f8 calling auth immediately after client connection (apparently, not doing so throws errors on install?)
Baris Soner Usakli 9fbd5ed596 removed unused function
Baris Soner Usakli da626a4035 more fixes
Baris Soner Usakli 606367701f pagination on posts
Baris Soner Usakli bc1cde38da added getObjectKeys for julian :)
Baris Soner Usakli 84cbcc5a97 closes
Julian Lam a48a7acd51 fixing issue where after a user changed their username, the new name was not reindexed by Reds
Baris Soner Usakli dcf47f558e limit search in db
Baris Soner Usakli bbcc2312db better redis info parser from node-redis
Baris Soner Usakli f21a98f37f first pass, ,