Add date fields for review requests.

Review Request #9158 - Created Aug. 29, 2017 and updated

David Trowbridge
Review Board
release-3.0.x
580e7f9...
reviewboard

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.
  • 0
  • 6
  • 0
  • 6
Description From Last Updated
David Trowbridge
Christian Hammond
David Trowbridge
David Trowbridge
Review request changed

Commit:

-81498d88744556494f268a488842984c89090a5e
+580e7f91def8a9e4766b75cace4d94d5f5767a35

Diff:

Revision 3 (+78)

Show changes

Checks run (2 succeeded)

JSHint passed.
flake8 passed.
Loading...