Skip to content

Update read_data to call into read_measurement_value and read_condition_value.#120

Draft
mjohanse-emr wants to merge 10 commits intomainfrom
users/mjohanse/use_new_reads
Draft

Update read_data to call into read_measurement_value and read_condition_value.#120
mjohanse-emr wants to merge 10 commits intomainfrom
users/mjohanse/use_new_reads

Conversation

@mjohanse-emr
Copy link
Collaborator

@mjohanse-emr mjohanse-emr commented Mar 11, 2026

What does this Pull Request accomplish?

Replaces the read_data method in the datastore-python package with these new read entrypoints:

  • read_measurement_value
  • read_condition_value

These read methods no longer uses the Moniker and MonikerClient to perform the read. It simply calls the lower level read_measurement_value or read_condition_value with the id from the PublishedMeasurement or PublishedCondition.

Tests and examples have been updated to use these new read methods.

All usage, documentation, and testing of Moniker and MonikerClient has been scrubbed from this python package.

I bumped the version to 2.0.0 since there are breaking changes to the read methods in this PR.

Why should this Pull Request be merged?

AB#3712177

We want datastore-python to use the new id based read entrypoints.
We want datastore-python to have similarly named read methods to the C# API.

What testing has been done?

All acceptance and unit tests pass.

…alue

Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
Copilot AI review requested due to automatic review settings March 11, 2026 22:10
@mjohanse-emr mjohanse-emr requested review from hunter-ni and removed request for Copilot March 11, 2026 22:11
@mjohanse-emr mjohanse-emr marked this pull request as draft March 12, 2026 17:39
@mjohanse-emr
Copy link
Collaborator Author

I'm going to close this PR temporarily. Johann and I discussed an alternative that I'm going to try out, so I don't want y'all to waste time reviewing this in the current state.

Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
@mjohanse-emr mjohanse-emr reopened this Mar 12, 2026
Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
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.

1 participant