Commit Graph

1355 Commits

Author SHA1 Message Date
Julian Lam
8a4614f147 Merge remote-tracking branch 'origin/master' into webpack5 2022-03-15 15:16:27 -04:00
Julian Lam
e578c60566 test: skip i18n tests if the github event is a pull request 2022-03-15 15:15:38 -04:00
Julian Lam
76f877a886 Merge remote-tracking branch 'origin/master' into webpack5 2022-03-15 10:19:54 -04:00
Barış Soner Uşaklı
24c1f879a5 test: fix middleware test 2022-03-11 23:50:28 -05:00
Barış Soner Uşaklı
6344c3b689 test: fix category tests 2022-03-11 23:45:01 -05:00
Barış Soner Uşaklı
bfe920eb45 Merge branch 'master' into webpack5 2022-03-11 14:09:33 -05:00
Barış Soner Uşaklı
a551142593 test: fix one more test 2022-03-11 13:46:01 -05:00
Barış Soner Uşaklı
3414a23bce feat: min:rep:upvote, and other limits similar to downvotes
closes #10380
2022-03-11 13:34:36 -05:00
Barış Soner Uşaklı
d55ae3bfd5 refactor: require server side utils 2022-03-10 19:57:11 -05:00
Julian Lam
767b2688b6 refactor: privileges system to use a Map in the backend instead of separate objects for keys and labels (#10378)
* refactor: privileges system to use a Map in the backend instead of separate objects for keys and labels

- Existing hooks are preserved (to be deprecated at a later date, possibly)
- New init hooks are called on NodeBB start, and provide a one-stop shop to add new privileges, instead of having to add to four different hooks

* docs: fix typo in comment

* test: spec changes
2022-03-10 17:08:03 -05:00
Barış Soner Uşaklı
f89babdca9 test: add debug for random failing test 2022-02-25 17:59:47 -05:00
Barış Soner Uşaklı
322bd599f9 test: fix filename 2022-02-25 12:04:44 -05:00
Barış Soner Uşaklı
57a64b7809 refactor: add server side helpers.js 2022-02-25 09:59:33 -05:00
Barış Soner Uşaklı
10a5901e4a fix: persona test fail 2022-02-20 13:43:50 -05:00
Barış Soner Uşaklı
1dceb2b223 lint: fix 2022-02-19 18:13:45 -05:00
Barış Soner Uşaklı
a4c5dcce6c test: lint and test fixes 2022-02-19 18:07:08 -05:00
Barış Soner Uşaklı
6bfc53fc6f test: composer 2022-02-17 22:24:05 -05:00
Barış Soner Uşaklı
cb34728421 test: maybe fix build test 2022-02-17 22:10:33 -05:00
Barış Soner Uşaklı
1803c29ec9 test: fix one more test
remove 500-embed.tpl
2022-02-17 20:36:49 -05:00
Barış Soner Uşaklı
862381008a test: move and disable bundle test 2022-02-17 16:12:04 -05:00
Barış Soner Uşaklı
70f35e56ec Merge branch 'master' into webpack5 2022-02-17 15:12:00 -05:00
Barış Soner Uşaklı
9db90a3098 test: log configJSON 2022-02-17 15:11:24 -05:00
Barış Soner Uşaklı
13e3b9440b Merge branch 'master' into webpack5 2022-02-17 14:47:48 -05:00
Barış Soner Uşaklı
32f693019b test: check contents of config.json in tests 2022-02-17 14:47:23 -05:00
Barış Soner Uşaklı
ab673e362b Merge branch 'master' into webpack5 2022-02-17 14:16:21 -05:00
Julian Lam
17836f2a3a Re-introduce lodash into src/package-install.js (#10315)
* test: add failing test for if package.json is non-existant, fix tests' beforeEach method

* Revert "fix: #10289, remove lodash dependency in src/cli/package-install.js"

This reverts commit 81fa2e22bc.

* fix: regression caused by 94b79ce402

`./nodebb setup` was no longer able to be called without arguments or env vars

* fix: .updatePackageFile() throwing if no package.json

* fix: removing unneeded code in src/cli/index.js that seemed to be used to handle cases where package.json was missing (initial install)

... However, as .updatePackageFile() now handled cases where there is no package.json, it should be ok to remove this code

* fix: handle missing package.json or node_modules/
2022-02-17 14:10:24 -05:00
Barış Soner Uşaklı
00aadc047f test: require correct utils 2022-02-17 13:14:30 -05:00
Barış Soner Uşaklı
306a8dd2cf test: require correct utils module 2022-02-17 13:10:28 -05:00
Barış Soner Uşaklı
4b35f654a3 test: more test fixes 2022-02-17 13:03:46 -05:00
Barış Soner Uşaklı
d3969e5656 test: fix require path 2022-02-17 12:33:12 -05:00
Barış Soner Uşaklı
1a0b82f434 test: fixe util tests 2022-02-17 12:27:18 -05:00
Barış Soner Uşaklı
2ea55c4311 Merge branch 'master' into webpack5 2022-02-15 20:54:08 -05:00
Barış Soner Uşaklı
58b5781cea feat: closes #10296
asset_base_url in nconf
keep assetBaseUrl in config for backwards compat
2022-02-15 19:22:34 -05:00
Barış Soner Uşaklı
a1a1e8da18 feat: webpack 5 part 1 2022-02-14 21:35:33 -05:00
Julian Lam
fb78570c13 test: fix topic thumb tests and topic thumbs to work properly with post upload assoc. 2022-02-14 15:02:07 -05:00
Julian Lam
d5ed8736aa feat: deleting a user upload dissociates from posts, and vice versa 2022-02-14 15:02:07 -05:00
Julian Lam
8c2752bab1 test: user uploads.js tests 2022-02-14 15:02:07 -05:00
Julian Lam
11275d6809 test: testing user upload methods, already fixed one bug 2022-02-14 15:02:07 -05:00
Julian Lam
b9edee143e fix: local deleteUploads() method in src/user/delete.js to call User.deleteUpload() 2022-02-14 15:02:07 -05:00
Julian Lam
6489e9fd9e refactor: change the post uploads' hash seeds to have the files/ prefix 2022-02-14 15:02:07 -05:00
Julian Lam
84dfda59e6 fix: #10144, automatically delete uploads from disk on post purge, ACP option to keep uploads on disk if desired 2022-02-14 15:02:07 -05:00
Julian Lam
d92da828a3 refactor: move post upload tests to its own file 2022-02-14 15:02:07 -05:00
Barış Soner Uşaklı
2dbdd1818f test: fix occasional test failure 2022-02-08 17:36:28 -05:00
Julian Lam
a2c7d69e1b fix: remove extraneous devDependencies on package merge
/cc @pitaj
2022-02-08 11:13:51 -05:00
Julian Lam
9e4147f07c chore: use source and current local vars, + docs 2022-02-08 11:00:35 -05:00
Julian Lam
0f788b8eaa fix: #10257, topic thumbs not deleting on topic deletion 2022-02-07 17:29:34 -05:00
Julian Lam
606808760e test: add test to verify that a sorted set is automatically deleted if its last element is removed (#10261)
* test: add test to verify that a sorted set is automatically deleted if its last element is removed

* fix: remote empty zsets when all elements have been removed #yolo

* Revert "fix: remote empty zsets when all elements have been removed #yolo"

This reverts commit 0ac73244bb.

* fix: altered behaviour in module.exists instead of zrem
2022-02-07 17:16:50 -05:00
Julian Lam
d34471f69f fix: regression in package.json merging logic that caused extraneous packages to not be removed 2022-02-04 16:20:31 -05:00
Julian Lam
689c125cd3 fix: #10229, package merging should deep merge nested objects
+ tests
2022-02-04 16:20:31 -05:00
Julian Lam
a0a3870611 fix: use fs.promises 2022-02-04 16:20:31 -05:00