Ali BARIN
96544df7d5
refactor(role): remove transactions and tidy up logic in model ( #2141 )
...
* refactor(role): remove returning this in model methods
* refactor(role): assert altering admin in model before update and delete
* refactor(role): rename overridePermissions with updatePermissions in model
* refactor(role): remove transactions in model
* refactor(role): remove transactions in model
* refactor(role): return with permissions upon update in model
* fix(role): assert admin check on old instance in model
* refactor(role): fetch and use current role in preventAlteringAdmin
2024-10-28 14:57:33 +01:00
Ali BARIN
036db63a33
test(role): write model tests
2024-10-28 08:22:07 +00:00
Faruk AYDIN
2e5b44c424
refactor: Use toStrictEqual instead of toEqual for tests
2024-10-25 12:33:39 +02:00
Faruk AYDIN
7a437660d1
refactor: Remove id column from app config serializer
2024-10-25 11:47:41 +02:00
Faruk AYDIN
91c9ef3068
fix: Pass app config parameters to be used for hooks
2024-10-25 01:07:44 +02:00
Faruk AYDIN
240854e4ac
fix: Use uuid for down migration of app config id removal
2024-10-25 00:59:00 +02:00
Faruk AYDIN
b47e859225
test: Add additional cases for triggerAppConfigUpdate method
2024-10-24 17:10:47 +02:00
Faruk AYDIN
62a1072682
fix: Use triggerAppConfigUpdate spy instead of
2024-10-24 17:07:23 +02:00
Faruk AYDIN
c6f2a97591
test: Add missing associations test for app auth client
2024-10-24 17:04:45 +02:00
Faruk AYDIN
d66be231b3
refactor: Remove redundant updateConnectionAllowedProperty
2024-10-24 17:00:47 +02:00
Faruk AYDIN
f73ffc8711
test: Add idColumn test to app config model
2024-10-24 16:59:17 +02:00
Faruk AYDIN
e4c17c1bc7
refactor: Use belongsTo relation for app config association
2024-10-24 16:59:17 +02:00
Faruk AYDIN
997e729535
refactor: Use hooks with refetched record for app config
2024-10-24 16:59:17 +02:00
Faruk AYDIN
e0e313b8d1
refactor: Remove id from app config factory
2024-10-24 16:59:17 +02:00
Faruk AYDIN
f0bd763e72
feat: Remove id field from app config model
2024-10-24 16:59:17 +02:00
Faruk AYDIN
6a7a90536b
feat: Make key field primary key for app config model
2024-10-24 16:59:17 +02:00
Ali BARIN
ac8ddedfb5
test(connection): use new properties from app-config
2024-10-24 16:59:17 +02:00
Ali BARIN
6fcd126ff8
test(app-auth-client): cover lifecycle hooks and triggerAppConfigUpdate method
2024-10-24 16:59:17 +02:00
Faruk AYDIN
55d0966d48
fix: Pass app key while triggering app config update
2024-10-24 16:59:17 +02:00
Faruk AYDIN
2583e08f7a
fix: Don't compute connectionAllowed column twice
2024-10-24 16:59:17 +02:00
Faruk AYDIN
de72e62470
fix: Pass app config key to fix associations
2024-10-24 16:59:17 +02:00
Faruk AYDIN
91993dbb07
refactor: AppConfig model and corresponding tests
2024-10-24 16:59:17 +02:00
Faruk AYDIN
d87ee4daa3
refactor: Move and adjust getApp tests for app config model
2024-10-24 16:59:17 +02:00
Ali BARIN
6791e002ff
test(app-config): remove redundant virtual attributes test case
2024-10-24 16:59:17 +02:00
Ali BARIN
4ca84aa515
refactor(app-auth-client): remove redundant column selection
2024-10-24 16:59:17 +02:00
Ali BARIN
8189cbc171
fix(app-config): use correct case in connection_allowed
2024-10-24 16:59:17 +02:00
Ali BARIN
73edb45ff7
refactor(app-config): rename allowCustomConnection as customConnectionAllowed
2024-10-24 16:59:17 +02:00
Ali BARIN
0bbe362660
refactor(app-config): rename allow_custom_connection as custom_connection_allowed
2024-10-24 16:59:17 +02:00
Ali BARIN
a76bee51fc
refactor(app-config): remove canCustomConnect virtual attribute
2024-10-24 16:59:17 +02:00
Ali BARIN
6e42b52414
refactor(app-config): rename canConnect as connectionAllowed
2024-10-24 16:59:17 +02:00
Ali BARIN
aed61209fa
feat(app-config): update canConnect upon dependent changes
2024-10-24 16:59:17 +02:00
Ali BARIN
f5d796ea77
feat(app-config): persist relational virtual attrs
2024-10-24 16:59:17 +02:00
Ali BARIN
ecb04b4ba9
test(app-config): write model tests
2024-10-24 16:59:17 +02:00
Ali BARIN
7db68e2f96
test(connection): write remaining model tests
2024-10-21 13:10:29 +00:00
Ali BARIN
5613259536
test(connection): cover model lifecycle hooks
2024-10-21 12:41:57 +02:00
Faruk AYDIN
a49c8602d1
refactor: Remove redundant test cases for connection model
2024-10-21 12:32:46 +02:00
Ali BARIN
7caa055e00
test(connection): write model tests
2024-10-21 10:27:43 +02:00
Faruk AYDIN
bc0861fd9e
test: Implement tests for permission model
2024-10-18 15:34:06 +02:00
Faruk AYDIN
f280052d93
refactor: Permission model sanitize method
2024-10-18 15:33:47 +02:00
Ali BARIN
0234b4ad81
Merge pull request #2125 from automatisch/aut-1322
...
test(connection): write model tests
2024-10-16 13:23:17 +02:00
Faruk AYDIN
00317fed24
refactor: Use endsWith for app folder path test
2024-10-16 12:56:17 +02:00
Ali BARIN
42f6311ca8
test(app): write model tests
2024-10-16 12:56:17 +02:00
Ali BARIN
0f77a1ec03
test(connection): write model tests
2024-10-16 09:38:48 +00:00
Ali BARIN
c868070337
test(config): write model tests
2024-10-14 11:19:29 +00:00
Faruk AYDIN
b51bae14ec
test: Implement UsageData model tests
2024-10-10 12:08:41 +02:00
Faruk AYDIN
163d6a7a28
refactor: Do not use persisted instance for execution step is failed
2024-10-09 15:43:33 +02:00
Faruk AYDIN
4ce9976dbc
refactor: Use isSucceededNonTestRun naming for execution steps
2024-10-09 15:43:33 +02:00
Faruk AYDIN
f6490990de
tests: Implement tests for ExecutionStep model
2024-10-09 15:43:33 +02:00
Jakub P.
3ff53744b5
fix: use env var for authDocUrl
2024-10-09 15:02:59 +02:00
Ömer Faruk Aydın
3fa87701ed
Merge pull request #2114 from automatisch/AUT-929
...
feat: fix primary app color value and how it is displayed in the app
2024-10-09 11:02:03 +02:00