199 Commits (2ceda70a97954ef69076ae4e61267b700de5e749)

Author SHA1 Message Date
Barış Soner Uşaklı b7ead6dc9c
Replace jimp with sharp (#6774)
* add probe image size and max image size

* replace jimp and image-probe with sharp

* better name for test

* resize with just path

* resize thumb inplace

* use filename
6 years ago
Ben Lubar 97a3079bc0 Optimize PostgreSQL session store.
- Sets session ID to be a constant-sized character field inline in the
  table instead of a variable-length character field compressed outside
  of the row.
- Changes the session data from "json" to "jsonb" which is faster and
  smaller on disk with the drawback of not maintaining key order and
  whitespace (which we don't care about at all)
- Adds a clustered index on the session expiration timestamp, which will
  make periodic session purging much faster.

(For an example, WTDWTF currently has 482355 sessions in the table, and
 because there is no index on the expiration timestamp, PostgreSQL must
 check all the rows in the table every time.)

This upgrade script can run concurrently with a live NodeBB instance,
but any action that touches sessions will wait until the upgrade script
is done.

Does not touch the database if the database driver is not set to
PostgreSQL or if there is a Redis database configured.
7 years ago
Julian Lam c1725442ea added progress bar to username_email_history upgrade script 7 years ago
Julian Lam 1e3cdc99ac fixes #6702 7 years ago
Ben Lubar 33228bb7fe PostgreSQL database driver (#5861)
* [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.
7 years ago
Julian Lam 48197e2d25 this upgrade script was written in 2018, not 2017, heh 7 years ago
Julian Lam 002cde1057 added progress bar to ip hash upgrade script 7 years ago
Julian Lam 6485fc3129 removing extra console logging #6596 7 years ago
Julian Lam 68c9c8c5d9 fixes #6596 7 years ago
Dravere 17e7fe3070 Fixed wrong callback given to groups.join 7 years ago
Julian Lam cb3b2bd27b closes #6562 7 years ago
Julian Lam 99dc3feeb2 Edit history is now a category-level privilege
Closes #6425
7 years ago
Barış Soner Uşaklı 4f4290b15d rename upgrade folder 7 years ago
Barış Soner Uşaklı a7267df404 closes #6464 7 years ago
Barış Soner Uşaklı 9ae5946e7a Merge remote-tracking branch 'refs/remotes/origin/master' into develop 7 years ago
Barış Soner Uşaklı 14914b7610 handle missing config.json 7 years ago
Julian Lam 360fb69723 upload script for #6455, @psychobunny 7 years ago
Barış Soner Uşaklı 0070f5c1b2 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 7 years ago
Julian Lam 5d2e6f0e8e Squashed commit of the following:
commit 7bd46afad7033a466626826d3e29610f41328510
Author: Julian Lam <julian@nodebb.org>
Date:   Thu Mar 15 15:41:36 2018 -0400

    fixes #6363

commit 4b755d5801b2f6d70cea10516f88392708c72f61
Author: Julian Lam <julian@nodebb.org>
Date:   Thu Mar 15 15:24:12 2018 -0400

    fixes #6362

commit 6035e75453a08aee0fef7ff59d57dd5c1e8f4ac9
Author: Julian Lam <julian@nodebb.org>
Date:   Thu Mar 15 15:07:23 2018 -0400

    Fixes #6361
7 years ago
Barış Soner Uşaklı e1c6761087 closes #6258 7 years ago
Julian Lam c25d752573 Merge remote-tracking branch 'origin/master' into develop 7 years ago
Julian Lam 52678621f9 revising minimum password strength to be 1 instead of 0 7 years ago
Barış Soner Uşaklı 225af93b9e closes #6329 7 years ago
Julian Lam 1ce448f2a1 Merge remote-tracking branch 'origin/master' into develop 7 years ago
Barış Soner Uşaklı fa0328fe35 fix my copy paste fail 7 years ago
Barış Soner Uşaklı 708fda9372 use old settings if available 7 years ago
Barış Soner Uşaklı 723f31a362 closes #6323 7 years ago
Barış Soner Uşaklı ac1f7eefe5 closes #2304 7 years ago
Julian Lam fad0c5f2d5 moved 1.8.0 upgrade scripts to 1.7.4 where they were actually released 7 years ago
Barış Soner Uşaklı 8ceb102ed3 closes #6274 7 years ago
Julian Lam 947c81adf0 @pitaj wut 7 years ago
Julian Lam f6ad344ac6 Fixes #6259
Fixed issue that would cause the upgrade script to completely
wipe your customJS. This was caused by meta.config not being
populated during upgrade scripts (but only when run with
./nodebb upgrade... odd.)
7 years ago
Barış Soner Uşaklı 4dee5a6101 delete expireAt field 7 years ago
Barış Soner Uşaklı 72140e5338 closes #5991, closes #5884 7 years ago
Baris Usakli ecf6c0f3ec closes #4652 7 years ago
Barış Soner Uşaklı ba56810790 upgrade script fixes 7 years ago
Barış Soner Uşaklı 9d7e0775aa closes #6214 7 years ago
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
7 years ago
Baris Usakli 025709499c more fixes 7 years ago
Baris Usakli 63b9255fa1 Merge remote-tracking branch 'refs/remotes/origin/master' into chat-permission 7 years ago
Barış Soner Uşaklı ea8cf6545c change db.set/get to use data field instead of value 7 years ago
Baris Usakli 4a73621dca chat privilege 7 years ago
Barış Soner Uşaklı 43180d4b83 #6158 7 years ago
Peter Jaszkowiak fc19f3af61 Misc fixes and improvements (#6143)
* `setup` command fixes and improvements

- Enable using the `./nodebb setup` command for auto-setup with a JSON argument
- Change CLI so package-install and dependency install are separate steps
- Fix #6142

* Prevent compiling templates multiple times

- Multiple requests for same template get pooled
- Hopefully fixes the "templateFunction is not a function" error which happens if site is restarted during high-traffic times

* More helpful upgrade template
7 years ago
Barış Soner Uşaklı dd176dd5f2
Notification delivery (#6072)
* ability for users to choose how they receive notifications

add type field to more notifications, the type field is used to
determine what to do based on user
setting(none,notification,email,notificationemail)

* change var name to types

* cleanup

* add event types for privileged users

* remove unused language keys

* fix uids check

* changed if statements

* upgrade script to preserver old settings
7 years ago
Baris Usakli 43bec4cb45 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 7 years ago
Baris Usakli 6778cce265 add new zset 7 years ago
Julian Lam 9cbf1597cd Merge remote-tracking branch 'origin/master' into develop 7 years ago
Julian Lam cd6dcff38b Split up customJS into customHTML and customJS for better organisation (#5981)
* WIP

* fixed customJS not actually working in footer

* Moving scripts to footer, #5980

* Added upgrade scripts for #5980
7 years ago
Barış Soner Uşaklı 410e825bc0 fix upgrade script changing brand:logo to absolute path 7 years ago
Julian Lam 2086a64a5e fixes #5947 7 years ago
Barış Soner Uşaklı a4532f011a Blacklist fix (#5918)
* closes #5917

* fix callback for upgrade script

* delete key even if falsy, could be empty string

* DRYer ternary
8 years ago
Julian Lam 302f06df95 fixes #5914 8 years ago
psychobunny c3b1f31a5f email logo: prevent crash if source image doesn't exist 8 years ago
Julian Lam 94c84cdc5b moving email logo upgrade script to 1.6.0 8 years ago
Julian Lam d9ace1723c removed references to libs that aren't used 8 years ago
Julian Lam 63ec3b6a55 upgrade script to generate and set email logo+sizes in config 8 years ago
Barış Soner Uşaklı 71e3fea55b closes #5802 8 years ago
Baris Usakli e036e26238 closes #5813 8 years ago
Julian Lam e309ac5040 fixes #5790 8 years ago
psychobunny 6cb0d6f8c1 wipe existing rss tokens 8 years ago
Barış Soner Uşaklı d65f494c6d closes #5127 8 years ago
Julian Lam b3c9992ba3 made upgrade script log verbose 8 years ago
Peter Jaszkowiak dfbb96d47b Remove require.main.require 8 years ago
Barış Soner Uşaklı 3d1b1a9423 closes #5706 8 years ago
Barış Soner Uşaklı 5b69598f15 Merge pull request #5632 from NodeBB/fix-5631
Fix #5631
8 years ago
Julian Lam db4fdbaebe removing jslint directive at top of upgrade scripts @pitaj 8 years ago
Julian Lam 6095b7e6db change where progress.incr is called for flags_refactor upgrade script 8 years ago
Peter Jaszkowiak 8a87311d5c Remove annoying jslint comment
Use an rc file instead
8 years ago
Peter Jaszkowiak 2a0cb3b9ee Fix profile covers not working with subfolders
Remove relative_path from the paths saved in the database so they're more portable
8 years ago
barisusakli 5516352758 closes #5612 8 years ago
barisusakli 2ab028a4bc update upgrade script to use batch 8 years ago
Julian Lam e5f7eed8ec adding progress bar to session deletion upgrade script 8 years ago
Julian Lam 7a0db03d99 Merge branch 'upgrade-progress-bar' into develop 8 years ago
barisusakli 56ba08f17e fix require path 8 years ago
Julian Lam 542cf1a982 Merge remote-tracking branch 'origin/master' into develop 8 years ago
Julian Lam b25fbd1e2e fix broken upgrade script 8 years ago
Julian Lam 3022a1920b added progress bars to all upgrade scripts processing posts:pid sorted set 8 years ago
Julian Lam 8fc6123230 fixing accidental eachSeries 8 years ago
Julian Lam 33082d90cc updated logic to make it a bit simpler to implement per upgrade script 8 years ago
Julian Lam 1cd50a8c30 Merge branch 'develop' into upgrade-progress-bar 8 years ago
barisusakli e63559b6fd closes #5484 8 years ago
Julian Lam 42b5cdaae3 progress bars! omg 8 years ago
Barış Soner Uşaklı fe27d40ff6 closes #5542 8 years ago
Julian Lam a82a50baa6 fix date and name in config urls upgrade script 8 years ago
Julian Lam f0059ec723 fixed paths in upgrade scripts 8 years ago
Julian Lam e309175989 eslinted template 8 years ago
Julian Lam fc13776f26 moving files from src/upgrades to individual folders by version 8 years ago
Julian Lam 48fc74f1fa Merge branch 'develop' into upgrades-refactor
re-added upgrade scripts from #5464
8 years ago
Julian Lam a8dd794697 reapply ef93ef3dd4 8 years ago
Julian Lam 513f72c0e9 Merge branch 'develop' into upgrades-refactor 8 years ago
Julian Lam 1c9cbc3365 Merge branch 'develop' into upgrades-refactor 8 years ago
Julian Lam 8f5d1ca4da added null check for #5482 8 years ago
Julian Lam 23a0881311 Merge branch 'develop' into upgrades-refactor
Also handled upgrade script introduced in #5482
8 years ago
Julian Lam a2662f8b69 linting for tests to pass 8 years ago
Julian Lam b385655dba adding upgrade scripts from all of v1.x.x, #5467 8 years ago
Julian Lam 6ea0fc4e2f changed file schema to be name only, storing them in object sets referencing their applicable versions 8 years ago
Julian Lam 9eed3abb1d added template to upgrades folder 8 years ago
Julian Lam 5b8c9503c3 refactor upgrade scripts to use individual files in src/upgrades/ as source of schema changes 8 years ago