Fix quote types throughout Review Board.

Review Request #14608 — Created Sept. 11, 2025 and updated

Information

Review Board
master

Reviewers

This change fixes up all the places where we have incorrect quote types
in the entire codebase.

Ran unit tests.

Summary ID
Fix quote types throughout Review Board.
This change fixes up all the places where we have incorrect quote types in the entire codebase. Testing Done: Ran unit tests.
qrlomospuluzrvuusyxwqnmqznpusrot
Description From Last Updated

expected 2 blank lines after class or function definition, found 1 Column: 1 Error code: E305

reviewbotreviewbot

The mixing of string types is pretty error-prone. I think for a given multi-line string, we should only use one …

chipx86chipx86

While here, we should prefix with r.

chipx86chipx86

Same note here.

chipx86chipx86

Same note here.

chipx86chipx86

Same note here.

chipx86chipx86

Same note here.

chipx86chipx86

Same note here.

chipx86chipx86

Same note here and the other strings below.

chipx86chipx86

Same note here and the other strings below.

chipx86chipx86

Same note here.

chipx86chipx86

Same note here.

chipx86chipx86

Let's revert the backported haystack backends. It's not our code, they're forks of backends in the tree with fixes. We …

chipx86chipx86

Same note about consistent quotes within one string. Here and below.

chipx86chipx86
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

david
david
Review request changed
Commits:
Summary ID
Fix quote types throughout Review Board.
This change fixes up all the places where we have incorrect quote types in the entire codebase. Testing Done: Ran unit tests.
qrlomospuluzrvuusyxwqnmqznpusrot
Fix quote types throughout Review Board.
This change fixes up all the places where we have incorrect quote types in the entire codebase. Testing Done: Ran unit tests.
qrlomospuluzrvuusyxwqnmqznpusrot

Checks run (2 succeeded)

flake8 passed.
JSHint passed.
chipx86
  1. Overall looks good, and I'm surprised we had so many inconsistent quotes!

    I have two main things here, and I point out the important occurrences.

    1. Mixing quote types within one wrapped string makes editing hard as escaped content wraps. We should be consistent within a string, even if we have to escape.
    2. We have third-party forks in here that should be left upstream as much as possible. We should limit this work to our own code.
  2. reviewboard/admin/forms/email_settings.py (Diff revision 3)
     
     
     
     
     
     
    Show all issues

    The mixing of string types is pretty error-prone. I think for a given multi-line string, we should only use one type. Otherwise editing becomes more of a chore as we re-wrap strings and have to re-escape/re-quote.

  3. reviewboard/admin/siteconfig.py (Diff revision 3)
     
     
    Show all issues

    While here, we should prefix with r.

  4. reviewboard/cmdline/rbsite.py (Diff revision 3)
     
     
     
    Show all issues

    Same note here.

  5. reviewboard/cmdline/rbsite.py (Diff revision 3)
     
     
     
     
     
    Show all issues

    Same note here.

  6. reviewboard/cmdline/rbsite.py (Diff revision 3)
     
     
     
     
     
    Show all issues

    Same note here.

  7. reviewboard/cmdline/tests/test_rbsite.py (Diff revision 3)
     
     
     
     
    Show all issues

    Same note here.

  8. reviewboard/datagrids/columns.py (Diff revision 3)
     
     
     
     
     
     
     
     
     
    Show all issues

    Same note here.

  9. reviewboard/diffviewer/tests/test_diffutils.py (Diff revision 3)
     
     
     
     
     
    Show all issues

    Same note here and the other strings below.

  10. reviewboard/diffviewer/tests/test_diffx_parser.py (Diff revision 3)
     
     
     
     
     
     
    Show all issues

    Same note here and the other strings below.

  11. Show all issues

    Same note here.

  12. Show all issues

    Same note here.

  13. Show all issues

    Let's revert the backported haystack backends. It's not our code, they're forks of backends in the tree with fixes. We should keep them as similar as possible so the backported changes don't get lost in a sea of other changes.

  14. reviewboard/webapi/resources/review_request.py (Diff revision 3)
     
     
     
     
    Show all issues

    Same note about consistent quotes within one string. Here and below.

  15.