Skip to content

feat: add a minimal GraphQL client - #2967

Merged
max-wittig merged 1 commit into
mainfrom
feat/minimal-graphql-client
Sep 4, 2024
Merged

max-wittig merged 1 commit into
mainfrom
feat/minimal-graphql-client

Conversation

@nejch

@nejch nejch commented Sep 3, 2024 •

Copy link
Copy Markdown
Member

Related to #1357

Adds a minimal client without any bells and whistles, to keep the diff small and then we can bring in more common handling from the REST client.

Documentation and testing

Please consider whether this PR needs documentation and tests. This is not required, but highly appreciated:

@nejch
nejch force-pushed the feat/minimal-graphql-client branch 2 times, most recently from 381a2bb to c78419c Compare September 3, 2024 11:59
Comment thread tests/install/test_install.py Resolved
@nejch
nejch force-pushed the feat/minimal-graphql-client branch from c78419c to 7d583ab Compare September 3, 2024 14:10
@codecov

codecov Bot commented Sep 3, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.55%. Comparing base (d44ddd2) to head (3cb40d8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2967      +/-   ##
==========================================
+ Coverage   96.53%   96.55%   +0.02%     
==========================================
  Files          94       95       +1     
  Lines        5997     6040      +43     
==========================================
+ Hits         5789     5832      +43     
  Misses        208      208              
Flag Coverage Δ
api_func_v4 82.68% <92.15%> (+0.07%) ⬆️
cli_func_v4 83.17% <49.01%> (-0.30%) ⬇️
unit 88.52% <90.19%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
gitlab/__init__.py 100.00% <100.00%> (ø)
gitlab/_backends/graphql.py 100.00% <100.00%> (ø)
gitlab/client.py 98.29% <100.00%> (+0.09%) ⬆️
gitlab/utils.py 97.97% <100.00%> (+0.08%) ⬆️

@nejch
nejch force-pushed the feat/minimal-graphql-client branch 2 times, most recently from 43cf128 to 4a6cb45 Compare September 3, 2024 15:48
@nejch
nejch marked this pull request as ready for review September 3, 2024 16:07
Comment thread pyproject.toml Resolved
Comment thread tests/functional/fixtures/set_token.rb Resolved

@JohnVillalovos JohnVillalovos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall, looks good to me.

Thanks!

I left some minor comments.

Comment thread docs/api-usage-graphql.rst Resolved
Comment thread gitlab/_backends/graphql.py Resolved
Comment thread gitlab/_backends/graphql.py Resolved
Comment thread gitlab/client.py Resolved
@nejch
nejch force-pushed the feat/minimal-graphql-client branch from 4a6cb45 to 3cb40d8 Compare September 3, 2024 18:47

@JohnVillalovos JohnVillalovos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks!

@max-wittig
max-wittig merged commit d6b1b0a into main Sep 4, 2024
@max-wittig
max-wittig deleted the feat/minimal-graphql-client branch September 4, 2024 07:25
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.

3 participants