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

Create a 'related definitions' API #402

Open
dabutvin opened this issue Feb 19, 2019 · 2 comments
Open

Create a 'related definitions' API #402

dabutvin opened this issue Feb 19, 2019 · 2 comments

Comments

@dabutvin
Copy link
Member

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 other npm/npmjs/-/glob/<revision> that are also missing a declared license

If npm/npmjs/-/glob/7.1.3 is missing a source location, return other npm/npmjs/-/glob/<revision> that are also missing a source location

GET https://api.clearlydefined.io/related/npm/npmjs/-/glob/7.1.3

REPSONSE [ "npm/npmjs/-/glob/7.1.2", "npm/npmjs/-/glob/7.1.0", ... ]
@storrisi
Copy link
Contributor

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.

@dabutvin
Copy link
Member Author

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.
A relation helps you find other versions of a component that have similarly missing data for what you are offering.

We can wait and see if anyone else has any input on this, if it is something we actually need/want

@storrisi storrisi added this to the March 2019 milestone Feb 28, 2019
@storrisi storrisi removed this from the March 2019 milestone Apr 1, 2019
@storrisi storrisi added this to the June 2019 milestone Jun 3, 2019
@storrisi storrisi modified the milestones: June 2019, July 2019 Jul 1, 2019
@storrisi storrisi modified the milestones: July 2019, August 2019 Aug 2, 2019
@storrisi storrisi modified the milestones: August 2019, September 2019 Sep 5, 2019
@storrisi storrisi modified the milestones: September 2019, October 2019 Oct 1, 2019
@jeffmendoza jeffmendoza removed this from the October 2019 milestone Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants