Skip to content

Forward gateway write results through duration filters - #3662

Draft
wborn wants to merge 1 commit into
mainfrom
issue/2832
Draft

wborn wants to merge 1 commit into
mainfrom
issue/2832

Conversation

@wborn

@wborn wborn commented Dec 3, 2026

Copy link
Copy Markdown
Member

Description

  • Track central writes to agent-linked attributes for five seconds and allow one matching agent update per write through the duration filter.
  • Keep optimistic updateOnWrite echoes on the edge when a duration filter applies. Preserve existing sharing behavior for attributes without a duration filter.
  • Record the send timestamp when a matching update arrives in an open duration window so subsequent telemetry respects the configured interval.
  • Cover write-only, read/write, and rejected Modbus writes with a one-minute duration filter.

The gateway matches by attribute and requested value. An independent device report can match, and a rounded or converted result can differ from the requested value.

Relates to #2832. Companion documentation: openremote/documentation#218.

Validation

  • 38 gateway unit tests passed.
  • Both targeted gateway integration tests passed, including rejected Modbus writes before and after the duration interval expired.
  • git diff --check passed.

Checklist

  • 1. Acceptance criteria of the linked issue(s) are met
  • 2. Tests are written and all tests pass
  • 3. Changes are manually tested by you and the reviewer
  • 4. Documentation is written or updated

- Track pending central writes by attribute and requested value for five seconds
- Let one matching agent update per write bypass the duration limit
- Suppress optimistic central-write echoes when a duration filter applies
- Cover write-only, read/write, and rejected Modbus writes

Relates to #2832
@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

Gateway: Prevent data-sharing rate limits from blocking cloud-initiated agent-linked attribute write confirmations

1 participant