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

[products] Show Identifiers in product pages #5356

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

captn3m0
Copy link
Member

@captn3m0 captn3m0 commented Jun 26, 2024

Currently, we don't expose identifiers beyond storing them in the front-matter. This will start exposing the identifiers on the website as a start.

Simple version to start with, based on https://github.com/package-url/packageurl-python/blob/main/src/packageurl/contrib/purl2url.py, with a few more types, and no support for "versions", since identifiers won't have that.

@captn3m0 captn3m0 added the enhancement New feature or request label Jun 26, 2024
@captn3m0 captn3m0 self-assigned this Jun 26, 2024
@captn3m0
Copy link
Member Author

Working on generating links, converting to draft.

@captn3m0 captn3m0 marked this pull request as draft June 26, 2024 07:58
@captn3m0 captn3m0 requested a review from marcwrobel June 26, 2024 10:45
@captn3m0 captn3m0 marked this pull request as ready for review June 26, 2024 10:45
marcwrobel added a commit that referenced this pull request Jul 6, 2024
Based on modifications done in #5356.
marcwrobel added a commit that referenced this pull request Jul 6, 2024
Looks like it was wrong, see #5356.
marcwrobel added a commit that referenced this pull request Jul 6, 2024
Looks like it was wrong, see #5356.
marcwrobel added a commit that referenced this pull request Jul 6, 2024
Looks like it was wrong, see #5356.
Gemfile.lock Outdated Show resolved Hide resolved
products/alpinelinux.md Outdated Show resolved Hide resolved
products/antixlinux.md Outdated Show resolved Hide resolved
products/bellsoft-liberica.md Outdated Show resolved Hide resolved
products/cfengine.md Outdated Show resolved Hide resolved
products/mysql.md Outdated Show resolved Hide resolved
products/nginx.md Outdated Show resolved Hide resolved
products/node-feature-discovery.md Show resolved Hide resolved
products/redhat-build-of-openjdk.md Outdated Show resolved Hide resolved
products/vmware-photon.md Outdated Show resolved Hide resolved
marcwrobel added a commit that referenced this pull request Jul 6, 2024
Based on modifications done in #5356.
marcwrobel added a commit that referenced this pull request Jul 6, 2024
Looks like it was wrong, see #5356.
marcwrobel added a commit that referenced this pull request Jul 6, 2024
Looks like it was wrong, see #5356.
marcwrobel added a commit that referenced this pull request Jul 6, 2024
Looks like it was wrong, see #5356.
@captn3m0
Copy link
Member Author

captn3m0 commented Jul 6, 2024

I'll drop the PURL fix commits and rebase this.

A PURL validator will be nice to have.

@marcwrobel
Copy link
Member

I'll drop the PURL fix commits and rebase this.

@captn3m0, don't mind I am doing it right now.

Simple version to start with.
We can look at a PURL->URL generator later
Copy link
Member

@marcwrobel marcwrobel left a comment

Choose a reason for hiding this comment

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

Overall LGTM.

Before merging I will:

  • add a validator to validate all identifiers
  • see if I should exclude the validation of those generated URLs from product-data-validator
  • see if I can improve the rendering (having a " Show Product Identifiers" at the bottom seems a bit strange).

_includes/identifiers.html Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants