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 SCM Type detail to job detail view #12145

Merged

Conversation

marshmalien
Copy link
Member

SUMMARY

Resolves #4057
Screen Shot 2022-05-02 at 4 00 02 PM

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • UI

<Detail
dataCy="source-control-type"
label={t`Source Control Type`}
value={scmTypes[job.scm_type]}
Copy link
Member

Choose a reason for hiding this comment

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

does this need to be scmTypes[job.scm_type] || scmTypes[''], or will job.scm_type always be an empty string if it's not one of the four specific types?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think so. Not every job will have a scm_type, so in those cases we wouldn't want to display the Source Control Type detail.

@jay-steurer jay-steurer merged commit 3610008 into ansible:devel May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Project update detail page in UI could use some more properties
3 participants