Commit Graph

98 Commits

Author SHA1 Message Date
j3n57h0m45
79c91ed50d enable custom name for refresh token (#6890) 2021-07-20 15:29:11 +02:00
Rijk van Zanten
ea19390f11 Add encrypt option to MS SQL questions (#6746) 2021-07-14 00:02:00 +02:00
Tommaso Bartolucci
0cca732f2f Add skip admin init flag (#6576)
* adds skipAdminInit flag to bootstrap

* checks for skipAdminInit flag

* update docs for skipAdminInit
2021-06-30 09:31:59 -04:00
renovate[bot]
8a3796b8bb update dependency commander to v8 (#6498)
* update dependency commander to v8

* Update import to match new version

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-06-28 14:05:55 -04:00
rijkvanzanten
95f4b1c521 Fix console log usages in linter 2021-06-14 15:10:50 -04:00
Rijk van Zanten
77e00b7db4 Don't initialize database on file require (#6003) 2021-06-02 11:41:42 -04:00
rijkvanzanten
891fe01093 Fix cli role name attr 2021-05-12 15:46:49 -04:00
dependabot[bot]
24b5e5ff45 Bump commander from 6.2.1 to 7.2.0 (#5569)
* Bump commander from 6.2.1 to 7.2.0

Bumps [commander](https://github.com/tj/commander.js) from 6.2.1 to 7.2.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v6.2.1...v7.2.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Fix breaking changes in commander

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-10 11:33:19 -04:00
rijkvanzanten
801e868554 Fix remaining eslint errors
h/t @paescuj
2021-04-29 15:55:12 -04:00
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
Ben Haynes
d65469c974 Update CLI database support labels 2021-03-17 12:08:38 -04:00
rijkvanzanten
37b2ec8a27 Cast port to number on cli init
Fixes #4536
2021-03-15 11:20:50 -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
a12b148b17 Default generated .env permissions to -rw-r----- 2021-03-08 13:32:13 -05:00
rijkvanzanten
ada85b20ce Fix build on rc 45
Fixes #4418
2021-03-08 11:18:14 -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
rijkvanzanten
c2a5622cef Remove unused environment variable 2021-02-26 10:49:19 -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
Igor Savin
7cddb458cb Run prettier across app and api 2020-12-08 02:22:00 +02: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
c0683dd7f2 handle CLI promise rejections and exit with non-zero exit code 2020-11-14 09:27:58 -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
03b00548b8 Add beta flag to init for db drivers 2020-10-16 19:10:50 -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