Skip to content

Conversation

@yakanechi
Copy link
Contributor

Context

Fixes the issues with this problem
screwdriver-cd/screwdriver#3433

The “Show PR jobs” option is not working on V2 UI

Objective

When hidden, workflows starting with ~pr are not displayed.

  • Like classic, the default (when not set) is enabled.
  • When disabled, the pr graph will not be displayed.

References

screwdriver-cd/screwdriver#3433

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@yakanechi yakanechi marked this pull request as ready for review November 26, 2025 23:58
import { nodeCanShowTooltip } from 'screwdriver-ui/utils/pipeline/graph/tooltip';

export default class PipelineWorkflowGraphComponent extends Component {
@service pipelinePageState;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
@service('pipeline-page-state') pipelinePageState;
@service ('settings') settings;

It would be best to inject the settings instead of having it passed as an argument on the component. By injecting the settings, when the graph component is initially rendered it will always use the correct settings (i.e., navigating to the events UI view). Doing this will also mean you do not need to modify the workflow component and template.

You can choose to store the showPRJobs into a class variable in the constructor to avoid having to extract it each time in the getDecoratedGraph function.

@minghay minghay merged commit 89739a6 into screwdriver-cd:master Dec 4, 2025
2 checks passed
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.

2 participants