• 
      

    Integrate archive/mute with the dashboard.

    Review Request #7287 — Created May 6, 2015 and submitted

    Information

    Review Board
    release-2.5.x
    768cdad...

    Reviewers

    This change adds new dashboard labels and bulk edit commands for archive and
    mute.

    The bulk commands work very much like the existing close commands, except I've
    only added a prompt in the mute case, and I've skipped the "success" dialog
    (it's obvious because the dashboard immediately reloads without those items or
    with those items showing labels).

    For the dashboard labels, I've done a little refactoring to use a list of
    tuples when building the labels HTML, rather than a dictionary. This is both
    somewhat more efficient, and the resulting order of items is more stable.

    When testing the commands, I came to notice that it was possible to "unmute" an
    archived review request or "unarchive" a muted one. Even though this isn't
    critically bad, it was unexpected, so I fixed that up.

    • Checked that the correct dashboard labels were shown everywhere.
    • Checked that dashboard labels always appeared in the same order.
    • Ran all the bulk commands and verified the results.
    • Ran unit tests.
    • Ran js-tests.

    Description From Last Updated

    Can we add the equivalent of a blank line around Archive/Unarchive, and Mute/Unmute, to help visually separate them?

    chipx86chipx86

    'OrderedDict' imported but unused

    reviewbotreviewbot

    "visibility"

    brenniebrennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/datagrids/grids.py
          reviewboard/datagrids/columns.py
          reviewboard/webapi/resources/base_archived_object.py
      
      Ignored Files:
          reviewboard/static/rb/js/pages/models/dashboardModel.js
          reviewboard/static/rb/css/ui/datagrids.less
          reviewboard/static/rb/css/defs.less
          reviewboard/templates/datagrids/datagrid.html
          reviewboard/static/rb/js/pages/views/dashboardView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/datagrids/grids.py
          reviewboard/datagrids/columns.py
          reviewboard/webapi/resources/base_archived_object.py
      
      Ignored Files:
          reviewboard/static/rb/js/pages/models/dashboardModel.js
          reviewboard/static/rb/css/ui/datagrids.less
          reviewboard/static/rb/css/defs.less
          reviewboard/templates/datagrids/datagrid.html
          reviewboard/static/rb/js/pages/views/dashboardView.js
      
      
    2. reviewboard/datagrids/columns.py (Diff revision 1)
       
       
      Show all issues
       'OrderedDict' imported but unused
      
    3. 
        
    david
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/datagrids/grids.py
          reviewboard/datagrids/columns.py
          reviewboard/webapi/resources/base_archived_object.py
      
      Ignored Files:
          reviewboard/static/rb/js/pages/models/dashboardModel.js
          reviewboard/static/rb/css/ui/datagrids.less
          reviewboard/static/rb/css/defs.less
          reviewboard/templates/datagrids/datagrid.html
          reviewboard/static/rb/js/pages/views/dashboardView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/datagrids/grids.py
          reviewboard/datagrids/columns.py
          reviewboard/webapi/resources/base_archived_object.py
      
      Ignored Files:
          reviewboard/static/rb/js/pages/models/dashboardModel.js
          reviewboard/static/rb/css/ui/datagrids.less
          reviewboard/static/rb/css/defs.less
          reviewboard/templates/datagrids/datagrid.html
          reviewboard/static/rb/js/pages/views/dashboardView.js
      
      
    2. 
        
    chipx86
    1. 
        
    2. Show all issues

      Can we add the equivalent of a blank line around Archive/Unarchive, and Mute/Unmute, to help visually separate them?

    3. 
        
    david
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/datagrids/grids.py
          reviewboard/datagrids/columns.py
          reviewboard/webapi/resources/base_archived_object.py
      
      Ignored Files:
          reviewboard/static/rb/js/pages/models/dashboardModel.js
          reviewboard/static/rb/css/ui/datagrids.less
          reviewboard/static/rb/css/defs.less
          reviewboard/templates/datagrids/datagrid.html
          reviewboard/static/rb/js/pages/views/dashboardView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/datagrids/grids.py
          reviewboard/datagrids/columns.py
          reviewboard/webapi/resources/base_archived_object.py
      
      Ignored Files:
          reviewboard/static/rb/js/pages/models/dashboardModel.js
          reviewboard/static/rb/css/ui/datagrids.less
          reviewboard/static/rb/css/defs.less
          reviewboard/templates/datagrids/datagrid.html
          reviewboard/static/rb/js/pages/views/dashboardView.js
      
      
    2. 
        
    brennie
    1. Only a minor nit. Looks good to me :)

    2. Show all issues

      "visibility"

    3. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.5.x (d7d9308)