[WIP] Checklist Extension
Review Request #4131 — Created May 9, 2013 and discarded
First iteration of Checklist extension Milestone: Checklist on own page, can add/delete items and check items off Changes persist in database Includes: Extension configuration files Django models Backbone models/views Remaining work: Currently hardcoded to request ChecklistInstance with id=1. Need to figure out how to create or retrieve a ChecklistInstance associated with the current Review(Draft)? in progress.
Currently need to hardcode first Checklist / ChecklistInstance in, with the JSON = [] (empty list) Went to home page, extension page: checklist does not appear Go to a review request: checklist appears. Should be visible on all review views. Add items by filling in textfield and hitting enter Update items by double-clicking their text, editing the text, and hitting enter Delete item same way as updating, but set text to be empty Check and uncheck items Refresh or leave the review, then come back and confirm changes persist. Drag the dialog around. Scroll the page. Dialog should stay in place. Attached a screenshot and opened it. Checklist is still visible.
Description | From | Last Updated |
---|---|---|
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 35 W291 trailing whitespace |
reviewbot | |
Col: 13 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 42 W291 trailing whitespace |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 42 W291 trailing whitespace |
reviewbot | |
Col: 80 E501 line too long (100 > 79 characters) |
reviewbot | |
Col: 101 W292 no newline at end of file |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 17 E251 no spaces around keyword / parameter equals |
reviewbot | |
Col: 19 E251 no spaces around keyword / parameter equals |
reviewbot | |
Col: 1 W293 blank line contains whitespace |
reviewbot | |
Col: 67 W292 no newline at end of file |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 11 W292 no newline at end of file |
reviewbot | |
Col: 2 W292 no newline at end of file |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 5 W191 indentation contains tabs |
reviewbot | |
Col: 5 E101 indentation contains mixed spaces and tabs |
reviewbot | |
Col: 2 W292 no newline at end of file |
reviewbot | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 35 W291 trailing whitespace |
reviewbot | |
Col: 13 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 42 W291 trailing whitespace |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 42 W291 trailing whitespace |
reviewbot | |
Col: 80 E501 line too long (100 > 79 characters) |
reviewbot | |
Col: 101 W292 no newline at end of file |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 17 E251 no spaces around keyword / parameter equals |
reviewbot | |
Col: 19 E251 no spaces around keyword / parameter equals |
reviewbot | |
Col: 1 W293 blank line contains whitespace |
reviewbot | |
Col: 67 W292 no newline at end of file |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 11 W292 no newline at end of file |
reviewbot | |
Col: 2 W292 no newline at end of file |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 5 W191 indentation contains tabs |
reviewbot | |
Col: 5 E101 indentation contains mixed spaces and tabs |
reviewbot | |
Col: 2 W292 no newline at end of file |
reviewbot | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 35 W291 trailing whitespace |
reviewbot | |
Col: 13 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 42 W291 trailing whitespace |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 42 W291 trailing whitespace |
reviewbot | |
Col: 80 E501 line too long (100 > 79 characters) |
reviewbot | |
Col: 101 W292 no newline at end of file |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 17 E251 no spaces around keyword / parameter equals |
reviewbot | |
Col: 19 E251 no spaces around keyword / parameter equals |
reviewbot | |
Col: 1 W293 blank line contains whitespace |
reviewbot | |
Col: 67 W292 no newline at end of file |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 11 W292 no newline at end of file |
reviewbot | |
Col: 2 W292 no newline at end of file |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 5 W191 indentation contains tabs |
reviewbot | |
Col: 5 E101 indentation contains mixed spaces and tabs |
reviewbot | |
Col: 13 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
4 spaces here. |
mike_conley | |
Col: 80 E501 line too long (85 > 79 characters) |
reviewbot | |
Break this up at the second comma. |
mike_conley | |
Why the massive indents? 4 spaces should be enough (or maybe we do 2 for CSS? I don't remember...look through … |
mike_conley | |
What's with the hardcoded ID? |
mike_conley | |
Lowercase "f" in fixed. |
mike_conley | |
var before pk |
mike_conley | |
var before items and max. Semicolon after max = 0. |
mike_conley | |
Spaces on either side of the = and < |
mike_conley | |
Spaces on either side of the + |
mike_conley | |
Spaces on either side of =, < |
mike_conley | |
var items |
mike_conley | |
Space on either side of = and < |
mike_conley | |
var item |
mike_conley | |
Not sure if one-liners are desired... might as well put these in curly braces, like this: if (e.keyCode == 13) … |
mike_conley | |
This comment doesn't make a whole lot of sense... |
mike_conley | |
Switch these two for alphabetical order. |
mike_conley | |
Switch these two lines. |
mike_conley | |
Put the imports in alphabetical order - so webapi_check_local_site before webapi_check_login_required. |
mike_conley | |
This should be with the rest of the djblets.webapi imports. |
mike_conley | |
Col: 17 E251 no spaces around keyword / parameter equals |
reviewbot | |
Col: 19 E251 no spaces around keyword / parameter equals |
reviewbot | |
All of this dead code should be removed. |
mike_conley | |
What's eventually going to go here? What kind of configuration will be necessary? |
mike_conley | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 13 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 13 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 35 W291 trailing whitespace |
reviewbot | |
Col: 48 W291 trailing whitespace |
reviewbot | |
Col: 1 E303 too many blank lines (3) |
reviewbot | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 13 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 13 E126 continuation line over-indented for hanging indent |
reviewbot | |
Just curious - why are we making the client responsible for setting the IDs? That sounds like something the database … |
mike_conley | |
I think we try to avoid one-liners, so like: if (e.keyCode != 13 || !this.input.val()) { return; } |
mike_conley | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 7 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 13 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 7 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 13 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 13 E126 continuation line over-indented for hanging indent |
reviewbot |
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: rbchecklist/rbchecklist/admin_urls.py rbchecklist/rbchecklist/models.py rbchecklist/rbchecklist/extension.py rbchecklist/setup.py rbchecklist/rbchecklist/resources.py rbchecklist/rbchecklist/templatetags/checklisttags.py rbchecklist/rbchecklist/urls.py rbchecklist/rbchecklist/views.py Ignored Files: rbchecklist/rbchecklist/htdocs/js/views/checklistInstanceView.js rbchecklist/rbchecklist/htdocs/js/views/checklistItemView.js rbchecklist/rbchecklist/htdocs/js/models/checklistItemModel.js rbchecklist/rbchecklist/templates/rbchecklist/configure.html rbchecklist/rbchecklist/templates/rbchecklist/scripts.html rbchecklist/rbchecklist/templates/rbchecklist/base.html rbchecklist/rbchecklist/htdocs/js/checklists.js rbchecklist/rbchecklist/htdocs/js/models/checklistInstanceModel.js rbchecklist/rbchecklist/templates/rbchecklist/checklist.html
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: rbchecklist/rbchecklist/models.py rbchecklist/rbchecklist/admin_urls.py rbchecklist/rbchecklist/extension.py rbchecklist/setup.py rbchecklist/rbchecklist/resources.py rbchecklist/rbchecklist/templatetags/checklisttags.py rbchecklist/rbchecklist/urls.py rbchecklist/rbchecklist/views.py Ignored Files: rbchecklist/rbchecklist/htdocs/js/views/checklistItemView.js rbchecklist/rbchecklist/htdocs/js/views/checklistInstanceView.js rbchecklist/rbchecklist/htdocs/js/models/checklistItemModel.js rbchecklist/rbchecklist/templates/rbchecklist/configure.html rbchecklist/rbchecklist/templates/rbchecklist/scripts.html rbchecklist/rbchecklist/templates/rbchecklist/base.html rbchecklist/rbchecklist/htdocs/js/checklists.js rbchecklist/rbchecklist/htdocs/js/models/checklistInstanceModel.js rbchecklist/rbchecklist/templates/rbchecklist/checklist.html
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Summary:
-
Checklist on own page (First pass)[WIP] This is now used to stage for style checks >.>
- Groups:
-
- People:
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: rbchecklist/rbchecklist/admin_urls.py rbchecklist/rbchecklist/models.py rbchecklist/rbchecklist/extension.py rbchecklist/setup.py rbchecklist/rbchecklist/resources.py rbchecklist/rbchecklist/templatetags/checklisttags.py rbchecklist/rbchecklist/urls.py rbchecklist/rbchecklist/views.py Ignored Files: rbchecklist/rbchecklist/htdocs/js/views/checklistItemView.js rbchecklist/rbchecklist/htdocs/js/views/checklistInstanceView.js rbchecklist/rbchecklist/htdocs/js/models/checklistItemModel.js rbchecklist/rbchecklist/templates/rbchecklist/configure.html rbchecklist/rbchecklist/htdocs/css/checklists.css rbchecklist/rbchecklist/htdocs/js/checklists.js rbchecklist/rbchecklist/htdocs/js/models/checklistInstanceModel.js
-
-
-
-
-
-
-
- Groups:
-
Hey Felix, This looks pretty good. Please address these issues, along with the ones ReviewBot picked up (or drop the ones that don't make sense, along with an explanation on why you dropped it). You also need to fill in the "Testing Done" field of this review request. Tell us what scenarios you've tested. I've also not tried the extension, but I've seen the video...is the checklist available while viewing diffs, screenshots and other binary files? -Mike
-
-
-
Why the massive indents? 4 spaces should be enough (or maybe we do 2 for CSS? I don't remember...look through some of our Review Board CSS for the correct format).
-
-
-
-
-
-
-
-
-
-
-
-
-
Not sure if one-liners are desired... might as well put these in curly braces, like this: if (e.keyCode == 13) { this.close(); }
-
-
These two lines of documentation aren't really clear... should this be: Checklist items for this template are stored as a JSON string in the following format:
-
-
-
Put the imports in alphabetical order - so webapi_check_local_site before webapi_check_login_required.
-
-
-
- Change Summary:
-
Updated description / testing
- Description:
-
First iteration of Checklist extension
Milestone: Checklist on own page, can add/delete items and check items off
Changes persist in database Includes:
Extension configuration files
Django models Backbone models/views + + Remaining work:
+ + Currently hardcoded to request ChecklistInstance with id=1. Need to figure out how to create or retrieve a ChecklistInstance associated with the current Review(Draft)? in progress.
- Testing Done:
-
+ Currently need to hardcode first Checklist / ChecklistInstance in, with the JSON = [] (empty list)
+ + Went to home page, extension page: checklist does not appear
+ Go to a review request: checklist appears. Should be visible on all review views. + Add items by filling in textfield and hitting enter + Update items by double-clicking their text, editing the text, and hitting enter + Delete item same way as updating, but set text to be empty + Check and uncheck items + Refresh or leave the review, then come back and confirm changes persist. + Drag the dialog around. Scroll the page. Dialog should stay in place. + Attached a screenshot and opened it. Checklist is still visible.
- Change Summary:
-
Changes in response to m_conley's review
- Diff:
-
Revision 5 (+465)
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: rbchecklist/rbchecklist/models.py rbchecklist/setup.py rbchecklist/rbchecklist/extension.py rbchecklist/rbchecklist/urls.py rbchecklist/rbchecklist/resources.py Ignored Files: rbchecklist/rbchecklist/htdocs/js/views/checklistInstanceView.js rbchecklist/rbchecklist/htdocs/js/views/checklistItemView.js rbchecklist/rbchecklist/htdocs/js/models/checklistItemModel.js rbchecklist/rbchecklist/htdocs/js/checklists.js rbchecklist/rbchecklist/htdocs/css/checklists.css rbchecklist/rbchecklist/htdocs/js/models/checklistInstanceModel.js rbchecklist/rbchecklist/templates/rbchecklist/checklist_scripts.html
-
-
-
-
-
-
- Change Summary:
-
PEP style fixes
- Diff:
-
Revision 6 (+462)
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: rbchecklist/rbchecklist/models.py rbchecklist/setup.py rbchecklist/rbchecklist/extension.py rbchecklist/rbchecklist/urls.py rbchecklist/rbchecklist/resources.py Ignored Files: rbchecklist/rbchecklist/htdocs/js/views/checklistInstanceView.js rbchecklist/rbchecklist/htdocs/js/views/checklistItemView.js rbchecklist/rbchecklist/htdocs/js/models/checklistItemModel.js rbchecklist/rbchecklist/htdocs/js/checklists.js rbchecklist/rbchecklist/htdocs/css/checklists.css rbchecklist/rbchecklist/htdocs/js/models/checklistInstanceModel.js rbchecklist/rbchecklist/templates/rbchecklist/checklist_scripts.html
-
-
-
- Change Summary:
-
Fixed the one-liner that m_conley pointed out.
- Diff:
-
Revision 7 (+462)
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: rbchecklist/rbchecklist/models.py rbchecklist/setup.py rbchecklist/rbchecklist/extension.py rbchecklist/rbchecklist/urls.py rbchecklist/rbchecklist/resources.py Ignored Files: rbchecklist/rbchecklist/htdocs/js/views/checklistInstanceView.js rbchecklist/rbchecklist/htdocs/js/views/checklistItemView.js rbchecklist/rbchecklist/htdocs/js/models/checklistItemModel.js rbchecklist/rbchecklist/htdocs/js/checklists.js rbchecklist/rbchecklist/htdocs/css/checklists.css rbchecklist/rbchecklist/htdocs/js/models/checklistInstanceModel.js rbchecklist/rbchecklist/templates/rbchecklist/checklist_scripts.html
-
-
-
- Change Summary:
-
Rewrote checklistInstanceModel to cache the maxIndex
- Diff:
-
Revision 8 (+473)
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: rbchecklist/rbchecklist/models.py rbchecklist/setup.py rbchecklist/rbchecklist/extension.py rbchecklist/rbchecklist/urls.py rbchecklist/rbchecklist/resources.py Ignored Files: rbchecklist/rbchecklist/htdocs/js/views/checklistInstanceView.js rbchecklist/rbchecklist/htdocs/js/views/checklistItemView.js rbchecklist/rbchecklist/htdocs/js/models/checklistItemModel.js rbchecklist/rbchecklist/htdocs/js/checklists.js rbchecklist/rbchecklist/htdocs/css/checklists.css rbchecklist/rbchecklist/htdocs/js/models/checklistInstanceModel.js rbchecklist/rbchecklist/templates/rbchecklist/checklist_scripts.html
-
-
-