Support providing a default value when adding a field to an existing model

Open
#483 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
43/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli, database

Research direction

Start by locating the cot-cli code that adds a field to an existing model; the issue does not name a file or test. Read how that flow gathers field options and how non-nullable fields are handled. Done means the CLI can offer a default value for a new field, including considering callable defaults, especially for non-nullable fields.

Written by the indexing model from the issue text.

Description

C-cli enhancement

cot-cli should probably ask the user if they want to specify a default value (or a callable perhaps?) to be used when adding a field to an existing model.

Especially important for non-nullable fields.

Dominant language
Rust
Stars
1.1k
Forks
57
Avg merge
17h 39m
Merged PRs (30d)
12

Getting set up

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.

More from cot-rs/cot

All issues in cot-rs/cot

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.