Adolfo Gómez García
ce9110b7ca
Refactor GUI field handling to replace add_default_fields with default_fields for consistency
2025-07-26 02:07:58 +02:00
Adolfo Gómez García
be6cfb0ec5
Refactor REST model handlers to enhance type safety and consistency
...
- Updated `AuthenticatorItem`, `NetworkItem`, `NotifierItem`, `AccessCalendarItem`, `ActionCalendarItem`, `OsManagerItem`, `ProviderItem`, `ReportItem`, `TokenItem`, `ServerItem`, `GroupItem`, `ServiceItem`, `ServicePoolItem`, and `TransportItem` to inherit from `ManagedObjectDictType` for improved type safety.
- Refactored `BaseModelHandler` and `ModelHandler` to use generic types for better type inference.
- Modified `DetailHandler` to extend `BaseModelHandler` with generics.
- Adjusted return types in various methods to utilize the new item types, ensuring consistent type usage across the REST API.
- Introduced `ManagedObjectDictType` to represent managed objects in the REST API, including fields for type and instance.
2025-07-26 01:21:06 +02:00
Adolfo Gómez García
6922d28537
Refactor REST methods to use GetItemsResult type and improve type safety
...
- Updated return types of get_items methods in various REST handlers to use types.rest.GetItemsResult instead of types.rest.ManyItemsDictType for better clarity and type safety.
- Introduced UserServiceItem, GroupItem, TransportItem, PublicationItem, and ChangelogItem TypedDicts to standardize item representations across different handlers.
- Refactored AssignedService to AssignedUserService and updated related methods to reflect the new naming convention.
- Enhanced as_typed_dict utility function to convert models to TypedDicts, improving type safety in REST API responses.
- Cleaned up imports and ensured consistent use of typing annotations throughout the codebase.
2025-07-25 21:33:28 +02:00
Adolfo Gómez García
3072eabc74
Add 'data_type' field to service response for compatibility with old code
2025-04-25 14:29:43 +02:00
Adolfo Gómez García
f3a8335998
Refactor save_item methods to return item IDs and update get_real_name logic in user registration
2025-02-14 17:13:07 +01:00
Adolfo Gómez García
a881509502
Convert max_services_count_type to string for consistent data handling in services response
2024-12-23 17:32:20 +01:00
Adolfo Gómez García
a318e8ca2b
Added functionalty so Fixed Services (at least those derived from Generic one), overrides the max_countent.... because must be always CONSERVATIVE in order to work correctly
2024-10-16 18:04:06 +02:00
Adolfo Gómez García
2f69c18ad9
Massive refactoring to adapt to snake_case and some improvements to code for groups manager, etc...
2024-10-13 18:54:56 +02:00
Adolfo Gómez García
752ae78ce7
Refactor ChoiceItem id field to accept only string values and fixed
2024-10-02 17:30:00 +02:00
Adolfo Gómez García
211cf4d5e6
Replaced "@author" by "Author"
...
Fixing pyright issues on tests
2024-05-25 17:28:44 +02:00
Adolfo Gómez García
628f43a2e7
Removed unused (since years ago) "must_assign_manually"
2024-04-28 16:33:24 +02:00
Adolfo Gómez García
05c434eb8a
Some minor fixes on generics, order of fields...
2024-04-07 05:43:48 +02:00
Adolfo Gómez García
fc230d7205
Refactorized name and get_type from module to mod_name and mod_type, much more convenient and may avoid future name clashs
2024-03-31 15:21:40 +02:00
Adolfo Gómez García
7ef34f3897
Fix various code issues
2024-02-27 00:18:13 +01:00
Adolfo Gómez García
f9e2d88529
Fixing typing also on tests
2024-02-26 14:57:10 +01:00
Adolfo Gómez García
75b27af0fe
Big code fixing, adapting to mypy/pyright strict checking mode
2024-02-21 03:35:36 +01:00
Adolfo Gómez García
e921c76530
small proxmox fix and rest
2024-02-02 00:56:40 +01:00
Adolfo Gómez García
1d569d009a
Moving common "specializations" algos for services to a common base
2024-02-02 00:22:17 +01:00
Adolfo Gómez García
434a20254e
Working on proxmox fixed pool
2024-02-01 02:36:59 +01:00
Adolfo Gómez García
8ec94e0cdf
Adding fixed pool of machines to ProxMox
2024-01-31 00:43:27 +01:00
Adolfo Gómez García
33cdf27375
Improving environment class
2024-01-29 02:52:27 +01:00
Adolfo Gómez García
485520f402
Remodeled cache updater, minor fixes and more refactoring
2024-01-26 01:30:40 +01:00
Adolfo Gómez García
817100cf5b
implementing new "Remarshall" mechanicks to allow faster migrations...
2024-01-24 19:22:30 +01:00
Adolfo Gómez García
92042dd55a
Fixed Internal DB Auth (Different user for each host) and refactoring some dictionaries to classes
2024-01-24 18:17:41 +01:00
Adolfo Gómez García
27d91154b6
A lot of refactorization :S
2024-01-11 05:00:49 +01:00
Adolfo Gómez García
ad1b8cb51d
More refactorization
2024-01-10 19:17:15 +01:00
Adolfo Gómez García
4f2b331bb8
advancing on refactoring
2024-01-09 03:15:43 +01:00
Adolfo Gómez García
6ae18f4a58
advancing on refactoring
2024-01-09 02:45:44 +01:00
Adolfo Gómez García
b9b3889f35
Added support for skip mfa auth based on groups
2024-01-08 16:02:44 +01:00
Adolfo Gómez García
bc61814ec4
advancing on refactoring and cache improvements
2024-01-08 00:44:44 +01:00
Adolfo Gómez García
4cf261678f
advancing on refactoring
2024-01-07 05:10:32 +01:00
Adolfo Gómez García
927e2ee5a9
Moving Transport types to uds.core.types
2024-01-07 04:31:30 +01:00
Adolfo Gómez García
7db6cba256
Minor fixes on admin and more refactoring
2024-01-07 01:40:48 +01:00
Adolfo Gómez García
bac161b46c
updated tests and more refactoring
2024-01-05 01:02:11 +01:00
Adolfo Gómez García
494e24691b
refactoring to camel_case, some minor fixes
2024-01-04 00:48:31 +01:00
Adolfo Gómez García
6814796ba5
Refactoring and fixes found in the process
2024-01-03 04:04:02 +01:00
Adolfo Gómez García
150d8c4197
Some improvements to basic types and minor cosmetic fixes
2024-01-02 03:28:12 +01:00
Adolfo Gómez García
a6e65b62b0
More updates to type annotations
2023-12-04 01:07:56 +01:00
Adolfo Gómez García
74ff4c17cd
Fix type() method calls to getType() in code to avoid clashes with "type" builtin
2023-12-04 00:41:41 +01:00
Adolfo Gómez García
a48f5e6241
Replacing deprecating typing classes in favour of builtings or collections.abc ones.
...
Most changes are simple annotations.
Will continue changes as i found them :)
2023-12-04 00:04:56 +01:00
Adolfo Gómez García
29ff0081a4
Refactorin exceptions, types, constants, ...
2023-11-03 18:47:20 +01:00
Adolfo Gómez García
d4ea0ad8c6
Fixing up LSP on REST classes
2023-11-03 04:18:53 +01:00
Adolfo Gómez García
f24b801f04
more UserInterface improvements and fixes :)
2023-08-31 20:04:36 +02:00
Adolfo Gómez García
412f1e36b4
Removed dictionary from UserInterface fields _data
2023-08-31 04:11:33 +02:00
Adolfo Gómez García
f67d4d9a41
Moving some types to types.ui (Basic types)
2023-08-30 03:39:40 +02:00
Adolfo Gómez García
7956764b01
Fixing up names to be more coherent with their use
...
Related to user_interface
2023-08-29 17:58:25 +02:00
Adolfo Gómez García
08d693e019
Renamed maxDeployed to maxUserServices (to be coherent)
2023-08-25 00:50:43 +02:00
Adolfo Gómez García
4c21919846
Refactorizing and fixed relation between servers and servers groups to manytomany
2023-08-03 02:26:48 +02:00
Adolfo Gómez García
8e5610bc50
OS Managers, in fact, provides a single type of "service (That is, VDI or VAPP, ...) but not mor than one
2023-08-01 16:01:00 +02:00
Adolfo Gómez García
28b03427f2
Adding service type (VDI or VAPP) to notification on preconnect
2023-08-01 15:52:51 +02:00