opsmill / infrahub

Infrahub - A new approach to Infrastructure Management
https://opsmill.com/
GNU Affero General Public License v3.0
207 stars 15 forks source link

bug: isnull filters are missing in the schema endpoint #4444

Closed exalate-issue-sync[bot] closed 1 month ago

exalate-issue-sync[bot] commented 1 month ago

Component

API Server / GraphQL, Python SDK

Infrahub version

0.16.0

Current Behavior

As part of the schema, Infrahub currently exposes the list of supported filters.

For relationships an isnull filter is generated that allows us to filter for nodes that either have a related node for that relationship or not. These filters are usable when using the GraphQL API.

When you consult the schema of a node, using the schema REST API endpoint, the isnull filters are missing from the schema.

This means we cannot use these filters in the SDK, as the SDK validates the filters you can using the filters returned by the schema endpoint.

Expected Behavior

The isnull filters should be part of the filters returned by the schema REST API endpoint. The SDK will allow us to you use the isnull filters.

Steps to Reproduce

Additional Information

No response

exalate-issue-sync[bot] commented 1 month ago

[From lykinsbd]

Closing as duplicate, migrated to Infrahub SDK project as [https://opsmill.atlassian.net/browse/IHS-24|https://opsmill.atlassian.net/browse/IHS-24|smart-link].