Commit Graph

59 Commits

Author SHA1 Message Date
Pascal Jufer
acd41eb0be Syntax fixes (#5367)
* Declare return types on functions

And a very few other type related minor fixes

* Minor syntax fixes

* Remove unnecessary escape chars in regexes
* Remove unnecessary awaits
* Replace deprecated req.connection with req.socket
* Replace deprecated upload with uploadOne
* Remove unnecessary eslint-disable-next-line comments
* Comment empty functions / catch or finally clauses
* Fix irregular whitespaces
* Add missing returns (null)
* Remove unreachable code
* A few logical fixes
* Remove / Handle non-null assertions which are certainly unnecessary (e.g. in
tests)
2021-04-29 12:11:43 -04:00
rijkvanzanten
4a942067fc Make migration logs more explicit 2021-04-23 18:04:59 -04:00
Rijk van Zanten
3b05372713 Finalize services API (#5170)
* Start the xOne/xMany work

* Update update/upsert

* Finish updating itemsservice

* Add comments, add nested revisions on update

* Use new internal api

* Update collectionService to one/many structure

* Move files to one/many structure

* Move permissions to one/many structure

* Move relations service to one/many structure

* Move roles to one/many structure

* Move users service over

* Move webhooks to updated structure

* Move deprecated methods to the bottom

* Replace deprecated uses

* Use new methods in controllers, add batch update/delete by query

* Use updated methods in API

* Fix email being required

* Remove unnecessary DB call

* Fix batch update/delete validation
2021-04-20 18:06:27 -04:00
Jakob
79e7a7c451 Run migrations before adding the admin user (#5128) 2021-04-19 10:06:16 -04:00
Nitwel
3da416b6ff validate password on setup (#4844) 2021-04-05 10:26:41 -04:00
Adrian Dimitrov
a18f9d68d5 Add cli passwd command (#4398)
* User passwd cli command

* Add command to list
2021-03-23 10:39:11 -04:00
Rijk van Zanten
97dcdad847 OracleDB baby steps (#4464)
* Allow external connections in oracle debug

* Fix oracle overview query

* Use correct alive check for oracle

* Remove unused import

* Validate correct env vars for oracle
2021-03-10 16:58:49 -05:00
rijkvanzanten
acc8b4fd08 Use mssql instead of tedious for client name
Fixes #4427
2021-03-08 07:39:57 -05:00
Nicola Krumschmidt
08293b8570 Update Knex to version 0.95.0 (#4374)
* Update Knex to version 0.95.0

* Fix formatting in schema dialects

* Fix Knex imports

* Update package-lock

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-03 19:37:44 -05:00
Rijk van Zanten
b7d87e581a System permissions for app access (#4004)
* Pass relations through schema, instead of individual reads

* Fetch field transforms upfront

* Fix length check

* List if user has app access or not in accountability

* Load permissions up front, merge app access minimal permissions

* Show app access required permissions in permissions overview

* Show system minimal permissions in permissions detail

* Fix app access check in authenticate for jwt use

* Fix minimal permissions for presets

* Remove /permissions/me in favor of root use w/ permissions

* Fix logical nested OR in an AND

* Use root permissions endpoint with filter instead of /me

* Allow filter query on /permissions

* Add system minimal app access permissions into result of /permissions

* Remove stray console log

* Remove stray console.dir

* Set current role as role for minimal permissions

* Fix no-permissions state for user detail

* Add filter items function that allows altering existing result set
2021-02-11 12:50:56 -05:00
rijkvanzanten
7b5aca93e3 Allow setting project name during bootstrap 2020-12-31 15:37:54 -05:00
Giacomo Triggiano
24ba1a22fb Fix migrations exit code 2020-12-10 11:22:41 +01:00
rijkvanzanten
a5e8da9677 Exit the process on successfull CLI commands
Fixes #3256
2020-12-07 18:52:17 -05:00
Nicola Krumschmidt
a4ceab217d Improve cli init error message 2020-12-06 23:07:52 +01:00
rijkvanzanten
c30d2059d7 Remove key/secret check 2020-12-02 15:29:57 -05:00
rijkvanzanten
e3d289b7a4 Add CLI bootstrap command 2020-12-02 15:27:54 -05:00
Kyle Herock
1ddb579009 fix database import for user create command 2020-11-13 20:39:57 -05:00
rijkvanzanten
514b26bb0b Pass schema to services in CLI
Fixes #948
2020-11-11 09:03:03 -05:00
Ben Haynes
c2d46097f4 new admin icon 2020-11-10 14:16:08 -05:00
rijkvanzanten
7cc7f300fa Prevent cli from hanging on failed count
Fixes #909
2020-11-10 13:00:50 -05:00
rijkvanzanten
d18b5800ed Fix cli command function name 2020-11-09 13:34:45 -05:00
rijkvanzanten
1b0d381161 Fix seeder data, run migrations on install through cli 2020-10-30 11:52:16 -04:00
rijkvanzanten
fdb0572cd5 Always install DB driver
Fixes #802
2020-10-29 17:03:53 -04:00
rijkvanzanten
f99ed1965e Make installer a little friendlier
Fixes #322
2020-10-15 18:36:01 -04:00
rijkvanzanten
8e2a815a66 Add note on config
Closes #44
2020-10-15 17:30:09 -04:00
rijkvanzanten
dff98f316b Remove unneeded start command file in cli 2020-10-15 12:46:25 -04:00
rijkvanzanten
0b894138b7 Move start to separate file 2020-10-15 12:44:21 -04:00
rijkvanzanten
a39b762c81 Move start functionality to server.ts 2020-10-15 12:31:57 -04:00
rijkvanzanten
a4092a070d Add server.start / server.start.before / server.stop / server.stop.before 2020-10-15 12:19:14 -04:00
rijkvanzanten
cc950b5510 Move main server logic out of cli 2020-10-15 12:15:37 -04:00
rijkvanzanten
2a9987084a Use terminus 2020-10-15 11:40:12 -04:00
rijkvanzanten
7800c31c3c Fix vs code harakiri auto complete 2020-10-15 11:16:21 -04:00
rijkvanzanten
8a9c0af3a7 Move destroying logic to start cli handler, rename event 2020-10-15 11:15:06 -04:00
WoLfulus
d999956234 Revert initial changes and add discussion points 2020-10-09 16:03:47 -03:00
WoLfulus
e23628fb1e Add destroy event 2020-10-09 15:04:45 -03:00
WoLfulus
9fda1a91ed Added process.exit and database connection shutdown 2020-10-01 13:16:41 -03:00
rijkvanzanten
4d1dc088da Fix users/roles command in cli 2020-09-29 10:59:50 -04:00
WoLfulus
4539ab2210 add process signal processing 2020-09-25 11:36:25 -03:00
rijkvanzanten
78bfd0f326 Add count command 2020-09-23 13:42:01 -04:00
rijkvanzanten
85ca7b5d17 Run prettier 2020-09-22 16:11:28 -04:00
rijkvanzanten
810464f332 Fix admin access flag in init role creation 2020-09-18 13:03:34 -04:00
rijkvanzanten
9db318895f Fix admin access flag in role create cli 2020-09-18 12:51:10 -04:00
rijkvanzanten
cf6eddbecf Fix status on users created in cli 2020-09-18 12:50:41 -04:00
rijkvanzanten
bed7f67203 Add role create cli command 2020-09-18 11:49:36 -04:00
rijkvanzanten
a75b377328 Add create user command 2020-09-17 17:38:02 -04:00
rijkvanzanten
a409b9cb9a Add database install / migrate commands 2020-09-17 17:25:56 -04:00
rijkvanzanten
9ffc056bd3 Restructure seeds, add database install cli command 2020-09-17 16:19:09 -04:00
rijkvanzanten
7f1f105349 Merge branch 'main' into feature-rate-limiting 2020-09-08 12:31:57 -04:00
Ben Haynes
cb9916de77 admin description 2020-09-03 10:29:50 -04:00
Tanya Byrne
598325ef98 fixing type to confirm 2020-08-27 14:24:27 +01:00