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

fix(rest): Update search API to return 200 status with empty results array when no match found #2460

Conversation

sameed20
Copy link
Contributor

@sameed20 sameed20 commented May 17, 2024

Description

This PR updates the search API to return a 200 status code with an empty results array when no matches are found.
aftest

closes: #2459

@afsahsyeda afsahsyeda added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels May 20, 2024
@akshitjoshii
Copy link
Contributor

Testing this PR.

@afsahsyeda
Copy link
Contributor

Code looks good to me.

@GMishx
Copy link
Member

GMishx commented Aug 31, 2024

@akshitjoshii any updates with the tests on this PR?

@GMishx
Copy link
Member

GMishx commented Aug 31, 2024

@sameed20 please rebase with latest main.

…array when no match found

Signed-off-by: sameed.ahmad <[email protected]>
@sameed20 sameed20 force-pushed the feat/return-empty-search-results-with-200-status branch from ccadca8 to fe05d9f Compare September 18, 2024 06:44
@GMishx GMishx added ready ready to merge and removed has merge conflicts needs general test This is general testing, meaning that there is no org specific issue to check for labels Oct 17, 2024
@GMishx GMishx merged commit 300a33a into eclipse-sw360:main Oct 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return an Empty Result Array with 200 Status Code for No Search Results
4 participants