Added backend work for the archive profile setting
Review Request #14003 — Created June 28, 2024 and updated — Latest diff uploaded
Began backend implementation for a profile setting that will determine whether
to automatically archive a review request when posted.
This included adding apublish_and_archive
BooleanField
to the
AccountSettingsForm
inreviewboard/accounts/pages.py
, which is initially set
to False.publish_and_archive
was also added to theProfile
in
reviewboard/accounts/models.py
. Lastly, publish_and_archive was also added to
reviewboard/accounts/accounts.py
in thejs_user_session_info()
function.
A series of tests were also implmeneted to ensure that the
AccountSettingsForm
was initialized, loaded, and saved properly and that it correctly identified
invalid inputs. These tests were added to
reviewboard/accounts/test/test_account_settings_form.py
.All previous passing pytests still passed.
Changes between revision 4 and 5
Commits
Files
package-lock.json |
---|
docs/releasenotes/7.0.1.rst |
---|
docs/releasenotes/index.rst |
---|
reviewboard/dependencies.py |
---|
reviewboard/staticbundles.py |
---|
reviewboard/accounts/models.py |
---|
reviewboard/accounts/forms/pages.py |
---|
reviewboard/accounts/tests/test_account_settings_form.py |
---|
reviewboard/accounts/tests/test_template_tags.py |
---|
reviewboard/diffviewer/templatetags/difftags.py |
---|
reviewboard/site/models.py |
---|
reviewboard/static/rb/css/ui/forms.less |
---|
reviewboard/static/rb/css/ui/page-topbar.less |
---|
reviewboard/static/rb/js/accountPrefsPage/views/apiTokensView.es6.js |
---|
reviewboard/static/rb/js/common/resources/index.ts |
---|
reviewboard/static/rb/js/common/resources/models/baseResourceModel.ts |
---|
reviewboard/static/rb/js/common/resources/models/defaultReviewerModel.ts |
---|
reviewboard/static/rb/js/common/resources/models/repositoryModel.ts |
---|
reviewboard/static/rb/js/common/resources/models/reviewRequestModel.ts |
---|
reviewboard/static/rb/js/common/resources/models/tests/index.ts |
---|
reviewboard/static/rb/js/resources/models/defaultReviewerModel.es6.js |
---|
reviewboard/static/rb/js/resources/models/repositoryModel.es6.js |
---|
reviewboard/static/rb/js/common/resources/models/reviewGroupModel.ts |
---|
reviewboard/static/rb/js/common/resources/models/tests/defaultReviewerModelTests.ts |
---|
reviewboard/static/rb/js/common/resources/models/tests/reviewGroupModelTests.ts |
---|
reviewboard/static/rb/js/reviews/models/regionCommentBlockModel.ts |
---|
reviewboard/static/rb/js/reviews/models/reviewablePageModel.ts |
---|
reviewboard/static/rb/js/reviews/views/abstractCommentBlockView.ts |
---|
reviewboard/static/rb/js/reviews/views/regionCommentBlockView.ts |
---|
reviewboard/templates/admin/delete_confirmation.html |
---|