remove invisible entry from drop down list#262
Conversation
dwnusbaum
left a comment
There was a problem hiding this comment.
Ok, I guess this works because apiUri is always set to something in GitHubScmSource's constructor as of #236? Did you manually test in a scenario where there are some options in the dropdown to make sure everything still works correctly? (I think it should be fine)
|
@dwnusbaum technically there are always options in the drop down because the add the title |
|
@car-roll Yeah, I mean testing a scenario where you select a GitHub Enterprise server from the dropdown to make sure that still works correctly. |
kshultzCB
left a comment
There was a problem hiding this comment.
Approved, pending a quick verification that >1 endpoint displays correctly.
This will be a nice change. I've always hated that little fragment of a dropdown. :)
|
tested adding a github enterprise server. Was able to connect successfully and scan an empty test repo with two branches. |
API endpointdrop down list is partially visible when theRepository Scanradio button is selected.The problem appears to be in the GithubSCMSource jelly (
config-detail.jelly). If there are no API Endpoints, aninvisibleEntryis added to theradioBlock. However, it looks like there is a bug thatinvisibleEntriesare still partially visible in aradioBlock.(Technically, the list of API Endpoints is never empty as it always has a "Github" title as the first entry. I confirmed that the bug was still present when the list was truly empty.)
Since there is no reason to store an empty list of API Endpoints in an invisible entry, I completely removed the logic and the issue went away.
