-
Notifications
You must be signed in to change notification settings - Fork 2
feat: SP-2140 define new methods for transitive dependencies #16
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
Merged
isasmendiagus
merged 10 commits into
main
from
feat/SP-2140-define-new-method-for-transient-dependencies
Apr 7, 2025
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0c73515
feat: SP-2140 define new methods for transitive dependencies
isasmendiagus 63c3dc3
feat: SP-2140 define new methods for transitive dependencies
isasmendiagus f942dbe
chore: Creates transitive dependencies stub
agustingroh e43fdc2
chore: Creates transitive dependencies stub
agustingroh bfaa583
chore(scanoss-common): reword TODO making it more explicit
isasmendiagus 3ea4348
feat(scanoss-dependencies): add TODO for scope fields in transitive d…
isasmendiagus 5a6503a
chore(api): restore previous api stubs
isasmendiagus 20ec4a8
chore(scanoss-dependencies): fix field numbers on TransitiveDependenc…
isasmendiagus 4757ee2
Merge remote-tracking branch 'origin/feat/SP-2140-define-new-method-f…
eeisegn 9bdc2d5
generated swagger and stubs
eeisegn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,14 @@ service Dependencies { | |
body: "*" | ||
}; | ||
}; | ||
|
||
rpc GetTransitiveDependencies(TransitiveDependencyRequest) returns(TransitiveDependencyResponse) { | ||
option (google.api.http) = { | ||
post: "/api/v2/dependencies/transitive" | ||
body: "*" | ||
}; | ||
}; | ||
|
||
} | ||
|
||
/* | ||
|
@@ -134,4 +142,44 @@ message DependencyResponse { | |
repeated Files files = 1; | ||
// Response status (required?) | ||
scanoss.api.common.v2.StatusResponse status = 2; | ||
} | ||
} | ||
|
||
/* | ||
* Transitive dependency request data (JSON payload) | ||
*/ | ||
|
||
message TransitiveDependencyRequest { | ||
string ecosystem = 1; | ||
// Depth to go when searching dependencies | ||
int32 depth = 2; | ||
// Limit used on response | ||
int32 limit = 3; | ||
|
||
/* TODO: Add scope filters: | ||
repeated string scopes = 4; | ||
Using a list of strings allows filtering by multiple scopes simultaneously | ||
(e.g., include both "dev" and "test" dependencies in a single request) | ||
*/ | ||
|
||
// List of Purls from the same ecosystem | ||
repeated scanoss.api.common.v2.Purl purls = 5; | ||
} | ||
|
||
/* | ||
* Transitive dependency response data (JSON payload) | ||
*/ | ||
message TransitiveDependencyResponse { | ||
message Dependencies { | ||
string purl = 2; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. field numbers are wrong? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
string version = 3; | ||
|
||
// TODO: Add scope field | ||
// optional string scope = 4; | ||
} | ||
// Dependency response details | ||
repeated Dependencies dependencies = 1; | ||
// Response status | ||
scanoss.api.common.v2.StatusResponse status = 2; | ||
} | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.