8000 Remove refs to `InfrahubServices` for git ops by gmazoyer · Pull Request #6406 · opsmill/infrahub · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove refs to InfrahubServices for git ops #6406

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

Draft
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

gmazoyer
Copy link
Contributor
@gmazoyer gmazoyer commented May 5, 2025

This change tries to remove the need for a InfrahubServices object when it comes to operations to be performed on a git repository.

This work is a stepping stone to be able to run user flagged workflows inside a dedicated prefect worker for isolation purpose as we won't be able to inject a InfrahubServices object into, also we don't want to for security reasons.

@github-actions github-actions bot added the group/backend Issue related to the backend (API Server, Git Agent) label May 5, 2025
Copy link
codspeed-hq bot commented May 5, 2025

CodSpeed Performance Report

Merging #6406 will not alter performance

Comparing gma-20250505-remove-service-git-repo (22db44c) with develop (a290a35)

Summary

✅ 10 untouched benchmarks


return self.service.client
return self.client
Copy link
Contributor

Choose a reason for hiding this comment

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

It could perhaps be a follow up PR but I think we should get rid of the sdk property.

Copy link
Contributor
@ogenstad ogenstad left a comment

Choose a reason for hiding this comment

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

LGTM

@gmazoyer gmazoyer force-pushed the gma-20250505-remove-service-git-repo branch 2 times, most recently from 9da3379 to dbf453a Compare May 11, 2025 10:52
@gmazoyer gmazoyer force-pushed the gma-20250505-remove-service-git-repo branch 3 times, most recently from fa36fe1 to 0a68cd2 Compare May 20, 2025 16:10
@gmazoyer gmazoyer force-pushed the gma-20250505-remove-service-git-repo branch from 0a68cd2 to 2ee0889 Compare June 2, 2025 13:41
gmazoyer added 11 commits June 3, 2025 11:18
This change tries to remove the need for a `InfrahubServices` object
when it comes to operations to be performed on a git repository.

This work is a stepping stone to be able to run user flagged workflows
inside a dedicated prefect worker for isolation purpose as we won't be
able to inject a `InfrahubServices` object into, also we don't want to
for security reasons.
@gmazoyer gmazoyer force-pushed the gma-20250505-remove-service-git-repo branch from 2ee0889 to 71ab8ad Compare June 3, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0