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 11 and 12
Commits
Files
reviewboard/static/rb/js/common/resources/models/apiTokenModel.ts |
---|
reviewboard/static/rb/js/common/resources/models/reviewModel.ts |
---|
reviewboard/static/rb/js/common/views/pageView.ts |
---|
reviewboard/static/rb/js/common/views/tests/index.ts |
---|
reviewboard/static/rb/js/common/views/tests/pageViewTests.ts |
---|
reviewboard/static/rb/js/pages/models/pageManagerModel.es6.js |
---|
reviewboard/static/rb/js/common/models/tests/pageManagerModelTests.ts |
---|
reviewboard/static/rb/js/resources/models/apiTokenModel.es6.js |
---|
reviewboard/static/rb/js/reviewRequestPage/views/reviewReplyDraftBannerView.ts |
---|
reviewboard/static/rb/js/reviewRequestPage/views/tests/reviewRequestPageViewTests.es6.js |
---|
reviewboard/static/rb/js/reviews/models/reviewRequestEditorModel.ts |
---|
reviewboard/static/rb/js/reviews/models/unifiedBannerModel.ts |
---|
reviewboard/static/rb/js/reviews/views/abstractReviewableView.ts |
---|
reviewboard/static/rb/js/reviews/views/commentDialogView.ts |
---|
reviewboard/static/rb/js/reviews/views/diffCommentsHintView.ts |
---|
reviewboard/static/rb/js/reviews/views/diffFileIndexView.ts |
---|
reviewboard/static/rb/js/reviews/views/diffReviewableView.ts |
---|
reviewboard/static/rb/js/reviews/views/diffViewerPageView.ts |
---|
reviewboard/static/rb/js/reviews/views/fileAttachmentThumbnailView.ts |
---|
reviewboard/static/rb/js/reviews/views/imageReviewableView.ts |
---|