Refactor revision selectors for future file attachment support.
Review Request #6342 — Created Sept. 19, 2014 and submitted
This change refactors the
DiffRevisionSelectorView
control to abstract out
common functionality into a newRevisionSelectorView
abstract base class. This
is then inherited by the existingDiffRevisionSelectorView
and a new
FileAttachmentRevisionSelectorView
.
Tested the various behavior in the
DiffRevisionSelectorView
.
FileAttachmentRevisionSelectorView
is currently un-tested.
Description | From | Last Updated |
---|---|---|
Why aren't we using initialize? Might also be nice for future-expansion and consistency to have this take an options . |
chipx86 | |
We should also assert that options isn't undefined. |
chipx86 | |
I noticed the parameters are getting documented everywhere. How about having this take an options instead, so it's all self-documenting? |
chipx86 | |
Should optimistically be listed alphabetically. |
chipx86 |
- Commit:
-
7cf184f6825195bedc5b2997bca81a765a9e5411df43e22e3b7716ff5856f03e7ae53e9ab42976b9
- Diff:
-
Revision 2 (+310 -211)
-
Tool: Pyflakes Processed Files: reviewboard/staticbundles.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffRevisionLabelView.js reviewboard/static/rb/js/views/revisionSelectorView.js reviewboard/static/rb/js/diffviewer/views/diffCommentsHintView.js reviewboard/static/rb/js/diffviewer/views/diffRevisionSelectorView.js reviewboard/static/rb/js/views/fileAttachmentRevisionSelectorView.js reviewboard/static/rb/js/pages/views/diffViewerPageView.js Tool: PEP8 Style Checker Processed Files: reviewboard/staticbundles.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffRevisionLabelView.js reviewboard/static/rb/js/views/revisionSelectorView.js reviewboard/static/rb/js/diffviewer/views/diffCommentsHintView.js reviewboard/static/rb/js/diffviewer/views/diffRevisionSelectorView.js reviewboard/static/rb/js/views/fileAttachmentRevisionSelectorView.js reviewboard/static/rb/js/pages/views/diffViewerPageView.js