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

Add is_manual field to pipelines #336

Merged
merged 3 commits into from
Mar 7, 2023
Merged

Conversation

albertvaka
Copy link
Collaborator

@albertvaka albertvaka commented Mar 3, 2023

What does this PR do?

Adds the is_manual field that is true when a Run contains a UserIdCause.

Review checklist (to be filled by reviewers)

  • Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
  • PR should not have do-not-merge/ label attached.
  • If Applicable, issue must have kind/ and severity/ labels attached at least.

@@ -39,7 +39,7 @@ protected String getNodeName(Run<?, ?> run, BuildData buildData, BuildData updat
return buildData.getNodeName("").isEmpty() ? updatedBuildData.getNodeName("") : buildData.getNodeName("");
}

protected String getNodeHostname(Run<?, ?> run, BuildData updatedBuildData) {
static protected String getNodeHostname(Run<?, ?> run, BuildData updatedBuildData) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why static?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought this would be better since these functions don't really use any non-static members from to class. In C# it's actually a good practice and it makes things faster. If this is uncommon, confusing or not a good practice in Java let me know and I can revert.

@albertvaka albertvaka merged commit 49fc418 into master Mar 7, 2023
@albertvaka albertvaka deleted the albertvaka/add-is-manual branch March 7, 2023 12:39
@albertvaka albertvaka added the changelog/Added Added features results into a minor version bump label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/Added Added features results into a minor version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants