Skip to content

Commit 0253e0f

Browse files
committed
Merge branch 'dev'
2 parents 56bfe9c + adedffe commit 0253e0f

File tree

6 files changed

+25
-9
lines changed

6 files changed

+25
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [v2.2.4](https://github.com/simvue-io/client/releases/tag/v2.2.4) - 2025-11-13
4+
5+
- Added fixes for future servers which disallow extra arguments in requests.
6+
37
## [v2.2.3](https://github.com/simvue-io/client/releases/tag/v2.2.3) - 2025-11-10
48

59
- Use `msgpack` for `GridMetrics` in a manner similar to `Metrics`.

CITATION.cff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ keywords:
4242
- alerting
4343
- simulation
4444
license: Apache-2.0
45-
commit: 4edec13b494f4b6b034d42ad90f33f98a2058b40
46-
version: 2.2.3
47-
date-released: '2025-11-10'
45+
commit: a973b3ab1b0b4a53295ffdacff296e958b5ebac3
46+
version: 2.2.4
47+
date-released: '2025-11-13'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "simvue"
3-
version = "2.2.3"
3+
version = "2.2.4"
44
description = "Simulation tracking and monitoring"
55
authors = [
66
{name = "Simvue Development Team", email = "info@simvue.io"}

simvue/api/objects/alert/base.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ def __init__(self, identifier: str | None = None, **kwargs) -> None:
3131
"""Retrieve an alert from the Simvue server by identifier"""
3232
self._label = "alert"
3333
super().__init__(identifier=identifier, **kwargs)
34-
self._local_only_args = ["frequency", "pattern", "aggregation"]
34+
self._local_only_args = [
35+
"frequency",
36+
"pattern",
37+
"aggregation",
38+
"status",
39+
]
3540

3641
def compare(self, other: "AlertBase") -> bool:
3742
"""Compare this alert to another"""

simvue/api/objects/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def __init__(
201201
# For simvue object initialisation, unlike the server there is no nested
202202
# arguments, however this means that there are extra keys during post which
203203
# need removing, this attribute handles that and should be set in subclasses.
204-
self._local_only_args: list[str] = []
204+
self._local_only_args: list[str] = ["created"]
205205

206206
self._identifier: str | None = (
207207
identifier if identifier is not None else f"offline_{uuid.uuid1()}"
@@ -636,13 +636,13 @@ def _post_batch(
636636
def _post_single(
637637
self, *, is_json: bool = True, data: list | dict | None = None, **kwargs
638638
) -> dict[str, typing.Any] | list[dict[str, typing.Any]]:
639-
if not is_json:
640-
kwargs = msgpack.packb(data or kwargs, use_bin_type=True)
641-
642639
# Remove any extra keys
643640
for key in self._local_only_args:
644641
_ = (data or kwargs).pop(key, None)
645642

643+
if not is_json:
644+
kwargs = msgpack.packb(data or kwargs, use_bin_type=True)
645+
646646
_response = sv_post(
647647
url=f"{self._base_url}",
648648
headers=self._headers | {"Content-Type": "application/msgpack"},

simvue/api/objects/storage/s3.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ def __init__(self, identifier: str | None = None, **kwargs) -> None:
2727
"""Initialise an S3Storage instance attaching a configuration"""
2828
self.config = Config(self)
2929
super().__init__(identifier, **kwargs)
30+
self._local_only_args: list[str] = [
31+
"endpoint_url",
32+
"region_name",
33+
"access_key_id",
34+
"secret_access_key",
35+
"bucket",
36+
]
3037

3138
@classmethod
3239
@pydantic.validate_call

0 commit comments

Comments
 (0)