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

feat: [TKC-3016] add defaultConfigs for TestWorkflow executions #6090

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

povilasv
Copy link
Contributor

Pull request description

Checklist (choose whats happened)

  • breaking change! (describe)
  • tested locally
  • tested on cluster
  • added new dependencies
  • updated the docs
  • added a test

Breaking changes

Changes

Fixes

@povilasv povilasv marked this pull request as ready for review December 18, 2024 12:53
@povilasv povilasv requested a review from a team as a code owner December 18, 2024 12:53
@povilasv povilasv requested a review from rangoo94 December 18, 2024 12:53
return *result.UnscapeDots(), err
}

func (r *MongoRepository) populateConfigParams(resolvedWorkflow *testkube.TestWorkflow, configParams map[string]testkube.TestWorkflowExecutionConfigValue) {
Copy link
Member

Choose a reason for hiding this comment

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

Not important: I don't think it should be part of this struct, as it's completely independent

func (r *MongoRepository) GetExecutionsSummary(ctx context.Context, filter Filter) (result []testkube.TestWorkflowExecutionSummary, err error) {
result = make([]testkube.TestWorkflowExecutionSummary, 0)
executions := make([]TestWorkflowExecutionSummaryWithResolvedWorkflow, 0)
Copy link
Member

Choose a reason for hiding this comment

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

Better to avoid fetching unnecessary data there. You can either - change the query to fetch only important part, or even better - adjust the aggregate to provide these data.

Copy link
Member

Choose a reason for hiding this comment

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

Also, we have different pipelines for Enterprise, so it's very important to test it through.

@povilasv povilasv merged commit b0b3f6e into main Dec 18, 2024
7 checks passed
@povilasv povilasv deleted the TKC-3016 branch December 18, 2024 14:34
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