Skip to content

refactor(search): migrate moderation request search to new infra - #4432

Merged
GMishx merged 3 commits into
eclipse-sw360:feat/search/reworkfrom
siemens:feat/search/mr
Aug 6, 2026
Merged

refactor(search): migrate moderation request search to new infra#4432
GMishx merged 3 commits into
eclipse-sw360:feat/search/reworkfrom
siemens:feat/search/mr

Conversation

@deo002

@deo002 deo002 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Description

  • Moved moderation request search to new infra.
  • Add sort functionality.

How To Test?

Make a curl request to the GET /moderationrequest endpoint and ensure only relevant results are found.

curl -X 'GET' \
  'http://localhost:8080/resource/api/moderationrequest?page=0&page_entries=10&sort=name%2Cdesc&type=RELEASE&luceneSearch=true' \
  -H 'accept: application/vnd.hal+json' \
  -H 'Authorization: Basic abc'

Checklist

Must:

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

Signed-off-by: Dearsh Oberoi <oberoidearsh@gmail.com>
@deo002
deo002 force-pushed the feat/search/mr branch 2 times, most recently from 27ca05f to 333d764 Compare August 6, 2026 09:03
@deo002
deo002 requested a review from GMishx August 6, 2026 10:22
Signed-off-by: Dearsh Oberoi <oberoidearsh@gmail.com>

@GMishx GMishx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes looks good.

1. Fix the pagination for the `/obligations` endpoint. Now all kind of
  search return paginated data.
2. Use moderation state as "open", "closed" or "all" to match `/byState`
  endpoint behaviour.
3. Document the `requestDate` parameter usage.
4. Remove unused functions from the moderation.thrift and
  Sw360ModerationRequestService.java

Signed-off-by: Gaurav Mishra <mishra.gaurav@siemens.com>

@GMishx GMishx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested, working as expected.

@GMishx
GMishx merged commit 036114c into eclipse-sw360:feat/search/rework Aug 6, 2026
3 checks passed
@GMishx
GMishx deleted the feat/search/mr branch August 6, 2026 13:35
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.

2 participants