Add date fields for review requests.

Review Request #9158 — Created Aug. 29, 2017 and submitted

Information

Review Board
release-3.0.x
580e7f9...

Reviewers

This change adds Python and JavaScript classes to add date-type fields in
review requests. Extensions can use this very simply by just subclassing
BaseDropdownField and providing field_id and label attributes. The
resulting value will be stored in extra_data as expected.

  • Ran js-tests.
  • Ran unit tests.
  • Created a test extension that used a date field and verified that the
    state was correctly rendered when loading the page and correctly stored when
    the date was changed. Verified that invalid dates were cleared out.
Description From Last Updated

"Python" and "JavaScript" in the description.

chipx86chipx86

F401 'django.utils.timezone' imported but unused

reviewbotreviewbot

Col: 15 '$field' is defined but never used.

reviewbotreviewbot

Something bad happened here.

chipx86chipx86

"JavaScript"

chipx86chipx86

Blank line between these.

chipx86chipx86

bool

chipx86chipx86
Checks run (2 failed)
flake8 failed.
JSHint failed.

flake8

JSHint

david
chipx86
  1. 
      
  2. Show all issues

    "Python" and "JavaScript" in the description.

  3. reviewboard/reviews/fields.py (Diff revision 2)
     
     
    Show all issues

    Something bad happened here.

  4. reviewboard/reviews/fields.py (Diff revision 2)
     
     
    Show all issues

    "JavaScript"

  5. Show all issues

    Blank line between these.

  6. 
      
david
david
chipx86
  1. 
      
  2. reviewboard/reviews/fields.py (Diff revision 3)
     
     
    Show all issues

    bool

  3. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (336c23a)