-
Notifications
You must be signed in to change notification settings - Fork 41
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
Create a 'related definitions' API #402
Comments
I like the approach, but i don't know if returning other revisions of the some component could be considered what we expect as a "relation". The behavior of adding, or switching, a revision of the same component is already implemented in the definitions list of the UI. |
true. That's a good point. I was thinking of this as sort of the inverse of suggestions. A suggestion helps you fill in missing data from other versions of a component that have that missing data filled. We can wait and see if anyone else has any input on this, if it is something we actually need/want |
I'm thinking similar to how we do
https://api.clearlydefined.io/suggestions/npm/npmjs/-/glob/7.1.3
We would have another endpoint like
https://api.clearlydefined.io/related/npm/npmjs/-/glob/7.1.3
And this would have an algorithm that returned a list of coordinates.
We can start by returning other revisions of the same coordinates that have the same data missing
For example:
If
npm/npmjs/-/glob/7.1.3
is missing a declared license, return othernpm/npmjs/-/glob/<revision>
that are also missing a declared licenseIf
npm/npmjs/-/glob/7.1.3
is missing a source location, return othernpm/npmjs/-/glob/<revision>
that are also missing a source locationThe text was updated successfully, but these errors were encountered: