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

Ignore missing URL #1244

Merged
merged 3 commits into from
Oct 17, 2022
Merged

Ignore missing URL #1244

merged 3 commits into from
Oct 17, 2022

Conversation

zbynek
Copy link
Contributor

@zbynek zbynek commented Oct 17, 2022

No description provided.

@zbynek zbynek requested a review from a team as a code owner October 17, 2022 20:52
@@ -75,7 +75,7 @@ const getPluginContent = async ({wiki, pluginName, reporter, createNode, createC
id: `${pluginName} <<< JenkinsPluginWiki`,
name: pluginName,
url: url,
baseHref: `${path.dirname(url)}/`,
baseHref: `${url && path.dirname(url)}/`,
Copy link
Member

Choose a reason for hiding this comment

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

won't this output false/?
path.dirname(url || '') would work maybe?

Honestly if there's no url, then there probalby isn't need to generate a wiki object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there probalby isn't need to generate a wiki object

yep, then the error message can be created in UI and we don't need to download it from API. I tried that in a new commit.

Copy link
Member

Choose a reason for hiding this comment

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

I'm going to revert this line, there's no need for it, and it could result in a random false.

@@ -181,21 +184,19 @@ function PluginPage({data: {jenkinsPlugin: plugin, reverseDependencies: reverseD
<h5>Maintainers</h5>
<PluginDevelopers developers={plugin.developers} />
</div>
{shouldShowWikiUrl(plugin.wiki) &&
{shouldShowWikiUrl(plugin.wiki || {}) &&
Copy link
Member

Choose a reason for hiding this comment

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

I'm going to change it so shouldShowWikiUrl takes in a string, and then we can do plugin?.wiki?.url

@zbynek zbynek merged commit 984aa57 into jenkins-infra:master Oct 17, 2022
@zbynek zbynek deleted the missing-url branch October 17, 2022 23:28
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