Commit Graph

961 Commits

Author SHA1 Message Date
60a7dda60a restructures client to have separate thread for its asyncio loop 2024-04-03 10:28:06 +02:00
381d98b078 updates is_property_attribute to accept the full_access_path instead of the attr_name only 2024-03-29 08:47:24 +01:00
658fb13d9d improves Client._notify_changed by not emitting sio events when properties change 2024-03-29 08:44:48 +01:00
a582dc23ac makes proxyclass reconnection wait time a float to not get warning 2024-03-29 08:44:20 +01:00
19b24f3060 avoids notifying server when updates are pushed from the server itself 2024-03-28 18:41:01 +01:00
d100bb5fea udpates Client and ProxyClassFactory
- Client:
  - inherits from DataService now
  - acts as an observer of the proxy class and sends updates to the sio server
- ProxyClassFactory
  - ProxyConnection is now a DeviceConnection -> users will see if the client is connected
2024-03-28 18:41:01 +01:00
36a70badce fixes observable _construct_extended_attr_path
Passing an empty string resulted in an extended path ending with a "."
2024-03-28 18:13:44 +01:00
9916d6df60 adds support for dynamically adding attributes to DataService instances 2024-03-28 14:30:09 +01:00
b4c84da57e npm run build 2024-03-28 11:31:12 +01:00
ecf0e99318 fixes units test 2024-03-28 11:30:18 +01:00
10ac007a0c ignores complexity errors 2024-03-28 11:30:07 +01:00
900017791a fixes loading of removed attributes. Prints debug log instead of raising exception 2024-03-28 11:27:16 +01:00
edb06b1612 restructures StateManager
- Updates logic of loading the state
- set_service_attribut_value_by_path expects serialized object instead of the value now
- uses loads instead of __convert_value_if_needed now
2024-03-28 10:21:28 +01:00
bb5205b2e4 get_object_attr_from_path expects string instead of list now 2024-03-28 10:18:43 +01:00
c02c75aab5 prevents users to override nested ProxyClasses in sio client proxy 2024-03-28 10:09:08 +01:00
cc3fdfbb27 makes sio client private on ProxyClass 2024-03-28 09:48:25 +01:00
7d399df158 proxy class will raise exception raised on server when setting value 2024-03-28 09:29:37 +01:00
92e2c0e8ef fixes deserialization of floats 2024-03-28 08:57:59 +01:00
65f63e08ae fixes changing Quantity from frontend 2024-03-28 08:55:58 +01:00
4eddf4b980 todos 2024-03-27 17:50:51 +01:00
9d7099f116 updates socket.ts (passing access_path to backend) 2024-03-27 17:49:57 +01:00
3f096bda96 fixes loading enum from json file
Loading from json file happens by name. The sio client will send the whole
enumeration and thus we have to handle both strings and enumerations.
2024-03-27 17:30:37 +01:00
e56a6e0653 fixing tests 2024-03-27 17:13:40 +01:00
e71186dce4 updates types 2024-03-27 17:13:37 +01:00
d1007fad14 removes unused code 2024-03-27 16:52:48 +01:00
6f2c1f8951 exports dump function from pydase.utils.serialization 2024-03-27 16:37:06 +01:00
f18880abd5 moves serializer tests into separate module 2024-03-27 16:31:08 +01:00
9851ccfcdf moves serializer file into serialization module 2024-03-27 16:30:15 +01:00
f312ec1e51 moving deserializer into serialization module 2024-03-27 16:26:46 +01:00
7405d2cafc adds serialization module, moves types into separate file 2024-03-27 16:26:24 +01:00
e6251975b8 adds try...except blocks around update_value and get_value sio events 2024-03-27 16:18:59 +01:00
780a2466d3 fixes updating a value through sio client 2024-03-27 16:18:04 +01:00
8979a1885e fixes method execution from frontend, adds simple serialization methods 2024-03-27 16:00:54 +01:00
fbc4af28ae removes debugging statements 2024-03-27 16:00:24 +01:00
454b0fb7d1 adds start and stop methods for tasks in socketio client 2024-03-27 15:32:51 +01:00
9d3264de1f fixes cache update of task status change 2024-03-27 15:32:51 +01:00
2d6c681690 improves SerializedObject type hint 2024-03-27 15:32:51 +01:00
612e62d06b updates ProxyClassFactory (go through handled types before components) 2024-03-27 15:20:50 +01:00
31f280c9cb frontend components pass actual readOnly and docString values to backend 2024-03-27 15:20:50 +01:00
e4f5374783 fixes docstring when setting nested value by path 2024-03-27 15:20:50 +01:00
6397307690 restructuring EnumComponent (now for both Enum and ColouredEnum) 2024-03-27 15:20:50 +01:00
2ce4c9ce9b using new runMethod function 2024-03-27 15:20:50 +01:00
15cf0bd414 adapting components to new callback function 2024-03-27 15:20:23 +01:00
ff3a509132 passing fullAccessPath instead of parentPath and name 2024-03-27 15:20:23 +01:00
1a01222cb3 updates changeCallback and SerializedObject in GenericComponent.tsx 2024-03-27 12:08:10 +01:00
2eb996b382 updates frontend socket to use new sio events 2024-03-27 12:08:10 +01:00
8addcd26aa fixes state manager enum handlign 2024-03-27 12:08:10 +01:00
4db15f2fe8 updates sio events in web server 2024-03-27 12:08:10 +01:00
27f22d472d updates Deserializer (handle components at last) 2024-03-27 12:06:14 +01:00
c1aa678384 clients will now receive updates from socketio server and notify the observer 2024-03-27 12:06:14 +01:00