Skip to content

Conversation

@ogenstad
Copy link
Contributor

Merge back #7 into develop and resolve merge conflicts, also removes the "await" keyword from some new calls to initialize_client() (that used to be an async function)

Phillip Simonds and others added 17 commits September 20, 2024 13:52
Make infrahubctl transform and render commands use InfrahubClient to communicate with GQL API.
The client is assigned now via the cached_property.
We don't want a value passed into the function that isn't used, and likewise
don't want to change the API for that init function.
The collect_data method has been updated to support acquiring data from both a stored graphql query endpoint
and the standard graphql endpoint. Before, only the stored api endpoint was supported.
- Makes  a synchronous function
- Make .client property of InfrahubTransform a setter/getter
- Add client as argument for initialization of InfrahubTransform
@codecov
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 20.45455% with 35 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
infrahub_sdk/ctl/cli_commands.py 0.00% 16 Missing ⚠️
infrahub_sdk/transforms.py 30.76% 9 Missing ⚠️
infrahub_sdk/ctl/branch.py 33.33% 4 Missing ⚠️
infrahub_sdk/ctl/check.py 0.00% 1 Missing ⚠️
infrahub_sdk/ctl/generator.py 0.00% 1 Missing ⚠️
infrahub_sdk/ctl/menu.py 0.00% 1 Missing ⚠️
infrahub_sdk/ctl/object.py 0.00% 1 Missing ⚠️
infrahub_sdk/ctl/repository.py 0.00% 1 Missing ⚠️
infrahub_sdk/ctl/schema.py 50.00% 1 Missing ⚠️
@@             Coverage Diff             @@
##           develop      #88      +/-   ##
===========================================
- Coverage    64.32%   64.26%   -0.06%     
===========================================
  Files           74       74              
  Lines         6847     6858      +11     
  Branches      1354     1356       +2     
===========================================
+ Hits          4404     4407       +3     
- Misses        2091     2099       +8     
  Partials       352      352              
Flag Coverage Δ
python-3.10 43.21% <11.36%> (-0.07%) ⬇️
python-3.11 43.21% <11.36%> (-0.07%) ⬇️
python-3.12 43.21% <11.36%> (-0.07%) ⬇️
python-3.9 43.16% <11.36%> (-0.07%) ⬇️
python-filler-3.12 23.91% <9.09%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
infrahub_sdk/ctl/client.py 47.61% <100.00%> (ø)
infrahub_sdk/ctl/validate.py 54.92% <100.00%> (ø)
infrahub_sdk/ctl/check.py 27.00% <0.00%> (ø)
infrahub_sdk/ctl/generator.py 21.56% <0.00%> (ø)
infrahub_sdk/ctl/menu.py 65.38% <0.00%> (ø)
infrahub_sdk/ctl/object.py 65.38% <0.00%> (ø)
infrahub_sdk/ctl/repository.py 37.03% <0.00%> (ø)
infrahub_sdk/ctl/schema.py 55.83% <50.00%> (ø)
infrahub_sdk/ctl/branch.py 76.81% <33.33%> (ø)
infrahub_sdk/transforms.py 38.57% <30.76%> (+1.07%) ⬆️
... and 1 more

@ogenstad ogenstad changed the title Pog merge back stable Merge back stable into develop with resolved conflicts Oct 17, 2024
@ogenstad ogenstad marked this pull request as ready for review October 17, 2024 08:08
@ogenstad ogenstad requested a review from a team October 17, 2024 08:08
@ogenstad ogenstad merged commit 43879f6 into develop Oct 17, 2024
12 checks passed
@ogenstad ogenstad deleted the pog-merge-back-stable branch October 17, 2024 10:41
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