mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-08 03:10:26 +00:00
23 lines
1.2 KiB
Text
23 lines
1.2 KiB
Text
digraph SWEBench {
|
|
graph [goal="Add check to ensure max_length fits longest choice.
|
|
Description
|
|
|
|
There is currently no check to ensure that Field.max_length is large enough to fit the longest value in Field.choices.
|
|
This would be very helpful as often this mistake is not noticed until an attempt is made to save a record with those values that are too long.
|
|
"]
|
|
rankdir=LR
|
|
|
|
start [shape=Mdiamond]
|
|
exit [shape=Msquare]
|
|
|
|
setup [label="Setup", shape=parallelogram, script="git clone https://github.com/django/django.git . && git checkout fee75d2aed4e58ada6567c464cfd22e89dc65f4a && python -m pip install -e ."]
|
|
solve [label="Solve", prompt="Fix this GitHub issue in the repository. Make the minimal code change needed.\n\nAdd check to ensure max_length fits longest choice.
|
|
Description
|
|
|
|
There is currently no check to ensure that Field.max_length is large enough to fit the longest value in Field.choices.
|
|
This would be very helpful as often this mistake is not noticed until an attempt is made to save a record with those values that are too long.
|
|
"]
|
|
extract_patch [label="Extract Patch", shape=parallelogram, script="git diff"]
|
|
|
|
start -> setup -> solve -> extract_patch -> exit
|
|
}
|