Auto-tracking state is not saved when editing a project
Bug #1449241 reported by
Caio Begotti
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Capomastro |
Fix Released
|
Medium
|
Caio Begotti |
Bug Description
Just noticed when you check auto-tracking at the project edit view its state is not really saved? I mean, it's probably saved but it's not restored when you leave then come back to the edit view (it's now wrongly unchecked). I'm not sure yet if it's just an UI problem if its value is not being passed on, which may cause problems with the builds IDs counts, which I'll report in another bug.
Bonus: have a better description of the checkbox in the UI
Related branches
lp:~caio1982/capomastro/autotracking-1449241
- Daniel Manrique (community): Approve
-
Diff: 406 lines (+144/-55)5 files modifiedprojects/forms.py (+1/-1)
projects/models.py (+1/-1)
projects/templates/projects/project_detail.html (+1/-1)
projects/tests/test_views.py (+127/-52)
projects/views.py (+14/-0)
description: | updated |
Changed in capomastro: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Caio Begotti (caio1982) |
Changed in capomastro: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
OK, I confirmed this. To reproduce:
- Create a project. Select any set of dependencies, check "auto track" and create it.
- In the project detail page, confirm that the "auto-track" column says "yes" for your selected deps.
- Click "Edit project". Notice the auto-track checkbox is unchecked.
- Edit something unrelated like the description. Leave "auto-track" alone. Click Submit.
Expected result
- In the project detail page, the dependencies' auto-track column says "yes"
Actual result
- In the project detail page, the dependencies' auto-track column says "No"