Remove deprecated code from Review Board.
Review Request #12885 — Created March 14, 2023 and submitted
This change removes all RemovedInReviewBoard60 things from our codebase.
The only complicated part of this is that the mercurial diff parsers
were still using the oldget_orig_commit_id
method, so those have been
updated to set the data correctly on theParsedDiffChange
.This also makes one small fix to the filediff API resource to handle a
deprecation removal in Djblets.
Ran unit tests.
Summary | ID |
---|---|
525fa710400876f37a63e803e137a56aa7fefad0 |
Description | From | Last Updated |
---|---|---|
Can you verify if rbintegrations, Power Pack, and Review Bot tests pass? |
chipx86 | |
I think we need to add this here: * Made ``diff_settings`` mandatory. |
maubin | |
Same comment here and below about adding the * Made ``diff_settings`` mandatory. |
maubin | |
I think in Christian's review he mentioned that these should all be keyword only, and to add the decorator. |
maubin | |
line too long (82 > 79 characters) Column: 80 Error code: E501 |
reviewbot | |
While here, can you fix up the ordering of these imported classes? |
chipx86 | |
Given the "diff_settings will be required," and diff_settings being keyword-only, we can remove the None and callers will have to … |
chipx86 | |
This could also be removed once the above is changed. |
chipx86 | |
We don't explicitly state this (oops), but as the old argument is deprecated, we can remove enable_syntax_highlighting here and probably … |
chipx86 | |
The docs state that parsed_diff_change is mandatory in 6.0. Since this is a keyword argument, I propose: Making all arguments … |
chipx86 | |
While here and impacting keyword argument order, let's make all these keyword-only arguments and use the decorator to deprecate positional … |
chipx86 | |
This should also be removed. |
chipx86 | |
Since we're affecting keyword argument order now, let's make these keyword-only and add the decorator. |
chipx86 | |
Same comment re: keyword-only arguments and decorator. |
chipx86 | |
line too long (81 > 79 characters) Column: 80 Error code: E501 |
reviewbot | |
line too long (85 > 79 characters) Column: 80 Error code: E501 |
reviewbot |
- Commits:
-
Summary ID 9103a36a659ad8ab4717517fbaaee61bb7b945b0 0f3e44e78bbfe0e3d75828a7e4808fb880b00bbe - Diff:
-
Revision 2 (+140 -2364)
Checks run (2 succeeded)
- Summary:
-
Removed deprecated code from Review Board.Remove deprecated code from Review Board.
- Description:
-
This change removes all RemovedInReviewBoard60 things from our codebase.
The only complicated part of this is that the mercurial diff parsers were still using the old get_orig_commit_id
method, so those have beenupdated to set the data correctly on the ParsedDiffChange
.+ + This also makes one small fix to the filediff API resource to handle a
+ deprecation removal in Djblets. - Commits:
-
Summary ID 0f3e44e78bbfe0e3d75828a7e4808fb880b00bbe 8ddd63cc917721bd5c693b816097a5d7de1e275a - Diff:
-
Revision 3 (+142 -2366)
Checks run (2 succeeded)
-
The change as-is looks great.
Many of the changing function signatures should also be made keyword-only while we're changing them. I commented on the major locations. This could all be done separately from this change though.
-
-
-
Given the "diff_settings will be required," and
diff_settings
being keyword-only, we can remove theNone
and callers will have to provide it (will need a re-run of the test suite though). -
-
We don't explicitly state this (oops), but as the old argument is deprecated, we can remove
enable_syntax_highlighting
here and probably makediff_settings
mandatory. -
The docs state that
parsed_diff_change
is mandatory in 6.0. Since this is a keyword argument, I propose:- Making all arguments keyword-only, and documenting that.
- Use the
@deprecate_non_keyword_only_args
arguments. - Assert
parsed_diff_change
until 7.
That will also let us remove the conditional below.
-
While here and impacting keyword argument order, let's make all these keyword-only arguments and use the decorator to deprecate positional use.
As per docs,
diff_settings
is also now required, so we can remove theNone
. -
-
Since we're affecting keyword argument order now, let's make these keyword-only and add the decorator.
-
- Commits:
-
Summary ID 8ddd63cc917721bd5c693b816097a5d7de1e275a fccadb70734d3e6e1d94faa0ff3f554ab4ea6eac - Diff:
-
Revision 4 (+532 -2616)
- Commits:
-
Summary ID fccadb70734d3e6e1d94faa0ff3f554ab4ea6eac a94d1cec3e1a964552fcd5291bfae72daa58246c - Diff:
-
Revision 5 (+542 -2622)
Checks run (2 succeeded)
- Commits:
-
Summary ID a94d1cec3e1a964552fcd5291bfae72daa58246c 525fa710400876f37a63e803e137a56aa7fefad0 - Diff:
-
Revision 6 (+548 -2620)