Skip to content

Add is_manual field to pipelines#336

Merged
albertvaka merged 3 commits into
masterfrom
albertvaka/add-is-manual
Mar 7, 2023
Merged

Add is_manual field to pipelines#336
albertvaka merged 3 commits into
masterfrom
albertvaka/add-is-manual

Conversation

@albertvaka

@albertvaka albertvaka commented Mar 3, 2023

Copy link
Copy Markdown
Collaborator

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.

}

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

Copy link
Copy Markdown
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
Copy Markdown
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 force-pushed the albertvaka/add-is-manual branch from 78d5759 to 4fa7fa5 Compare March 3, 2023 17:55
@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