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

Find a way to make COMPONENT and REPOSITORY_META_COMPONENT tables JOIN-able #1465

Open
2 tasks done
nscuro opened this issue Aug 23, 2024 · 0 comments
Open
2 tasks done
Labels
enhancement New feature or request p2 Non-critical bugs, and features that help organizations to identify and reduce risk performance size/M Medium effort

Comments

@nscuro
Copy link
Member

nscuro commented Aug 23, 2024

Current Behavior

It is not possible to join the COMPONENT and REPOSITORY_META_COMPONENT tables:

  • COMPONENT has PURL and PURL_COORDINATES columns
  • REPOSITORY_META_COMPONENT has REPOSITORY_TYPE, NAMESPACE and NAME columns
  • REPOSITORY_TYPE is not necessarily the same a PURL type
  • Namespace and name segments of full PURLs might be URL-encoded (e.g. pkg:npm/%40foo/[email protected])
  • NAMESPACE and NAME columns of REPOSITORY_META_COMPONENT contain PURL namespace and name in URL-decoded form

Thus:

  • There is no single column we can join on
  • Constructing or deconstructing PURLs we can join on in the query is not reliable

This causes a few bad limitations:

Proposed Behavior

Find a way to make COMPONENT and REPOSITORY_META_COMPONENT tables JOIN-able.

Creating new columns, new SQL helper functions etc. are all possibilities we can investigate.

Checklist

@nscuro nscuro added enhancement New feature or request p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/M Medium effort performance labels Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p2 Non-critical bugs, and features that help organizations to identify and reduce risk performance size/M Medium effort
Projects
None yet
Development

No branches or pull requests

1 participant