Closed
Bug 1347603
Opened 8 years ago
Closed 6 years ago
Implement a proper hook to filter diffset files, and fix tests
Categories
(MozReview Graveyard :: General, enhancement, P1)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: zalun, Assigned: zalun)
References
Details
Bug 1346321 is fixed as a hotfix with the DownloadRawHook defined in newly created `fixuphook` instead of the `hooks` module. It is due to recursive import. Our extensions module is indirectly importing the `parser` module. As the issue is severe hotfix has been developed.
This bug is to be sure a hook will be implemented in the right, more elegant way.
we'll also need to update the tests, as the commit-message file won't be exposed via dumpreview anymore (ie. there's no test to ensure it's created).
Depends on: 1346321
Summary: Implement a proper hook to filter diffset files → Implement a proper hook to filter diffset files, and fix tests
Assignee | ||
Comment 2•8 years ago
|
||
Tests updated, now it's time to place the hook in place.
Currently I've got such an error if DownloadRawHook is placed in reviewboard/extensions/hooks.py and removed the NoFilterDiffOpcodeGenerator:
rbweb> File "/version-control-tools/pylib/mozreview/mozreview/extension.py", line 14, in <module>
rbweb> from reviewboard.extensions.hooks import (AuthBackendHook,
rbweb> File "/venv/lib/python2.6/site-packages/ReviewBoard-2.5.4.moz-py2.6.egg/reviewboard/extensions/hooks.py", line 11, in <module>
rbweb> from reviewboard.accounts.backends import (register_auth_backend,
rbweb> File "/venv/lib/python2.6/site-packages/ReviewBoard-2.5.4.moz-py2.6.egg/reviewboard/accounts/backends.py", line 31, in <module>
rbweb> from reviewboard.accounts.models import LocalSiteProfile
rbweb> File "/venv/lib/python2.6/site-packages/ReviewBoard-2.5.4.moz-py2.6.egg/reviewboard/accounts/models.py", line 19, in <module>
rbweb> from reviewboard.reviews.models import Group, ReviewRequest
rbweb> File "/venv/lib/python2.6/site-packages/ReviewBoard-2.5.4.moz-py2.6.egg/reviewboard/reviews/models/__init__.py", line 4, in <module>
rbweb> from reviewboard.reviews.models.default_reviewer import DefaultReviewer
rbweb> File "/venv/lib/python2.6/site-packages/ReviewBoard-2.5.4.moz-py2.6.egg/reviewboard/reviews/models/default_reviewer.py", line 8, in <module>
rbweb> from reviewboard.reviews.managers import DefaultReviewerManager
rbweb> File "/venv/lib/python2.6/site-packages/ReviewBoard-2.5.4.moz-py2.6.egg/reviewboard/reviews/managers.py", line 13, in <module>
rbweb> from reviewboard.diffviewer.models import DiffSetHistory
rbweb> File "/venv/lib/python2.6/site-packages/ReviewBoard-2.5.4.moz-py2.6.egg/reviewboard/diffviewer/models.py", line 14, in <module>
rbweb> from reviewboard.diffviewer.managers import (RawFileDiffDataManager,
rbweb> File "/venv/lib/python2.6/site-packages/ReviewBoard-2.5.4.moz-py2.6.egg/reviewboard/diffviewer/managers.py", line 19, in <module>
rbweb> from reviewboard.scmtools.core import PRE_CREATION, UNKNOWN, FileNotFoundError
rbweb> File "/venv/lib/python2.6/site-packages/ReviewBoard-2.5.4.moz-py2.6.egg/reviewboard/scmtools/core.py", line 19, in <module>
rbweb> import reviewboard.diffviewer.parser as diffparser
rbweb> File "/venv/lib/python2.6/site-packages/ReviewBoard-2.5.4.moz-py2.6.egg/reviewboard/diffviewer/parser.py", line 10, in <module>
rbweb> from reviewboard.extensions.hooks import DownloadRawHook
rbweb> ImportError: cannot import name DownloadRawHook
Comment 3•6 years ago
|
||
MozReview is now obsolete. Please use Phabricator instead. Closing this bug.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•