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

Convert BranchDelete task and event to Prefect #4778

Open
wants to merge 1 commit into
base: develop-1.1
Choose a base branch
from

Conversation

dgarros
Copy link
Collaborator

@dgarros dgarros commented Oct 30, 2024

This PR converts the following tasks/messages to Prefect :

  • RequestProposedChangeCancel
  • TriggerProposedChangeCancel
  • EventBranchDelete

@github-actions github-actions bot added group/backend Issue related to the backend (API Server, Git Agent) group/ci Issue related to the CI pipeline labels Oct 30, 2024
Copy link

codspeed-hq bot commented Oct 30, 2024

CodSpeed Performance Report

Merging #4778 will degrade performances by 17.92%

Comparing dga-20241030-events (2a178a9) with develop (fad721d)

Summary

❌ 2 (👁 2) regressions
✅ 8 untouched benchmarks

Benchmarks breakdown

Benchmark develop dga-20241030-events Change
👁 test_get_menu 421.5 ms 473.4 ms -10.97%
👁 test_graphql_generate_schema 300.4 ms 366 ms -17.92%

@github-actions github-actions bot added the type/documentation Improvements or additions to documentation label Oct 30, 2024
@dgarros dgarros requested a review from a team October 30, 2024 17:20
@dgarros dgarros marked this pull request as ready for review October 30, 2024 17:20
@@ -27,7 +27,7 @@ def get_name(self) -> str:
def get_resource(self) -> dict[str, str]:
raise NotImplementedError

def get_message(self) -> InfrahubMessage:
def get_messages(self) -> list[InfrahubMessage]:
raise NotImplementedError
Copy link
Contributor

Choose a reason for hiding this comment

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

NotImplentedError()

proposed_change: CoreProposedChange = await NodeManager.get_one_by_id_or_default_filter(
db=db, id=prepare_proposed_change, kind=InfrahubKind.PROPOSEDCHANGE
)
assert proposed_change.state.value.value == ProposedChangeState.CANCELED.value
Copy link
Contributor

Choose a reason for hiding this comment

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

should there be new unit tests to cover the deleted ones in this module and those below?

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) group/ci Issue related to the CI pipeline type/documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants