Commit Graph

121 Commits

Author SHA1 Message Date
Oscar Krause
41cb7ae14f implemented delete origin endpoint for frontend 2023-01-04 09:52:51 +01:00
Oscar Krause
5035dd4947 fixed refreshing data after deleting some origin or lease 2023-01-04 09:52:15 +01:00
Oscar Krause
08440d242f implemented delete origin endpoint for frontend 2023-01-04 09:51:43 +01:00
Oscar Krause
f35a4c6145 fixed timezone handling 2023-01-03 21:49:24 +01:00
Oscar Krause
f199800040 sort leases by expires 2023-01-03 21:29:32 +01:00
Oscar Krause
ca96ae08a7 sort origins by hostname 2023-01-03 21:29:24 +01:00
Oscar Krause
49279b6b66 fixed origin table 2023-01-03 21:23:57 +01:00
Oscar Krause
4b4979cf86 fixed imports and tests 2023-01-03 20:55:23 +01:00
Oscar Krause
139fdd3472 Merge branch 'dev' into ui 2023-01-03 20:45:51 +01:00
Oscar Krause
7b2428ea38 removed some debugging 2023-01-03 18:05:46 +01:00
Oscar Krause
ac811d5df7 added 'LEASE_EXPIRE_HOURS' variable for better debugging 2023-01-03 18:05:46 +01:00
Oscar Krause
d6cc6dcbee fixes 2023-01-03 17:38:32 +01:00
Oscar Krause
71c4972e6a added config values to dashboard 2023-01-03 15:03:09 +01:00
Oscar Krause
df43a598cd Merge branch 'dev' into ui 2023-01-03 14:55:26 +01:00
Oscar Krause
18e9ab2ebf fixes 2023-01-03 14:52:31 +01:00
Oscar Krause
ef1730f4fe orm.py - added some docs 2023-01-03 14:20:13 +01:00
Oscar Krause
5a5ad0e654 removed 'scope_ref' from code checks because we only support one 'ALLOTMENT_REF', so we need no checks 2023-01-03 14:09:19 +01:00
Oscar Krause
0e3e7cbd3a main.py - corrected leasing behaviour (migrated from 'LEASE_REF' to 'ALLOTMENT_REF') 2023-01-03 13:05:05 +01:00
Oscar Krause
bd5625af42 main.py - removed example responses 2023-01-03 13:02:37 +01:00
Oscar Krause
8f9d95056f code styling - migrated direct dict access to '.get()' 2023-01-03 09:20:18 +01:00
Oscar Krause
2b8c468270 main.py - fixed missing 'LEASE_RENEWAL_PERIOD' on '/auth/v1/origin' 2023-01-03 07:25:09 +01:00
Oscar Krause
50e0dc8d1f implemented '/leasing/v1/lessor/shutdown' for windows guests 2023-01-02 19:42:23 +01:00
Oscar Krause
8b934dfeef fixed '/-/config' endpoint serialisation 2023-01-02 19:23:23 +01:00
Oscar Krause
4fb6243330 removed deprecated endpoints
- '/client-token' moved to '/-/client-token'
- '/status' moved to '/-/health' and '/-/config'

see README.md for more information
2023-01-02 19:18:32 +01:00
Oscar Krause
2e950ca6f4 implemented '/-/config' endpoint to list runtime environment variables 2023-01-02 19:14:25 +01:00
Oscar Krause
34662e6612 implemented 'LEASE_RENEWAL_PERIOD' variable 2023-01-02 18:57:41 +01:00
Oscar Krause
a3e089a3d5 added some references 2023-01-02 18:10:11 +01:00
Oscar Krause
ab996bb030 code styling 2023-01-02 18:04:14 +01:00
Oscar Krause
fc8ef174cd implemented basic ui 2023-01-02 18:01:44 +01:00
Oscar Krause
98d7492534 main.py - fixed cors parsing 2022-12-30 07:42:57 +01:00
Oscar Krause
3d83e533da fixed client-token filename (missing .tok extension) 2022-12-30 03:50:48 +01:00
Oscar Krause
1f56d31351 code styling 2022-12-29 20:42:40 +01:00
Oscar Krause
400c983025 added redirect for "/-/" route 2022-12-29 20:41:55 +01:00
Oscar Krause
fa3a06a360 code styling 2022-12-29 20:40:42 +01:00
Oscar Krause
c0ab3a589f migrated '/client-token' to '/-/client-token' 2022-12-29 20:33:50 +01:00
Oscar Krause
a8504f3017 hardcoded default CORS to https, since drivers only support secure connections 2022-12-29 19:14:49 +01:00
Oscar Krause
17978c2e2e main.py - added endpoint to release single lease 2022-12-29 19:03:09 +01:00
Oscar Krause
569ca8b3ea orm.py - fixed renewing timestamps from params 2022-12-29 19:00:14 +01:00
Oscar Krause
e0843ca1d4 code styling 2022-12-29 18:59:26 +01:00
Oscar Krause
3fad49b18a main.py - added api descriptions 2022-12-29 18:48:30 +01:00
Oscar Krause
13ec45e762 orm.py - added init call after dropping table by migration 2022-12-29 12:34:25 +01:00
Oscar Krause
8b9c7d688b added some docs to custom endpoints 2022-12-29 10:35:15 +01:00
Oscar Krause
a09fc5f2ad added some new endpoints and links in readme 2022-12-29 10:31:25 +01:00
Oscar Krause
ed1b55f5f1 created a simple management ui 2022-12-29 10:12:31 +01:00
Oscar Krause
2b7fed3381 created endpoints to delete origins and to delete a lease 2022-12-29 09:57:37 +01:00
Oscar Krause
922dc9f5a7 refactored database structure and created migration script 2022-12-29 09:40:50 +01:00
Oscar Krause
1a50e28202 main.py - removed unused import 2022-12-29 09:15:51 +01:00
Oscar Krause
d86948aee2 added some comments 2022-12-29 09:01:36 +01:00
Oscar Krause
6b2e6bf392 added optional query parameter to '/-/origins' and '/-/leases' for linked leases/origin 2022-12-29 09:00:52 +01:00
Oscar Krause
a6ac58d12c fixes 2022-12-29 07:41:25 +01:00