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
Ali BARIN
41568904ab
Merge pull request #2142 from automatisch/refactor-tests
...
refactor: Use toStrictEqual instead of toEqual for tests
2024-10-28 08:49:34 +01: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
Ömer Faruk Aydın
47510e24d5
Merge pull request #2110 from automatisch/aut-1293
...
test(app-config): write model tests
2024-10-25 01:18:26 +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
Jakub P.
0e4fc7efbc
fix: use key instead of id in appConfig
2024-10-24 19:42:54 +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
dabb01e237
Merge pull request #2127 from automatisch/AUT-1231
...
feat: add error snackbar when creating or updating saml auth provider
2024-10-22 12:13:05 +02:00
Ali BARIN
c2d27d0fd4
Merge pull request #2136 from automatisch/aut-1322
...
test(connection): write remaining model tests
2024-10-21 17:41:31 +02:00
Ali BARIN
e62bd75fdf
Merge pull request #2122 from automatisch/AUT-1239
...
feat: add error snackbar for updating role mappings
2024-10-21 16:44:24 +02:00
Ali BARIN
2e917bd62b
Merge pull request #2120 from automatisch/AUT-1097
...
feat: allow both number and string values as sampleValue
2024-10-21 16:41:58 +02:00
Ali BARIN
e0492c4264
Merge pull request #2129 from automatisch/AUT-1253
...
feat: add error snackbar for errors originating from registerUser function
2024-10-21 16:41:31 +02:00
Ali BARIN
7db68e2f96
test(connection): write remaining model tests
2024-10-21 13:10:29 +00:00
Ömer Faruk Aydın
e9b05a37d1
Merge pull request #2135 from automatisch/aut-1322-2
...
test(connection): cover model lifecycle hooks
2024-10-21 12:49:49 +02:00
Ali BARIN
5613259536
test(connection): cover model lifecycle hooks
2024-10-21 12:41:57 +02:00
Ömer Faruk Aydın
3209ff16ac
Merge pull request #2130 from automatisch/aut-1322
...
test(connection): write model tests
2024-10-21 12:41:04 +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
Ömer Faruk Aydın
0d62bc6c78
Merge pull request #2134 from automatisch/permission-tests
...
Permission tests
2024-10-18 17:33:57 +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