Skip to content

Filter transaction notification on controller-transaction - #54

Merged
krihal merged 1 commit into
mainfrom
transaction-notify-filter
Oct 19, 2026
Merged

krihal merged 1 commit into
mainfrom
transaction-notify-filter

Conversation

@olofhagsand

Copy link
Copy Markdown
Member

The controller in post 1.9 sends transaction progress information on the
transaction stream. This PR filters progress information so that only original transaction end
info is received.

The controller in post 1.9 send transaction progress information on the
transaction stream.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Valid XPath expressions containing XML-special characters produce malformed subscription XML.

1 open issue
What changed in this PR

Filters controller transaction subscriptions so callers receive completion notifications rather than progress updates.

Changes:

  • Adds an optional XPath select argument to subscription creation.
  • Applies the filter in both client interfaces.
  • Adds a serialization test and changelog entry.
File Description
tests/​test_netconf.py Tests subscription XPath serialization.
clixon/​netconf.py Adds the optional select argument.
clixon/​clixon.py Filters transaction notifications in the class interface.
clixon/​client.py Filters transaction notifications in the procedural interface.
CHANGELOG.md Documents filtering and controller requirements.

Review effort: Balanced

Comment thread clixon/netconf.py
root.rpc.create_subscription.create("stream")
root.rpc.create_subscription.stream.cdata = stream
root.rpc.create_subscription.create("filter", {"type": "xpath", "select": ""})
root.rpc.create_subscription.create("filter", {"type": "xpath", "select": select})
@krihal
krihal merged commit 9c59c2f into main Oct 19, 2026
4 checks passed
@krihal
krihal deleted the transaction-notify-filter branch October 20, 2026 07:02
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.

3 participants