Skip to content

Bug fix - when attributes or filters was None, the string null was sent to the server - #1007

Merged
james-panayis merged 4 commits into
devfrom
1005-handling-of-none-for-attributes-and-filters-is-incorrect
Sep 8, 2026
Merged

Bug fix - when attributes or filters was None, the string null was sent to the server#1007
james-panayis merged 4 commits into
devfrom
1005-handling-of-none-for-attributes-and-filters-is-incorrect

Conversation

@alahiff

@alahiff alahiff commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

See #1005 for more info

@alahiff alahiff linked an issue Sep 4, 2026 that may be closed by this pull request
@alahiff

alahiff commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator Author

Also fixing invalid test data used for storage testing. The server now has stricter requirements on the bucket name and region name.

@alahiff
alahiff requested review from kzscisoft and wk9874 September 4, 2026 12:01
Comment thread simvue/client.py Outdated
attributes=json.dumps(attributes),
filters=json.dumps(filters),
attributes=json.dumps(attributes) if attributes is not None else None,
filters=json.dumps(filters) if filters is not None else None,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't line 275 already guarantee that filters is never None here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hadn't noticed that :-( Attributes was broken (CI tests all fail) and I assumed filters would have the same problem. I've now removed the change involving filters.

@james-panayis
james-panayis merged commit 8ce4ead into dev Sep 8, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handling of None for attributes and filters is incorrect

3 participants