Skip to content

refactor: next-for-review api refactor with multiple parameters for filtering

Surya Manoj Pentakota requested to merge peer-review-support into develop

API Issue Template

Title (semantic)

refactor(api): Updated next-for-review to fetch the records based on parameter based filters.

Description

Get the next record(s) for review.

This endpoint can operate in two modes:

  1. Proofreading mode (proof_reading=True): identifies records that have pages (segments) that have not been proofread.
  2. Random mode (proof_reading=False): fetches records randomly with optional filters.

Filters:

  • Excludes user's own records.
  • Optional language and media type filtering.
  • Random selection from the available records.

image.png

Checklist

  • Code follows project API guidelines.
  • Tests for API endpoints are included and passing.
  • API documentation is updated (if applicable).
  • Performance considerations have been addressed.

Related Issue(s)

Closes #83 (closed)

Edited by Surya Manoj Pentakota

Merge request reports

Loading