Migrate to using avatar services everywhere
Review Request #7810 — Created Dec. 15, 2015 and submitted
Review Board now uses avatar services everywhere that gravatars were
previously used.The admin panel has been updated to reflect this chnage. There is no
longer a setting for gravatars, specfically. Instead, there is now an
entire page of avatar service configuration.
Ran unit tests.
Performed the following manual testing:
- Verified enabling/disabling avatars entirely worked correctly.
- Verified the avatar services admin form saves correctly.
- Viewd the search page and datagrids to verify that avatars render
correctly.
Description | From | Last Updated |
---|---|---|
So my major complaint about this change is this UI. I think it's kind of confusing that there are a … |
david | |
'six' imported but unused |
reviewbot | |
Col: 80 E501 line too long (80 > 79 characters) |
reviewbot | |
Hmmm. We'll have to figure out how this interacts with $.retinaGravatar, which expects the .gravatar class. Perhaps we can add … |
david | |
break? |
david | |
typo: resoltuion |
misery | |
typo: emptyu |
misery | |
It would be nicer if we did the fallback for urls in the assignment: var urls = this.get('avatarURLs') || {}; … |
david |
- Change Summary:
-
PEP8
- Diff:
-
Revision 2 (+264 -101)
-
Tool: Pyflakes Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/admin/urls.py reviewboard/search/views.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/search/_user.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/templates/base/_mobile_navbar.html reviewboard/templates/admin/widgets/w-actions.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/static/rb/css/pages/reviews.less Tool: PEP8 Style Checker Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/admin/urls.py reviewboard/search/views.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/search/_user.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/templates/base/_mobile_navbar.html reviewboard/templates/admin/widgets/w-actions.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/static/rb/css/pages/reviews.less
- Change Summary:
-
.container -> .avatar-container
add screenshots
- Diff:
-
Revision 3 (+264 -101)
- Added Files:
-
Tool: Pyflakes Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/admin/urls.py reviewboard/search/views.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/search/_user.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/templates/base/_mobile_navbar.html reviewboard/templates/admin/widgets/w-actions.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/static/rb/css/pages/reviews.less Tool: PEP8 Style Checker Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/admin/urls.py reviewboard/search/views.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/search/_user.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/templates/base/_mobile_navbar.html reviewboard/templates/admin/widgets/w-actions.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/static/rb/css/pages/reviews.less
- Change Summary:
-
Addressed issues. Rebased off djblets change and changes to 7809.
- Diff:
-
Revision 4 (+374 -123)
-
Tool: Pyflakes Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/admin/urls.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/avatars/registry.py reviewboard/search/views.py reviewboard/avatars/templatetags/avatars.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/search/_user.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/base.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/admin/widgets/w-actions.html reviewboard/templates/base/_mobile_navbar.html reviewboard/static/rb/js/common.js reviewboard/static/rb/js/models/userSessionModel.js Tool: PEP8 Style Checker Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/admin/urls.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/avatars/registry.py reviewboard/search/views.py reviewboard/avatars/templatetags/avatars.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/search/_user.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/base.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/admin/widgets/w-actions.html reviewboard/templates/base/_mobile_navbar.html reviewboard/static/rb/js/common.js reviewboard/static/rb/js/models/userSessionModel.js
-
Tool: Pyflakes Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/admin/urls.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/avatars/registry.py reviewboard/search/views.py reviewboard/avatars/templatetags/avatars.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/search/_user.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/base.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/admin/widgets/w-actions.html reviewboard/templates/base/_mobile_navbar.html reviewboard/static/rb/js/common.js reviewboard/static/rb/js/models/userSessionModel.js Tool: PEP8 Style Checker Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/admin/urls.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/avatars/registry.py reviewboard/search/views.py reviewboard/avatars/templatetags/avatars.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/search/_user.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/base.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/admin/widgets/w-actions.html reviewboard/templates/base/_mobile_navbar.html reviewboard/static/rb/js/common.js reviewboard/static/rb/js/models/userSessionModel.js
-
Tool: Pyflakes Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/admin/urls.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/avatars/registry.py reviewboard/search/views.py reviewboard/avatars/templatetags/avatars.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/js/tests.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/base.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/search/_user.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/admin/widgets/w-actions.html reviewboard/templates/base/_mobile_navbar.html reviewboard/static/rb/js/common.js reviewboard/static/rb/js/models/userSessionModel.js Tool: PEP8 Style Checker Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/admin/urls.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/avatars/registry.py reviewboard/search/views.py reviewboard/avatars/templatetags/avatars.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/js/tests.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/base.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/search/_user.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/admin/widgets/w-actions.html reviewboard/templates/base/_mobile_navbar.html reviewboard/static/rb/js/common.js reviewboard/static/rb/js/models/userSessionModel.js
-
-
So my major complaint about this change is this UI.
I think it's kind of confusing that there are a bunch of "enabled avatar services" and then a separate drop-down for the "default avatar service". It's not at all clear what the two different pieces of UI will do.
AFAICT, only the default avatar service will actually be used? In that case, why do we expose the enabled list at all?
-
It would be nicer if we did the fallback for
urls
in the assignment:var urls = this.get('avatarURLs') || {}; return urls.size || {};
-
Tool: Pyflakes Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/admin/urls.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/avatars/registry.py reviewboard/search/views.py reviewboard/avatars/templatetags/avatars.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/js/tests.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/base.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/search/_user.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/admin/widgets/w-actions.html reviewboard/templates/base/_mobile_navbar.html reviewboard/static/rb/js/common.js reviewboard/static/rb/js/models/userSessionModel.js Tool: PEP8 Style Checker Processed Files: reviewboard/admin/forms.py reviewboard/datagrids/columns.py reviewboard/admin/urls.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/avatars/registry.py reviewboard/search/views.py reviewboard/avatars/templatetags/avatars.py reviewboard/webapi/resources/user.py Ignored Files: reviewboard/templates/js/tests.html reviewboard/templates/reviews/boxes/review.html reviewboard/templates/base.html reviewboard/templates/accounts/user_infobox.html reviewboard/templates/base/_nav_support_menu.html reviewboard/templates/reviews/boxes/change.html reviewboard/templates/search/_user.html reviewboard/templates/reviews/review_reply.html reviewboard/templates/admin/avatar_settings.html reviewboard/templates/reviews/review_issue_summary_table.html reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/datagrids/sidebar_user_info.html reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/admin/widgets/w-actions.html reviewboard/templates/base/_mobile_navbar.html reviewboard/static/rb/js/common.js reviewboard/static/rb/js/models/userSessionModel.js