Repository navigation
Add Metadata V1 deletion APIs and Data V2 pagination - #204
Conversation
|
The dependency pins are temporary while the updated packages are being published. Once the packages are publicly available on PyPI, I’ll update The publish workflows for the pinned upstream commit are: |
There was a problem hiding this comment.
🟡 Changes recommended
Git-based dependencies block PyPI and TestPyPI uploads, while passing a bare string to batch_delete_aliases can delete unrelated alias registrations.
2 open issues
What changed in this PR
This PR aligns the high-level Python datastore client with upstream Metadata V1 deletion APIs and Data V2 pagination contracts.
Changes:
- Adds single-item and batch metadata deletion methods, tests, and documentation.
- Adds pagination tokens while retaining
next_linkas an alias, plus measurement keywords and output-only step child indicators. - Temporarily pins three upstream client/proto dependencies to a specific Git commit.
| File | Description |
|---|---|
tests/unit/metadata/test_delete_metadata.py |
Tests deletion request forwarding and force options. |
tests/unit/data/test_v2_types.py |
Tests keywords, child indicators, and field mappings. |
tests/unit/data/test_v2_data_store_client.py |
Tests pagination parameters, tokens, and read masks. |
src/ni/datastore/metadata/_metadata_store_client.py |
Adds single-item and batch deletion wrappers. |
src/ni/datastore/data/v2/_types/_step.py |
Adds output-only has_children support. |
src/ni/datastore/data/v2/_types/_read_fields.py |
Adds child-indicator and keyword read fields. |
src/ni/datastore/data/v2/_types/_query_results.py |
Adds continuation tokens with a legacy alias. |
src/ni/datastore/data/v2/_types/_measurement.py |
Adds measurement keyword storage and conversion. |
src/ni/datastore/data/v2/_types/_create.py |
Adds typed measurement keyword creation input. |
src/ni/datastore/data/v2/_data_store_client.py |
Forwards pagination parameters and returns tokens. |
pyproject.toml |
Pins upstream dependencies to a Git commit. |
poetry.lock |
Records updated dependency versions and Git sources. |
docs/reference/ni-metadata-store.md |
Documents deletion APIs and force behavior. |
docs/reference/ni-data-store-v2.md |
Documents pagination, keywords, and child indicators. |
Review effort: Balanced
Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
Signed-off-by: Michael Johansen <michael.johansen@emerson.com>
@priya-ni I got all the ni-apis-python packages published and updated this PR to use those published packages. |

What does this Pull Request accomplish?
next_page_tokensupport while retainingnext_linkas a compatibility alias.72f6068c27af07ba8dcf3e2b2f71e4f6838ffe22.Why should this Pull Request be merged?
It brings the high-level client in line with the merged upstream deletion APIs and Data V2 pagination contract. The Git pins are temporary until the corresponding packages are published to PyPI; then they can be replaced with version constraints.
What testing has been done?
pytest tests/unit -q: 485 passedgit diff --checkpassed