Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of retrieved nodes can be disabled #223

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Conversation

LucasG0
Copy link
Contributor

@LucasG0 LucasG0 commented Jan 7, 2025

No description provided.

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 54.54545% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
infrahub_sdk/graphql.py 25.00% 2 Missing and 1 partial ⚠️
infrahub_sdk/node.py 0.00% 1 Missing and 1 partial ⚠️
@@             Coverage Diff             @@
##           develop     #223      +/-   ##
===========================================
- Coverage    68.72%   68.70%   -0.03%     
===========================================
  Files           82       82              
  Lines         7515     7525      +10     
  Branches      1459     1462       +3     
===========================================
+ Hits          5165     5170       +5     
- Misses        1972     1975       +3     
- Partials       378      380       +2     
Flag Coverage Δ
integration-tests 12.85% <0.00%> (-0.02%) ⬇️
python-3.10 44.25% <0.00%> (-0.06%) ⬇️
python-3.11 44.25% <0.00%> (-0.06%) ⬇️
python-3.12 44.25% <0.00%> (-0.06%) ⬇️
python-3.13 44.25% <0.00%> (-0.06%) ⬇️
python-3.9 41.91% <0.00%> (-0.06%) ⬇️
python-filler-3.12 23.77% <54.54%> (+0.03%) ⬆️

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

Files with missing lines Coverage Δ
infrahub_sdk/client.py 66.89% <100.00%> (ø)
infrahub_sdk/schema/main.py 83.46% <100.00%> (+0.06%) ⬆️
infrahub_sdk/testing/schemas/animal.py 97.05% <ø> (ø)
infrahub_sdk/types.py 92.85% <100.00%> (+0.85%) ⬆️
infrahub_sdk/node.py 77.58% <0.00%> (-0.15%) ⬇️
infrahub_sdk/graphql.py 96.19% <25.00%> (-2.82%) ⬇️

@@ -64,3 +66,7 @@ def exception(self, event: str | None = None, *args: Any, **kw: Any) -> Any:


InfrahubLoggers = Union[InfrahubLogger, Logger]


class OrderModel(BaseModel):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should call it just Order to keep it simpler for the user and easier to read

@LucasG0 LucasG0 marked this pull request as ready for review January 8, 2025 16:21
Copy link
Contributor

@dgarros dgarros left a comment

Choose a reason for hiding this comment

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

Looks good

@dgarros
Copy link
Contributor

dgarros commented Jan 9, 2025

Please can you add an entry in the changelog directory to include something in the release note

@LucasG0 LucasG0 force-pushed the lgu-add-order-disable branch from 4e18000 to ffd8384 Compare January 9, 2025 09:01
@LucasG0 LucasG0 changed the base branch from develop to stable January 9, 2025 09:02
@LucasG0 LucasG0 force-pushed the lgu-add-order-disable branch 2 times, most recently from 561614b to d92173d Compare January 9, 2025 09:04
@LucasG0 LucasG0 force-pushed the lgu-add-order-disable branch from d92173d to 9b1fe7a Compare January 9, 2025 10:33
@LucasG0 LucasG0 changed the base branch from stable to develop January 9, 2025 10:33
@LucasG0 LucasG0 merged commit b7ff042 into develop Jan 9, 2025
14 checks passed
@LucasG0 LucasG0 deleted the lgu-add-order-disable branch January 9, 2025 10:39
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