oracle / oracle/macaron

Support PURL aliases in the data model

Open
#399 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

database
Dominant language
Python
Stars
210
Forks
36
Avg merge
1d 10h
Merged PRs (30d)
2

Description

The PURL specification allows multiple PURL strings pointing to the same software component:

pkg:maven/org.apache.xmlgraphics/batik-anim@1.9.1

can be equivalent to

pkg:github.com/apache/xmlgraphics-batik@7464826697a268a20d6f871bf265915a71214a91

We need to support such aliases in the data model and load the same component from the database. One way to add support can be to add a new mapped object for PURL aliases, with a foreign key to the Component object.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Component data model and the database loading path. Define how multiple PURL strings map to one component, using the proposed PURL alias object and its foreign key as the starting point. Done means equivalent Maven and GitHub PURLs load the same component.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.