Commit Graph

23 Commits (43c6087b3462a81c6459c80b65a8bab81438aec6)

Author SHA1 Message Date
Barış Soner Uşaklı 06d1539137 test: fix tests again
Barış Soner Uşaklı c833d3cdc4 test: fix test
Barış Soner Uşaklı 4359e5c97c refactor: remove tabs after declaration
Barış Soner Uşaklı bda5d14425 test: empty query params for search
Barış Soner Uşaklı a592ebd1ff feat: category search test
Barış Soner Uşaklı bbaaead09c feat: add category search test,
Peter Jaszkowiak dab3b23575 chore: eslint no-var, vars-on-top
Peter Jaszkowiak b56d9e12b5 chore: eslint prefer-arrow-callback
Peter Jaszkowiak 707b55b6a5 chore: eslint prefer-template
Barış Soner Uşaklı ec5582b53c
feat: add privilege give/rescind hooks ()
* feat: add privilege give/rescind hooks

action:privileges.categories.give/rescind
action:privileges.global.give/rescind

breaking change, privileges.categories.give/rescind and privileges.global.give/rescind use full privilege name for groups ie `groups:find` instead of `find`

* fix: tests, privileges renamed
Baris Usakli 62787368c6 add searchonly option to searh api
Barış Soner Uşaklı 250e8c01ff closes
Barış Soner Uşaklı da1a90a470 add search test
Barış Soner Uşaklı a7267df404 closes
Barış Soner Uşaklı ea83be50a1 closes
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
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
barisusakli 1fed01fe43 ability to filter search by tags
barisusakli f683a1fe62 added categories to search test
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