Toggle for "Open an Issue"
Review Request #2828 — Created Jan. 28, 2012 and submitted
Problem: When opening a comment box, there is always a default to "Open an issue" ie that box is checked. Solution: Create an additional property that is configurable by the user to swap that default on or off. 1. Evolution to add property: open_an_issue 2. Modified all relevant files to allow it to be stored in the database. 3. Made open_an_issue reflect in the comment dialogue when changed in account settings.
The "My account" page saves the preference just fine. You can toggle it on and off, and it's reflected on the comment dialogue. Tested from off to on, on to off.
Description | From | Last Updated |
---|---|---|
What is the purpose of this evolution? I might be missing something, but it seems like this (and the DeleteField … |
AM ammok | |
Should the scope of the imports be narrowed to the specific objects that are being used? |
AM ammok | |
This line is over 80 characters long. |
AM ammok | |
Agreed. |
mike_conley | |
Just added the spacer? |
WI wilsonyeung | |
As discussed in Jim's bug, I think we want to use: issueField.checked = gOpenAnIssue; |
mike_conley | |
This doesn't look like part of your project... |
mike_conley | |
This doesn't look like part of your project... |
mike_conley | |
Not sure what I can do about it. |
WI wilsonyeung | |
This doesn't look like part of your project. |
mike_conley | |
This doesn't look like part of your project. |
mike_conley | |
This doesn't look like part of your project. |
mike_conley | |
This doesn't look like part of your project. |
mike_conley | |
This doesn't look like part of your project. |
mike_conley | |
This doesn't look like part of your project. |
mike_conley | |
Why is this in here? |
mike_conley | |
This doesn't look like part of your project. |
mike_conley | |
This evolution can be axed completely. |
mike_conley | |
We can get rid of these extra newlines. |
mike_conley | |
I need to find a way to change the initial state of the checkbox, not the final state as it … |
WI wilsonyeung | |
Tried: {% if gOpenAnIssue %} check="checked" {% endif %} |
WI wilsonyeung | |
Trailing white space and extra lines should be removed. |
ME medanat | |
Empty line should be removed. |
ME medanat | |
Maybe elaborate more in the label. "Default to opening an issue" isn't very intuitive. |
ME medanat | |
Remove space after "checked". ie: checked="checked"/> |
ME medanat | |
Hold on a second... I think I missed this my first pass through. What happens if we try editing a … |
mike_conley | |
I think we want these formatted like they were before, and your evolution, since it was last, should be at … |
mike_conley |
-
-
What is the purpose of this evolution? I might be missing something, but it seems like this (and the DeleteField below) can be removed from the final commit.
-
-
-
-
I feel like this would work better around page 1136 in the this.open callback. If you move it, I believe you can do away with the changes in comments_dlg.html.
-
While I do like documentation, I'm not entirely sure if this comment adds clarity. The extra 2 lines at the end seem out of place.
-
-
Hey Wilson, It looks close - but I think you need to untangle your project from a few other commits, because I think there are some things in this diff that don't belong. Let me know in the meeting today if you need assistance in sorting this out, and we can go over it after the meeting. -Mike
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Change Summary:
-
No real changes, just making sure my code is properly updated.
- Diff:
-
Revision 2 (+38 -3)
-
Just a few tips when posting review requests: * Always have a descriptive summary and description. I should be able to have a sense as to what this change is about from the dashboard, and have full clarity when reading the description. * View your diffs before publishing. If changes look tangled, get help first before posting. * If something changes with your code (say, you've untangled the commits), update the description.
- Change Summary:
-
Fixed: - open_an_issue works on the database - cleaned up some code Roadblock: - Can't seem to use open_an_issue data-field or effectively for that matter.
- Diff:
-
Revision 3 (+36 -3)
- Change Summary:
-
Modified the comment dialogue to change the check box.
- Description:
-
Problem: When opening a comment box, there is always a default to "Open an issue" ie that box is checked.
~ Solution: Create an additional property that is configurable by the user to swap that default on or off.
~ ~ My "roadblock": trying to figure a way to access the database so that I can access the variable that stores open_an_issue (boolean type)
~ ~ Solution: Create an additional property that is configurable by the user to swap that default on or off.
~ 1. Evolution to add property: open_an_issue ~ 2. Modified all relevant files to allow it to be stored in the database. ~ 3. Made open_an_issue reflect in the comment dialogue when changed in account settings. - - - Note: there are some changes in the files which I didn't make myself so I'm not sure why they were changed. ie I'm not sure what was modified in:
- 9. email.py - 10 datagrids.py - 12. w-actions.html - 14 review_detail.html - Testing Done:
-
~ The "My account" page saves the preference just fine. You can toggle it on and off, and it'll save when you re-open the page.
~ I haven't been able to connect that variable with the comment box yet. ~ The "My account" page saves the preference just fine.
~ You can toggle it on and off, and it's reflected on the comment dialogue. + Tested from off to on, on to off. - Diff:
-
Revision 4 (+24 -2)
- Bugs:
- Change Summary:
-
Addressed fixes mentioned in reviews.
- Diff:
-
Revision 5 (+23 -2)
-
Wilson: Hey - I think this patch has bitrotted - I can't apply and test it properly. I went through the code again for one final pass through, and I may have found a problem. Can you comment on the issue I've brought up? Thanks, -Mike
-
Hold on a second... I think I missed this my first pass through. What happens if we try editing a pre-existing comment that has an issue opened? If our user default is to not open an issue, will the comment's issue checkbot be overridden? If so, that's incorrect. We should persist the original comments issue opened state.
- Change Summary:
-
Fixed bug that didn't reflect changes after a comment dialogue had been saved previously.
- Diff:
-
Revision 6 (+27 -5)
- Diff:
-
Revision 7 (+27 -3)