-
Notifications
You must be signed in to change notification settings - Fork 53
fix(3433): PR jobs displayed even when “Show PR Jobs” is enabled #1510
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
fix(3433): PR jobs displayed even when “Show PR Jobs” is enabled #1510
Conversation
| import { nodeCanShowTooltip } from 'screwdriver-ui/utils/pipeline/graph/tooltip'; | ||
|
|
||
| export default class PipelineWorkflowGraphComponent extends Component { | ||
| @service pipelinePageState; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @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.
Co-authored-by: Ming-Hay <[email protected]>
Co-authored-by: Ming-Hay <[email protected]>
Co-authored-by: Ming-Hay <[email protected]>
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.
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.