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

Fix collection detail breaking when no description is set. #1906

Merged
merged 1 commit into from
Jun 10, 2019

Conversation

newswangerd
Copy link
Member

Fixes: #1905

@@ -137,7 +137,8 @@ export class ContentHeaderComponent implements OnInit {
iconClass: 'pficon-repository',
tooltip: 'Collection',
name: this.collection.name,
description: this.collection.latest_version.metadata.description,
description:
this.collection.latest_version.metadata.description || '',
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the right fix, or should it have been an import error for the metadata to exclude a description in the first place? I did not think it was supposed to be optional.

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 looked into this and the description isn't required in the spec, so the importer is currently doing the right thing by ignoring it.

@newswangerd newswangerd merged commit 65f6692 into ansible:devel Jun 10, 2019
newswangerd added a commit to newswangerd/galaxy that referenced this pull request Jun 10, 2019
newswangerd added a commit that referenced this pull request Jun 11, 2019
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.

Collections: web-site keeps loading
2 participants