REPOSITORY CODING · HARD
Keep validation and publication eligibility separate
Rejected submissions leak into the volume while malformed excluded submissions bypass validation. Validate every submission and correction before selecting accepted papers. Only accepted papers may consume page ranges or DOI uniqueness slots; rejected and withdrawn records must still satisfy the complete import contract.
Repository ImplementationConference proceedings editorial desk
Work through a real codebase.
Choose an environment, investigate the existing implementation and use the tests to check your change. Sign in to open a workspace; execution and Ono usage follow your plan’s allowances.
Task requirements and environments
Ruby on Rails · 75 minute session
- Produce a proceedings volume from accepted papers. Reject malformed input, duplicate paper ids and conflicting corrections even for papers excluded from publication. Withdrawn and rejected papers do not consume pages and do not participate in DOI uniqueness checks.
- Normalize DOI identifiers by trimming whitespace, removing one leading https://doi.org/ prefix without regard to case, and lowercasing the remaining identifier. Two accepted papers cannot share the same canonical DOI.
- Corrections are approved or unapproved deltas containing only title and/or authors. For each paper, apply all approved corrections in ascending revision order; identical redelivery is harmless. A title-only update must retain previously corrected authors. Unapproved and other-paper changes must not affect a paper.
- Sort accepted papers by id, then assign contiguous inclusive page ranges starting at one. A two-page paper occupies pages 1..2 and the next starts at 3. Include the normalized DOI, corrected title/authors and total page count. Empty volumes contain an empty papers array and zero pages.
- This is a Rails API application with controllers, routes, an ActiveRecord edition model and a SQLite migration. The /editions API saves reports and scopes retrieval/deletion to X-Tenant; this header is a local rehearsal identity, not production authentication.