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

add get project entities by classifier API #476

Merged
merged 4 commits into from
Sep 20, 2024

Conversation

YannanGao-gs
Copy link
Contributor

add get project entities by classifier API

@MauricioUyaguari
Copy link
Member

this looks good to me.
only thought is maybe the new apis belong in the classifier group, but could see why they were put in the entities and dependencies. good to move forward on my part. @gs-gunjan please take a look thanks!

@ApiParam("Whether to return start of dependency tree") boolean includeOrigin,
@Context Request request)
{
return handle(GET_VERSION_DEPENDENCY_ENTITIES, () -> this.entitiesService.getDependenciesEntitiesByClassifier(groupId, artifactId, versionId, classifier, transitive, includeOrigin), request, () -> EtagBuilder.create().withGAV(groupId, artifactId, versionId).withClassifier(classifier).build());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

etag might not completely work , if transitive/origin is true or false we should expect a diff response,
with this it might probably give me the same response irrespective transitive true/false.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems that it should be fine by reading https://stackoverflow.com/questions/78770684/should-etags-be-unique-for-same-url-but-with-different-request-parameters I've tested (only few times), it seems that I can get correct responses.
May I know when/how you got a wrong response?

@gs-gunjan
Copy link
Contributor

looks good to me

@MauricioUyaguari MauricioUyaguari merged commit 56e4ee5 into finos:master Sep 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants