chore: Install Ariadne-codegen to generate a typed open hexa client (HEXA-1254)#264
Merged
Conversation
yolanfery
commented
May 20, 2025
| @@ -0,0 +1,372 @@ | |||
| # Generated by ariadne-codegen | |||
Contributor
Author
There was a problem hiding this comment.
Files in graphql_client are auto generated by ariadne-codegen
nazarfil
approved these changes
May 22, 2025
| workspace_pipelines = get_pipelines() | ||
| workspace_pipelines = ( | ||
| OpenHexaClient().get_workspace_pipelines(workspace_slug=settings.current_workspace).pipelines.items | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Recently, we have introduced in the SDK package the GraphQL file taken from the OpenHexa app to help with identifying breaking changes between the SDK and the Backend server.
This opens up an opportunity to leverage Ariadne-codgen to generate a typed API. This PR is about installing this and using it for the
pipelines listcommand to serve as an example. Existing commands are left unchanged to reduce the risk of regressions but it would be expected to use this typed client going forward for future features.Changes
OpenHexaClient, defining the url and headers as well as some loggingpipelines listHow/what to test
/Users/yolanfery/Desktop/openhexa-sdk-python/venv/bin/openhexa pipelines list