Barış Soner Uşaklı
190532b3b4
refactor: shorter meta.settings.get
3 years ago
Barış Soner Uşaklı
51cbeccb08
refactor: clone settings before returning
...
prevents plugins from mistakenly modifying saved settings in cache
3 years ago
Barış Soner Uşaklı
8379c11b22
refactor: setObjectBulk to match sortedSetAddBulk
3 years ago
Baris Usakli
d412ba4411
perf: closes #9994 , bulk methods for settings
3 years ago
Barış Soner Uşaklı
9e0ce0272c
fix: don't overwrite reloadRequired with false
...
1. meta.settings.set('name', values); // reloadRequired is set to true
2. meta.settings.set('otherName', values, false); // reloadRequired was set to false, even though it should stay true until restart due to step 1
3 years ago
Peter Jaszkowiak
5c2f0f0557
chore: eslint no-restricted-syntax
4 years ago
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
4 years ago
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
4 years ago
Julian Lam
d6f60f4502
fix: broken test after sorted-lists logic change
4 years ago
Julian Lam
d5d24594e8
feat: allow sorted-lists on multiple pages
...
If multiple sorted-lists were on separate pages, saving one page would erase the sorted-lists saved on the other page. This was caused by naive deletion of the sorted-lists index on settings save.
At the same time, a bug was found where if fewer items were passed in, only that many items were removed from the database, leaving leftover orphan data in the database.
The logic now:
- Only removes sorted-lists if they are passed in (and empty)
- Deletes all sorted list items, not just the items passed in.
4 years ago
Julian Lam
a8be6fb8fb
fix: regression where `filter:settings.set` no longer received sorted-lists
4 years ago
Julian Lam
473d5f4aba
fix: full settings hash not passed through to action:settings.set
...
The sorted lists were being filtered out
4 years ago
Julian Lam
eb96046e97
Revert "refactor: use Map to track sorted lists in Settings.set()"
...
This reverts commit 65de2e76b4
.
4 years ago
Julian Lam
65de2e76b4
refactor: use Map to track sorted lists in Settings.set()
4 years ago
Julian Lam
6e2da9966e
refactor: move plugin hook methods to plugin.hooks.*
4 years ago
Tudor-Dan Ravoiu
452d7f2b17
Create verified/unverified user groups ( #8889 )
...
Co-authored-by: Tudor-Dan Ravoiu <[email protected] >
4 years ago
Barış Soner Uşaklı
156e1396f2
fix: #8789,cache meta.settings
4 years ago
Julian Lam
c7d15dfa94
feat: filter:settings.get plugin hook
4 years ago
Julian Lam
49652e6f1b
feat: management of API tokens via ACP
4 years ago
Barış Soner Uşaklı
8e23dec84b
fix: lint
5 years ago
Barış Soner Uşaklı
e72a29b3fd
fix: return null if field does not exist
5 years ago
Andrew Rodrigues
3c9689a5ac
feat: settings sorted list ( #8170 )
...
* feat: settings sorted list
see https://github.com/NodeBB/nodebb-plugin-quickstart/pull/9/files for sample
5 years ago
Barış Soner Uşaklı
0630915cad
when settings are saved publish it to all nodes
...
add runJobs value to nconf, only true on nodes that should run jobs ie
isPrimary and jobs are not disabled
7 years ago
Julian Lam
5fc6fe1c80
closes #5162
8 years ago
Baris Usakli
cf444755df
closes #5729
8 years ago
Peter Jaszkowiak
b60dbe7d1e
Unwrap meta modules
8 years ago
Peter Jaszkowiak
3b0dd2d1ef
ESlint padded-blocks
8 years ago
Peter Jaszkowiak
feb8405f95
ESlint eol-last
8 years ago
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
8 years ago
barisusakli
1c6cee207f
meta/settings test
8 years ago
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
9 years ago
Barış Soner Uşaklı
9d0dc35703
closes #5081
9 years ago
barisusakli
d4c512cb3f
handle the case where the object is not set at all #5018
9 years ago
barisusakli
7269d45e84
closes #5018
9 years ago
Julian Lam
8304740bd5
fixing crash on settings save
9 years ago
Julian Lam
3a34901cdb
on settingsv2 save, reload should be required
9 years ago
barisusakli
c3b8d0b328
check err first
10 years ago
Julian Lam
839edc80b1
updated action:settings.set hook
10 years ago
Julian Lam
84832f57cc
firing action:settings.set hook AFTER the object is saved in the db. What was I thinking?!
11 years ago
barisusakli
f288f80da6
meta.js refactor
11 years ago