Releases: qtoggle/qtoggleserver
Releases · qtoggle/qtoggleserver
0.27.3-beta.1
What's new:
- core: Attribute definitions can now contain "private" fields that will not be exposed via API.
- core/ports: Added support for generic
Port.attr_get_value
andPort.attr_set_value
methods. - core/ports: Reworked attribute definitions caching.
0.27.2
What's new (since 0.27.1):
- frontend: Fixed missing redirect when adding qToggleServer-based slave devices.
- frontend: The
iat
JWT claim is no longer included with request if a client/server time skew larger than 5 minutes is detected. - lib/polled: Fixed potential loop error during startup.
- peripherals: Added
Peripheral.get_port
method. - startup: The server will now exit if an error occurs while initializing the ports of a peripheral.
- utils/asyncio: The
fire_and_forget
utility function was added for asyncio tasks that can't be awaited.
0.27.2b1
What's new:
- frontend: The
iat
JWT claim is no longer included with request if a client/server time skew larger than 5 minutes is detected. - lib/polled: Fixed potential loop error during startup.
- peripherals: Added
Peripheral.get_port
method. - startup: The server will now exit if an error occurs while initializing the ports of a peripheral.
- utils/asyncio: The
fire_and_forget
utility function was added for asyncio tasks that can't be awaited.
0.27.1
What's new:
- core/api: Fixed error when retrieving ports history with Postgres persist backend.
0.27.0
What's new:
- core: Fixed error where the main coroutine wasn't awaited if the server failed to start.
- core/ports: Expressions can now be up to 10k characters long.
- lib/templatenotifications: Generalized support for templates for easier subclassing of
TemplateNotificationsHandler
. - persist: Added dedicated support for sampling functions.
- persist/postgres: Postgres DB driver now stores samples in a dedicated samples table without JSONB.
- utils/json: Generalizes JSON extra types support (mainly adding ISO format for date & datetime objects).
- Pre-releases version format has been changed from semver to PEP440.
note: Use the following SQL commands to migrate from old Postgres samples format to the new one:
ALTER TABLE value_history RENAME TO value_history_old;
SELECT id::BIGINT, (content->'pid')::TEXT AS oid, (content->'ts')::BIGINT AS ts, CASE WHEN content->'val' = 'false' THEN 0 WHEN content->'val' = 'true' THEN 1 ELSE (content->'val')::double precision END AS val INTO value_history FROM value_history_old;
ALTER TABLE value_history ALTER COLUMN id SET DEFAULT NEXTVAL('value_history_id_seq');
ALTER TABLE value_history ADD PRIMARY KEY (id);
DROP TABLE value_history_old;
0.27.0b3
What's new:
- persist: Boolean port samples are now internally converted into float values.
- lib/templatenotifications: Generalized support for templates for easier subclassing of
TemplateNotificationsHandler
. - utils/json: Generalizes JSON extra types support (mainly adding ISO format for date & datetime objects).
0.27.0b2
0.27.0-beta.1
What's new:
- core: Fixed error where the main coroutine wasn't awaited if the server failed to start.
- core/ports: Expressions can now be up to 10k characters long.
- persist: Added dedicated support for sampling functions.
- persist/postgres: Postgres DB driver now stores samples in a dedicated samples table without JSONB.
note: Use the following SQL commands to migrate from old Postgres samples format to the new one:
ALTER TABLE value_history RENAME TO value_history_old;
SELECT id::BIGINT, (content->'pid')::TEXT AS oid, (content->'ts')::BIGINT AS ts, CASE WHEN content->'val' = 'false' THEN 0 WHEN content->'val' = 'true' THEN 1 ELSE (content->'val')::double precision END AS val INTO value_history FROM value_history_old;
ALTER TABLE value_history ALTER COLUMN id SET DEFAULT NEXTVAL('value_history_id_seq');
ALTER TABLE value_history ADD PRIMARY KEY (id);
DROP TABLE value_history_old;
0.26.5
What's new:
- lib/polled: Added
DEFAULT_RETRY_POLL_INTERVAL
andDEFAULT_RETRY_COUNT
class arguments support for polled peripherals.
0.26.4
What's new:
- Fixed error when setting Wi-Fi or network device attributes.