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

feat(Rest) : Advanced Search for project page #2851

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

keerthi-bl
Copy link
Contributor

Issue:
Closes : #2832

Description

Rest end point added with following parameters for advance search in a project list page.

Version, Project responsible, State, Clearing State, additional Data.

Suggest Reviewer

You can suggest reviewers here with an @mention.

How To Test?

URL : http://localhost:8080/resource/api/projects?name=update&version=1.1&state=PHASE_OUT&[email protected]

Response :
{

}

Checklist

Must:

  • All related issues are referenced in commit messages and in PR

@keerthi-bl keerthi-bl requested a review from GMishx December 23, 2024 09:37
@GMishx GMishx added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for New-UI Level for the API and UI level changes for the new-ui labels Dec 23, 2024
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Minor changes for better documentation.

@GMishx
Copy link
Member

GMishx commented Dec 23, 2024

@keerthi-bl please fix the commit message as well.

@keerthi-bl keerthi-bl force-pushed the feat/advSearchForProjectRest branch 2 times, most recently from 6319c03 to eb9a778 Compare December 24, 2024 04:41
@keerthi-bl keerthi-bl changed the title Advanced Search for project page feat(Rest) : Advanced Search for project page Dec 24, 2024
@keerthi-bl keerthi-bl force-pushed the feat/advSearchForProjectRest branch from eb9a778 to 1537205 Compare December 24, 2024 06:20
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Changes looks good.

Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Minor change needed.

During testing, discovered another issue. The function call to getProjectsForUser() (when lucene is false) gives wrong amount of projects (always 20). Will open a separate issue for the same.

Comment on lines 302 to 303
return getProjectResponse(pageable, projectType, group, tag, allDetails, luceneSearch, request, sw360User,
mapOfProjects, isSearchByName, sw360Projects, isNoFilter);
Copy link
Member

Choose a reason for hiding this comment

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

getProjectResponse() no longer requires filter of projectType, group, etc. as it is already done by filterProjectMap() and refineSearch().

@GMishx
Copy link
Member

GMishx commented Jan 3, 2025

Created separate issue #2854 .

Please fix the changes requested for merging this pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs general test This is general testing, meaning that there is no org specific issue to check for New-UI Level for the API and UI level changes for the new-ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(REST) : Advanced Search for project page.
2 participants