Skip to content

Externalize GraphQL Queries#116

Draft
jeeftor wants to merge 3 commits intohammem:mainfrom
jeeftor:develop
Draft

Externalize GraphQL Queries#116
jeeftor wants to merge 3 commits intohammem:mainfrom
jeeftor:develop

Conversation

@jeeftor
Copy link

@jeeftor jeeftor commented Aug 21, 2024

I like your lib but I find it is a little hard to look through because you've inlined all the GraphQL queries.

I made a const.py file and moved the GET query definitions into it - so you can take a look. I'm hoping I'll be able to auto-generate data classes for return data and having the queries in their own variables "might" allow one to automate this.

Feel free to ignore if you want - but I thought I'd offer a potential improvement in readability ...

Ultimately I would suggest all queries get externalized - but I decided to start with the get's for now.

Copy link
Owner

@hammem hammem left a comment

Choose a reason for hiding this comment

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

Thanks for the refactor, @jeeftor ! If you could, please break this apart, so I can more easily ensure a push to PyPI won't result in a broken version. Or, please ensure the new tests you wrote -- thank you again! -- are part of the CI/CD workflows that are run today.

Copy link
Owner

Choose a reason for hiding this comment

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

please delete this

Copy link
Owner

Choose a reason for hiding this comment

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

please delete this

@jeeftor jeeftor marked this pull request as draft January 21, 2025 22:11
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