AllDotPy / AllDotPy/Ryx

feat: add optional validation to Model.save()

Open Beginner friendly
#47 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue validators
Dominant language
Rust
Stars
13
Forks
5
Avg merge
1h 49m
Merged PRs (30d)
3

Description

Currently, full_clean() must be called manually before save() to validate field constraints.

Goal: Add a validate: bool = False parameter to Model.save(). If True, it should trigger full_clean() before proceeding with the database write.

Implementation hint: Modify ryx/models.py's save method.

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

Open ryx/models.py and read the Model.save method first, including how it performs the database write and relates to full_clean(). Add the optional validation behavior described in the issue, then verify that save() remains unchanged by default and validates before writing when enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
database
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.