openlibhums / openlibhums/janeway

Explore adding further constraints to Issue model

Open
#591 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dev-ready Metadata Priority low Size M
Dominant language
Python
Stars
238
Forks
97
Avg merge
9d 1h
Merged PRs (30d)
8

Description

The Issue model has no constraints on its attributes, which could lead to multiple issues with the same date, volume, and issue number combinations. The table primary key is the autogenerated id field from django.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Django Issue model and inspect its date, volume, and issue number fields, along with the existing migration and test setup. Confirm the intended uniqueness combination and verify that duplicate records are rejected while valid issues remain creatable.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.