1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00
Commit Graph

4461 Commits

Author SHA1 Message Date
Adolfo Gómez García
58fb367a60
Fixed "itemor" that was in fact "author" 2024-10-14 03:48:37 +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
aa7ce6aad2
Massive refactoring to adapt to snake_case and some improvements to code for groups manager, etc... 2024-10-13 18:02:58 +02:00
Adolfo Gómez García
ac450880c9
snake_case fixin before stabilizing... :) 2024-10-12 19:21:01 +02:00
Adolfo Gómez García
bd53926c81
snake_case fixin before stabilizing... :) 2024-10-12 17:55:14 +02:00
Adolfo Gómez García
25aa09309b
Some improvements to type checking on decorators 2024-10-12 14:52:36 +02:00
Adolfo Gómez García
203a46a804
Refactor ensure_connected decorator to support classes with connect method 2024-10-12 07:04:32 +02:00
Adolfo Gómez García
c041284588
Refactoring for mypy complains... most of them are weird :S 2024-10-12 03:17:54 +02:00
Adolfo Gómez García
dd71811045
Refactor variable names for logging in auth.py and log.py 2024-10-12 02:46:10 +02:00
Adolfo Gómez García
5b29db9fe8
resigned rdp scripts 2024-10-10 16:38:43 +02:00
Adolfo Gómez García
3f8554fd87
Refactor function names in RDP scripts 2024-10-10 16:37:08 +02:00
Adolfo Gómez García
3b5128c5fd
Fixed location for snapshot type template on fixedservice and updated cached cred deletion on openstack 2024-10-10 16:21:40 +02:00
Adolfo Gómez García
5edc920e01
added comments for cached endpoints on openstack 2024-10-10 00:14:12 +02:00
Adolfo Gómez García
0e3120f3fe
Refactor OpenStackClient cache key generation and storage
This commit refactors the cache key generation and storage in the OpenStackClient class. The cache key is now generated using a combination of the authentication method, identity endpoint, port, domain, username, project ID, and region. The cache key is used to store authentication information in the cache. Additionally, the token validity is calculated and stored in the cache. This improves the caching mechanism and ensures that the token remains valid for the appropriate duration.

This miscalculation, in conjuntion with storing cached credentials WITHOUT a catalog, leads to failure
2024-10-09 18:51:00 +02:00
Adolfo Gómez García
ed9499211d
Add tests directory to pyrightconfig.json 2024-10-09 18:49:49 +02:00
Adolfo Gómez García
1fd286c73a
Refactor imports in REST4.py 2024-10-09 18:49:37 +02:00
Adolfo Gómez García
64d91a7d70
Moved outside src tests (Again... :) ) 2024-10-09 17:06:13 +02:00
Adolfo Gómez García
b38c1c591a
Refactor comment to clarify the purpose of recovering userservice limit from machines list 2024-10-09 16:42:03 +02:00
Adolfo Gómez García
a263bdc100
Refactor NotificationsManager to handle creation of local notifications table 2024-10-09 15:45:06 +02:00
Adolfo Gómez García
83a61b57cc
Removed __slots__ from Job (nonsense... :S) 2024-10-08 23:02:16 +02:00
Adolfo Gómez García
a8f8568c34
Refactor variable names for better readability and consistency
Refactor stats_collector.py for improved performance and readability
Add ITEMS_LIMIT constant to rest.py
Add AccumStat dataclass to stats.py
Update get_servicepools_counters method in system.py
Update CountersPoolAssigned class in pools_usage_day.py
Update actor_data method in linux_ad_osmanager.py
Remove AccumStat dataclass from stats.py
2024-10-08 22:28:38 +02:00
Adolfo Gómez García
66dcad2d8d
Refactor variable names for better readability and consistency 2024-10-08 21:13:27 +02:00
Adolfo Gómez García
bfa474d3f1
Refactor stats_collector.py for improved performance and readability 2024-10-08 21:08:36 +02:00
Adolfo Gómez García
a12998bef8
Upgraded actor data definition to a dataclass instead of a dict 2024-10-07 20:28:24 +02:00
Adolfo Gómez García
7d76704e7b
Fixed Send Memory over 2Gb and storage size display 2024-10-07 17:09:40 +02:00
Adolfo Gómez García
cce564371c
Fix security of token_aliases 2024-10-04 18:38:58 +02:00
Adolfo Gómez García
c21652fe83
Fixing up unmanaged hosts mesh 2024-10-03 21:54:35 +02:00
Adolfo Gómez García
9e0266d26b
Refactor suggested check interval for fixed user service 2024-10-03 17:57:49 +02:00
Adolfo Gómez García
fa24a5e4f4
Refactor variable names in user_service_status function and ProxmoxClient 2024-10-03 17:49:25 +02:00
Adolfo Gómez García
1a7a4865af
Refactor variable names in user_service_status function 2024-10-03 17:46:18 +02:00
Adolfo Gómez García
b473160400
Refactor ProxmoxClient to improve IP address retrieval logic 2024-10-03 17:34:30 +02:00
Adolfo Gómez García
1c388f62c1
The purpose of these changes was primarily to enhance code readability and maintenance, and secondly to improve performance through caching.
In `userservice.py`, a change was made on how `can_grow_service_pool` method's result is evaluated, from explicitly comparing it with `False` to a pythonic approach of using `not`. This makes the code cleaner and easier to read.

In `service.py` file, a variable name was changed from `services_limit` to `userservices_limit_field`. It appears much more logical namewise as the variable deals with limiting the number of user services.

In the `fixed/service.py` file, the code was refactored for readability and DRY (Don't Repeat Yourself) principle, avoiding code repetition by extracting a recurring pattern into a separate method called `_get_machines_field`.

In `authenticator.py`, a caching mechanism was introduced. If an Authenticator object is already created and no update in values is needed, the existing Authenticator object is returned. This prevents unnecessary creation of new Authenticator objects, thereby improving performance.

In the `managed_object_model.py` file, the instruction to clear the cache was removed. This coincides with the caching strategy introduced in `authenticator.py`.

Lastly, in `OpenGnsys/service.py`, `services_limit` was renamed to `userservices_limit_field`, consistent with the changes in `service.py`, improving code consistency.
2024-10-02 21:19:16 +02:00
Adolfo Gómez García
4a68ebfb6d
Fixed Proxmox fixed service 2024-10-02 18:01:58 +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
1c80fb6ac9
Refactor network_from_str function to include a check mode parameter 2024-10-02 03:10:31 +02:00
Adolfo Gómez García
e05678dbcd
Refactor variable name in test_client.py 2024-10-02 01:45:28 +02:00
Adolfo Gómez García
ccefa7867c
Addind support for older proxmox versions (6.x), where some returns from API calls where different 2024-10-02 01:37:12 +02:00
Adolfo Gómez García
e2ec608ead
Fixed invalid node and redundant info on Proxmox. Also added empty result if an vm does not supports spice 2024-10-02 00:48:32 +02:00
Adolfo Gómez García
33d3b5d14a
Fixed node on ExecResult on clone 2024-10-02 00:26:08 +02:00
Adolfo Gómez García
ad2b746f03
Removed caching from contains due to the use of a list (non hashable) as parameter 2024-10-02 00:15:09 +02:00
Adolfo Gómez García
81c5429f40
Refactor network_from_str function to handle IPv6 addresses
Added sample set proxies list from cloudflare list
2024-09-30 20:53:39 +02:00
Adolfo Gómez García
093c7b3094
Refactor variable names in rdptunnel.py for better readability 2024-09-30 04:13:23 +02:00
Adolfo Gómez García
0306ed567f
Refactor web views to be more congruent 2024-09-29 14:04:41 +02:00
Adolfo Gómez García
d4696b1c12
Refactor error handling in web views 2024-09-29 13:42:17 +02:00
Adolfo Gómez García
3461bd4963
Updated translations 2024-09-28 18:05:41 +02:00
Adolfo Gómez García
9b5655fa41
Updated frontend 2024-09-28 17:28:15 +02:00
Adolfo Gómez García
f7df9b2ae8
Refactor weblogin callback to use secure request session and constant timeout
Extracted client plugins downloadables to its own file for readibility and code maintenance
2024-09-28 16:45:14 +02:00
Adolfo Gómez García
f53c9bb793
added secure request session for weblogin callback, and used constant for timeout 2024-09-27 16:27:50 +02:00
Adolfo Gómez García
69087f46fe
Refactor callback group name handling in perform_login_callback 2024-09-26 22:34:58 +02:00
Adolfo Gómez García
c60332a4aa
Adding support for companion auth apps 2024-09-26 21:02:05 +02:00