Commit Graph

95 Commits

Author SHA1 Message Date
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.
2018-08-08 15:13:48 -04:00
Julian Lam
48197e2d25 this upgrade script was written in 2018, not 2017, heh 2018-07-26 11:02:43 -04:00
Julian Lam
002cde1057 added progress bar to ip hash upgrade script 2018-06-29 13:56:22 -04:00
Julian Lam
6485fc3129 removing extra console logging #6596 2018-06-22 16:36:52 -04:00
Julian Lam
68c9c8c5d9 fixes #6596 2018-06-22 16:36:01 -04:00
Dravere
17e7fe3070 Fixed wrong callback given to groups.join 2018-06-13 10:23:04 -04:00
Julian Lam
cb3b2bd27b closes #6562 2018-06-08 16:01:33 -04:00
Julian Lam
99dc3feeb2 Edit history is now a category-level privilege
Closes #6425
2018-06-07 14:00:51 -04:00
Barış Soner Uşaklı
4f4290b15d rename upgrade folder 2018-05-31 10:34:38 -04:00
Barış Soner Uşaklı
a7267df404 closes #6464 2018-05-28 11:29:41 -04:00
Barış Soner Uşaklı
9ae5946e7a Merge remote-tracking branch 'refs/remotes/origin/master' into develop 2018-04-26 12:17:51 -04:00
Barış Soner Uşaklı
14914b7610 handle missing config.json 2018-04-24 13:26:08 -04:00
Julian Lam
360fb69723 upload script for #6455, @psychobunny 2018-04-16 17:00:25 -04:00
Barış Soner Uşaklı
0070f5c1b2 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 2018-04-05 12:34:38 -04:00
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
2018-03-15 15:42:20 -04:00
Barış Soner Uşaklı
e1c6761087 closes #6258 2018-02-28 17:38:31 -05:00
Julian Lam
c25d752573 Merge remote-tracking branch 'origin/master' into develop 2018-02-23 14:48:38 -05:00
Julian Lam
52678621f9 revising minimum password strength to be 1 instead of 0 2018-02-21 11:06:07 -05:00
Barış Soner Uşaklı
225af93b9e closes #6329 2018-02-17 14:35:02 -05:00
Julian Lam
1ce448f2a1 Merge remote-tracking branch 'origin/master' into develop 2018-02-16 21:23:25 -05:00
Barış Soner Uşaklı
fa0328fe35 fix my copy paste fail 2018-02-14 12:33:19 -05:00
Barış Soner Uşaklı
708fda9372 use old settings if available 2018-02-14 12:31:33 -05:00
Barış Soner Uşaklı
723f31a362 closes #6323 2018-02-14 11:53:57 -05:00
Barış Soner Uşaklı
ac1f7eefe5 closes #2304 2018-01-31 15:20:17 -05:00
Julian Lam
fad0c5f2d5 moved 1.8.0 upgrade scripts to 1.7.4 where they were actually released 2018-01-29 17:42:34 -05:00
Barış Soner Uşaklı
8ceb102ed3 closes #6274 2018-01-22 10:06:48 -05:00
Julian Lam
947c81adf0 @pitaj wut 2018-01-19 13:00:10 -05:00
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.)
2018-01-19 11:39:32 -05:00
Barış Soner Uşaklı
4dee5a6101 delete expireAt field 2018-01-13 18:18:41 -05:00
Barış Soner Uşaklı
72140e5338 closes #5991, closes #5884 2018-01-12 17:29:47 -05:00
Baris Usakli
ecf6c0f3ec closes #4652 2018-01-09 14:33:23 -05:00
Barış Soner Uşaklı
ba56810790 upgrade script fixes 2018-01-08 12:03:02 -05:00
Barış Soner Uşaklı
9d7e0775aa closes #6214 2018-01-08 09:37:59 -05:00
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
2018-01-03 13:27:34 -05:00
Baris Usakli
025709499c more fixes 2017-12-20 15:19:22 -05:00
Baris Usakli
63b9255fa1 Merge remote-tracking branch 'refs/remotes/origin/master' into chat-permission 2017-12-20 13:13:10 -05:00
Barış Soner Uşaklı
ea8cf6545c change db.set/get to use data field instead of value 2017-12-18 20:21:38 -05:00
Baris Usakli
4a73621dca chat privilege 2017-12-18 15:43:57 -05:00
Barış Soner Uşaklı
43180d4b83 #6158 2017-12-08 19:58:12 -05:00
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
2017-12-04 15:49:44 -05:00
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
2017-11-15 21:35:10 -05:00
Baris Usakli
43bec4cb45 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 2017-10-30 17:08:16 -04:00
Baris Usakli
6778cce265 add new zset 2017-10-30 17:07:51 -04:00
Julian Lam
9cbf1597cd Merge remote-tracking branch 'origin/master' into develop 2017-10-12 14:01:14 -04:00
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
2017-10-12 13:38:27 -04:00
Barış Soner Uşaklı
410e825bc0 fix upgrade script changing brand:logo to absolute path 2017-10-11 17:52:03 -04:00
Julian Lam
2086a64a5e fixes #5947 2017-10-03 09:40:52 -04:00
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
2017-09-07 15:34:17 -04:00
Julian Lam
302f06df95 fixes #5914 2017-09-06 15:09:01 -04:00
psychobunny
c3b1f31a5f email logo: prevent crash if source image doesn't exist 2017-08-15 15:17:09 -04:00