Commit Graph

63 Commits (9e2e32500a7b0adc4c63ac02f6bb307674a43705)

Author SHA1 Message Date
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ı a7267df404 closes
Barış Soner Uşaklı 0070f5c1b2 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Peter Jaszkowiak eaae5b52cd ACP quick actions ()
* ACP quick actions

- Moved restart, build & restart, and logout into separate buttons
- Moved buttons on mobile into the side menu
- Added version and upgrade alert to header / mobile menu
- Moved version checking to server-side with a cache for rate limiting
- Changed "reload" translations to "rebuild and restart"

* Change info alert to black-on-white to match focused search bar

* Fix tests

* Fallback for failed fetch of latest version
Barış Soner Uşaklı e1c6761087 closes
Barış Soner Uşaklı 0a5d16d1cd closes
Barış Soner Uşaklı ff6c6a54c1 make upload permissions global
give upload image permission to registered users on install
add global privileges to app.user.privileges for client side use
caoyi da5997a06e Fix typo ()
Fix typo
Barış Soner Uşaklı 557dfd5b47 testing new socket.io-client extraHeaders ()
* testing new socket.io-client extraHeaders

* change mongodb installation
Julian Lam 303f1146b2 added upload_url to nconf vars @pitaj
Peter Jaszkowiak dc324b36b2 Add test for Plugins.showInstalled
Julian Lam d98b3e8056 automatically lowercasing env vars in nconf, fixes
Barış Soner Uşaklı 271c10c9d7 dont create indices after every test
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
Baris Usakli 062bced3dd cleanup and tests
Peter Jaszkowiak 3dd282b7b9 Load languages with other plugin data
- Added more tests
- Should speed up builds
- Allows for incremental builds in the future
Peter Jaszkowiak cd1f0ddc79 Resolve merge conflicts
Barış Soner Uşaklı 7fb45cc148 more tests
Barış Soner Uşaklı fd0043f36a more tests
Peter Jaszkowiak 90da6d889d Only load necessary plugin data
Fix tests to work in this case
Add more verbose messages to plugins/data
Barış Soner Uşaklı 6fcd12eafe fix tests
Peter Jaszkowiak c18808fdeb ESlint no-useless-concat, no-mixed-spaces-and-tabs
Peter Jaszkowiak fdf4f873bf ESlint eqeqeq
and require-jsdoc, no-negated-condition
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks
Peter Jaszkowiak feb8405f95 ESlint eol-last
Peter Jaszkowiak f3a8256f35 ESlint strict
Peter Jaszkowiak a038c66549 ESlint quotes
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces
Peter Jaszkowiak 2e031f3759 ESlint comma-spacing
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
Peter Jaszkowiak aaacdb8413 Fix , uploads path config setting
- Finish moving uploads route to `/assets/uploads`
- Remove `upload_url` config setting, it was broken
Peter Jaszkowiak 360a35d0a6 Resolve merge conflicts
Peter Jaszkowiak 553567c3b2 Refactor `nodebb`, move `build.js`, add `--dev`
Peter Jaszkowiak 001aa3d1a8 Fix tests, npm Windows fixes
Dominic Lennon 691b46d38b Fixing lint issues
Dominic Lennon f0add97cf9 Fixing tests
Peter Jaszkowiak 05b68391dd Use `/assets` for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
barisusakli 4b6e4f085d more tests
group cover upload tests
registration approval queue tests
barisusakli 49267d54b7 topics unread tests
barisusakli 2f92ce1527 check deps on test
barisusakli db14c29e41 socket.io/categories tests
barisusakli 9796f54580 analytics tests, reduce bcrypt rouds for tests
barisusakli e86db04631 run build step before tests
move build to its own file
barisusakli 553ee7dcdd more chat tests
Sergii Paryzhskyi e515b791da Fix eslint rules ()
* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
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
barisusakli 52a0430603 cleanup console.logs