Skip to content

PNE-6581: Add new criteria. Filling gaps for GEMD query on the SDK.#991

Merged
pacdaemon merged 2 commits intomainfrom
feature/PNE-6581-sdk-filter-by-tag
Apr 18, 2025
Merged

PNE-6581: Add new criteria. Filling gaps for GEMD query on the SDK.#991
pacdaemon merged 2 commits intomainfrom
feature/PNE-6581-sdk-filter-by-tag

Conversation

@pacdaemon
Copy link
Copy Markdown
Contributor

@pacdaemon pacdaemon commented Apr 17, 2025

Citrine Python PR

Description

Add Tag and Connectivity Class Filtering to GEMD Queries

Changes

Added TagFilterType enumeration with AND, OR, and NOT operations for tag filtering
Implemented TagsCriteria class for tag-based filtering in GEMD queries
Added ConnectivityClassCriteria class with optional is_consumed and is_produced properties
Added corresponding test factories for new criteria classes

PR Type:

  • Breaking change (fix or feature that would cause existing functionality to change)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Maintenance (non-breaking change to assist developers)

Adherence to team decisions

  • I have added tests for 100% coverage
  • I have written Numpy-style docstrings for every method and class.
  • I have communicated the downstream consequences of the PR to others.
  • I have bumped the version in __version__.py

@pacdaemon pacdaemon changed the title PNE-6581: Add new criteria PNE-6581: Add new criteria. Filling gaps for GEMD query on the SDK. Apr 17, 2025
@pacdaemon pacdaemon closed this Apr 17, 2025
@pacdaemon pacdaemon reopened this Apr 17, 2025
@pacdaemon pacdaemon marked this pull request as ready for review April 17, 2025 14:39
@pacdaemon pacdaemon requested a review from a team as a code owner April 17, 2025 14:39
Copy link
Copy Markdown
Collaborator

@kroenlein kroenlein left a comment

Choose a reason for hiding this comment

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

Did this get validated against live platform responses? It seems to match the API documented in data-objects-openapi-generated.yaml.

@pacdaemon
Copy link
Copy Markdown
Contributor Author

Did this get validated against live platform responses? It seems to match the API documented in data-objects-openapi-generated.yaml.

I dumped the serialized version to verify correctness, But I didn't ran it against an env. Which was a mistake, by making a round trip I detected one issue on serde.

The last commit should fix it.

@pacdaemon pacdaemon requested a review from kroenlein April 17, 2025 20:24
Copy link
Copy Markdown
Collaborator

@kroenlein kroenlein left a comment

Choose a reason for hiding this comment

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

Looks good!

@pacdaemon pacdaemon merged commit 602995f into main Apr 18, 2025
17 checks passed
@pacdaemon pacdaemon deleted the feature/PNE-6581-sdk-filter-by-tag branch April 18, 2025 14:18
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.

2 participants