Commit Graph

24 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
8383992dcc feat: move export functions into child processes 2020-06-23 00:23:46 -04:00
Barış Soner Uşaklı
53a9517d54 fix: crash in export posts if post content is undefined 2020-06-12 10:29:07 -04:00
Julian Lam
922d49be0b fix(style): switch..case 2020-06-03 11:26:08 -04:00
Barış Soner Uşaklı
5fd81c5c04 fix: check privileges before exporting post/topic data 2020-05-15 15:44:39 -04:00
Barış Soner Uşaklı
f0323b6cfa feat: closes #8316, add more data to export profile 2020-05-15 15:29:28 -04:00
Barış Soner Uşaklı
dfae664e29 fix: exporting posts 2020-05-15 10:59:38 -04:00
Barış Soner Uşaklı
bdda022238 fix: undefined uid when downloading posts 2020-05-15 10:52:04 -04:00
Julian Lam
ccc6118d30 Testing suite integration for openapi spec (#8263)
* feat: testing suite integration for openapi spec

The testing suite now takes the openapi spec into account. It will
check each route defined, make a call to it, and compare the
response with the defined schema. Any mismatches will cause the
test to fail.

* fix(openapi): removed debug stuff from tests

* fix(openapi): fixed some tests

* fix(openapi): added additional check to tests, test fixes

* fix(openapi): better tests, fixed spec errors

* fix(openapi): bad conditional in test

* fix: oops

* fix(openapi): more tests fixing

* fix(openapi): more tests

* fix(openapi): fix some more tests

* fix: verbose'd an info log

* fix: topic pagination route returns schema-optimized pagination block

* fix(openapi): more test/spec fixes

* fix(openapi): accidentally sending in authenticated jar for anon routes

* fix(openapi): more test/spec fixes

* fix(openapi): more spec fixes

* fix: timestampReadable Invalid Date

* fix(openapi): more tests... almost there

* fix(openapi): more tests fixing

* fix(openapi): finally all tests passing

* fix(openapi): added reverse test to compare response to spec

... and fixed all the tests that broke

* fix: remove tests related to group covers, as route is gone

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): object cache is not present for psql

* fix: tests

Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
2020-04-23 21:50:08 -04:00
Barış Soner Uşaklı
3c6c40b177 refactor: async/await controllers/user.js 2019-09-12 14:20:50 -04:00
Barış Soner Uşaklı
c72da5595a fix: #6806
3 new global privileges
view:users
view:tags
view:groups
2019-02-05 12:08:18 -05:00
Barış Soner Uşaklı
69bb3293ee misc fixes
handle spider uids properly
2018-11-12 00:20:44 -05:00
Barış Soner Uşaklı
9c022afae1 Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
229e49cf8f closes #6523, closes #6524 2018-05-26 12:49:29 -04:00
Julian Lam
be1a977c71 fix post export crashing if a pid reference doesn't resolve to an actual post object 2018-05-22 14:45:42 -04:00
Julian Lam
d648e55493 closes #6494 2018-05-09 13:09:33 -04:00
Julian Lam
f2d3111114 disable strict checking of object schema in post upload CSV generation, #6490 2018-05-08 10:01:39 -04:00
Julian Lam
67dec83011 profile export for #6441 + integration 2018-04-13 12:18:02 -04:00
Julian Lam
a6564b7b4e endpoint to download user attachments, #6441 2018-04-13 11:58:31 -04:00
Julian Lam
2e6e7f7484 posts export endpoint for GDPR, re: #6441 2018-04-10 15:59:24 -04:00
Barış Soner Uşaklı
ac1f7eefe5 closes #2304 2018-01-31 15:20:17 -05:00
Baris Usakli
a9dbdc75af closes #5825 2017-07-26 14:32:53 -04:00
barisusakli
54c951cc81 fix tests 2017-03-02 22:12:56 +03:00
barisusakli
4369a6d290 more user tests 2017-03-02 21:58:33 +03:00
barisusakli
b1b87d339f more refactors 2017-03-02 16:11:11 +03:00