Link to LocalSite user pages from LocalSite datagrids
Review Request #9855 — Created April 4, 2018 and submitted
A change a while back upgraded the UsernameColumn to use the new
link_func
functionality of Djblets datagrids. However, it regressed
the created URL to the absolute URL of the user (which always lives in
the global namespace) instead of the per-LocalSite URL when viewing a
datagrid on a LocalSite. This change fixes that issue.
Ran unit tests.
Viewed a datagrid on a LocalSite and saw the correct URL for the
username column.
Change Summary:
Unit tests!
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+32 -2) |
Checks run (1 failed, 1 succeeded)
flake8
failed.
JSHint
passed.
flake8
-
reviewboard/datagrids/tests.py (Diff revision 2) F401 'reviewboard.site.models.LocalSite' imported but unused
Change Summary:
Flake8
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+31 -2) |
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.