Commit Graph

106 Commits (1c80adf1ef7fdb8af43033d4ca5517ef0410d07f)

Author SHA1 Message Date
Baris Usakli 420227faae parseFloat scores
Barış Soner Uşaklı 53ad2bbd6e
Categories optimize ()
* WIP

* fix category page

* fix counts, and copyPrivileges

* fix lint

* more fixes,

* redis fix

* fix test

* fix  category test

* remove getParentsAndChildren
Barış Soner Uşaklı ca1e3a758b
Barış Soner Uşaklı f8e219c323 handle empty set, add test
Barış Soner Uşaklı 75816deca7
add cache to redis ()
* add cache to redis

move out cache module from mongo

* fix redis tests

* add callback noop

* fix typo

* del cache on field delete

* make redis/mongo caches separate
Barış Soner Uşaklı 7aa937a657 remove dupe code in mongodb sorted
Barış Soner Uşaklı f3a679e268 remove parseInts
Barış Soner Uşaklı c738dc7d3e remove some more parseInts
Barış Soner Uşaklı e615391b22 convert values to string before removing
Barış Soner Uşaklı 18d0deeccb
update deprecated methods ()
Ben Lubar 33228bb7fe PostgreSQL database driver ()
* [test/database/list] Fix test list 4 being used in two different tests

* [database/postgres] PostgreSQL database driver

* [database/postgres] Make transactions work based on continuation scope.

* [database/postgres] Implement nested transactions

* eslint --fix

* Add database changes from earlier this week to the PostgreSQL driver.

* Fix typo

* Fix postgres.incrObjectFieldBy returning undefined instead of null when given NaN

* [database/postgres] Fix sortedSetsCard returning an array of strings.

* Update socket.io postgres adapter

* Fix PostgreSQL erroring when multiple updates are made to the same sorted set entry in a single operation.

Add a test case to catch this error.

* Fix lint errors.

* Only prune sessions on one instance in a cluster to avoid deadlocks.

They're caught and handled by the database server, but they spam the logs.

* Fix arguments.slice.
Barış Soner Uşaklı c3fc4a06bf test sortedSetUnion with scores
Barış Soner Uşaklı fde44cb9b9 pass array to groups.destroy
pass array to db.sortedSetRemove
Barış Soner Uşaklı be5c237388 fix decr/incrObjectField if key in array doesn't exist create it
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
Barış Soner Uşaklı 7221b71b68 add test for srem with multi elements
Baris Usakli 959a742c63 add llen to dbal
Barış Soner Uşaklı bce640e514 closes
Barış Soner Uşaklı 7a2d6fe22d Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Barış Soner Uşaklı b084a596fa closes
Ben Lubar 5b1ed21634 [database/mongo] Improve speed of sortedSetRank ()
* [database/mongo] Improve speed of sortedSetRank

* [database/mongo] Fix sortedSetRank to filter by _key
Barış Soner Uşaklı 87d40e9e78 fix increment to use data
Barış Soner Uşaklı 8e04e86e24 closes
Baris Usakli dbf815ed47 closes
Baris Usakli 5604c62776 use the first set for sorting
Barış Soner Uşaklı e7318a1cea Mongo cache ()
* cache mongodb objects

remove user settings cache since it is cached at the object level

* removed indexOf from isMemberOfSets

* change has to get, change maxAge to 0
Barış Soner Uşaklı 108f84fd19 add type to dbal
Barış Soner Uşaklı 329bfeeb3b convert min/max to float
Barış Soner Uşaklı 5a55c882ab convert NaN uids to 0
Barış Soner Uşaklı f1b8492164 remove unnecessary checks
Peter Jaszkowiak b171f3072b Fix many "duplicate key" errors
- Reset defaults after every test
- Remove individual `after(db.emptydb)` calls
- Fix async.every in groups test
- Update plugin list in socket tests
Barış Soner Uşaklı fe0a5aaf28 fix redis tests
Barış Soner Uşaklı fd0043f36a more tests
Barış Soner Uşaklı 95196ceedc closes
Barış Soner Uşaklı 4ab514a422 test for .delete with zset
barisusakli d8170d5d1c fix tests
barisusakli 4d1b8d7460 fix lint
barisusakli 92343eb2e1 fix mongo setObject if key/value is empty string
barisusakli 7ce6c1d0ad closes
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks
Peter Jaszkowiak 2e031f3759 ESlint comma-spacing
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces
Peter Jaszkowiak 52f2028206 ESlint no-multiple-empty-lines
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
Moritz Schmidt ec5d13188b sneakily adjust database/sorted tests to include float scores
barisusakli 5d6e2ad083 multiple test fixes
barisusakli c8b5c181ff fix flag on redis
check if number is returned on tests
Barış Soner Uşaklı c512a02c83 Merge pull request from yariplus/lexistuff
Add additional lexical dbal operations.
yariplus af2122bdb9 fix lex tests maybe
barisusakli 4a0f67afdc search tests
new method emptydb
use emptydb instead of flushdb, flushdb  removes indices for mongo which
breaks search tests
initialize meta.config properly in tests
enable nodebb-plugin-dbsearch for tests
yariplus e8823eab33 add db lexical tests
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule
HeeL 4c6a75d85c Rename tests folder to test to follow standards