• 
      

    custom fields

    Review Request #8765 — Created Feb. 19, 2017 and discarded

    Information

    Review Board
    master

    Reviewers

    The custome fields allow extension writters to write extensions with custom fields!
    Which include:
    Date field
    Time field
    Datetime field
    Dropdown field
    Checkbox field
    Radiobutton field

    Javascript unit test for the fields listed above have been done.
    Test includes:
    Correctly disable the fields when changes are not allowed.
    Triggers "saveDraft" event when changes are made.

    Description From Last Updated

    Col: 1 E303 too many blank lines (4)

    reviewbotreviewbot

    Col: 1 E302 expected 2 blank lines, found 1

    reviewbotreviewbot

    Col: 1 E302 expected 2 blank lines, found 1

    reviewbotreviewbot

    Col: 31 W291 trailing whitespace

    reviewbotreviewbot

    Col: 1 E303 too many blank lines (3)

    reviewbotreviewbot

    undefined name '_populated'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    Col: 1 E303 too many blank lines (4)

    reviewbotreviewbot

    Col: 1 E302 expected 2 blank lines, found 1

    reviewbotreviewbot

    Col: 1 E302 expected 2 blank lines, found 1

    reviewbotreviewbot

    Col: 31 W291 trailing whitespace

    reviewbotreviewbot

    Col: 1 E303 too many blank lines (3)

    reviewbotreviewbot

    undefined name '_populated'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    Col: 1 E303 too many blank lines (4)

    reviewbotreviewbot

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood. Ex: 'Return the …

    RK rkdhatt

    Need blank line between 939 and 940.

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    Need blank line between 1020 and 1021.

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    Col: 1 E302 expected 2 blank lines, found 1

    reviewbotreviewbot

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    Need blank line between 1089 and 1090.

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    Col: 1 E302 expected 2 blank lines, found 1

    reviewbotreviewbot

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    Need blank line between 1158 and 1159.

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    Col: 31 W291 trailing whitespace

    reviewbotreviewbot

    blank line between 1169 and 1170.

    RK rkdhatt

    Blank line between 1172 and 1173.

    RK rkdhatt

    Blank line needed above this line.

    RK rkdhatt

    Blank line needed above this line.

    RK rkdhatt

    Blank line needed above this line.

    RK rkdhatt

    Blank line needed above this line.

    RK rkdhatt

    Blank line needed above this line.

    RK rkdhatt

    Col: 1 E303 too many blank lines (3)

    reviewbotreviewbot

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    undefined name '_populated'

    reviewbotreviewbot

    No need for blank line here?

    RK rkdhatt

    For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

    RK rkdhatt

    undefined name '_all_fields'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    Remove one extra blank line here

    RK rkdhatt

    undefined name '_all_fields'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    Col: 45 Expected '===' and instead saw '=='.

    reviewbotreviewbot

    Col: 50 Expected '===' and instead saw '=='.

    reviewbotreviewbot

    Col: 50 Expected '===' and instead saw '=='.

    reviewbotreviewbot

    Col: 50 Expected '===' and instead saw '=='.

    reviewbotreviewbot

    Col: 13 'model' is defined but never used.

    reviewbotreviewbot

    Col: 27 Expected '!==' and instead saw '!='.

    reviewbotreviewbot

    Col: 31 Missing semicolon.

    reviewbotreviewbot

    Col: 43 Expected '!==' and instead saw '!='.

    reviewbotreviewbot

    Col: 65 ['hour'] is better written in dot notation.

    reviewbotreviewbot

    Col: 62 ['period'] is better written in dot notation.

    reviewbotreviewbot

    Col: 18 '_saveDatetimeIfChanged' was used before it was defined.

    reviewbotreviewbot

    Col: 18 '_readDatetime' was used before it was defined.

    reviewbotreviewbot

    Col: 19 '_toAMPM' was used before it was defined.

    reviewbotreviewbot

    Col: 50 Missing semicolon.

    reviewbotreviewbot

    Col: 46 Missing semicolon.

    reviewbotreviewbot

    Col: 18 '_pad' was used before it was defined.

    reviewbotreviewbot

    Col: 35 Missing semicolon.

    reviewbotreviewbot

    Col: 3 Missing semicolon.

    reviewbotreviewbot

    Col: 3 Missing semicolon.

    reviewbotreviewbot

    Col: 3 Missing semicolon.

    reviewbotreviewbot

    Col: 3 Missing semicolon.

    reviewbotreviewbot

    Col: 3 Missing semicolon.

    reviewbotreviewbot

    Col: 44 Expected '!==' and instead saw '!='.

    reviewbotreviewbot

    Col: 65 ['hour'] is better written in dot notation.

    reviewbotreviewbot

    Col: 62 ['period'] is better written in dot notation.

    reviewbotreviewbot

    Col: 66 ['hour'] is better written in dot notation.

    reviewbotreviewbot

    Col: 62 ['period'] is better written in dot notation.

    reviewbotreviewbot

    Col: 11 Missing semicolon.

    reviewbotreviewbot

    Col: 18 '_toAMPM' was used before it was defined.

    reviewbotreviewbot

    Col: 50 Missing semicolon.

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    Col: 13 'model' is defined but never used.

    reviewbotreviewbot

    Col: 27 Expected '!==' and instead saw '!='.

    reviewbotreviewbot

    Col: 43 Expected '!==' and instead saw '!='.

    reviewbotreviewbot

    Col: 65 ['hour'] is better written in dot notation.

    reviewbotreviewbot

    Col: 62 ['period'] is better written in dot notation.

    reviewbotreviewbot

    Col: 18 '_saveDatetimeIfChanged' was used before it was defined.

    reviewbotreviewbot

    Col: 18 '_readDatetime' was used before it was defined.

    reviewbotreviewbot

    Col: 19 '_toAMPM' was used before it was defined.

    reviewbotreviewbot

    Col: 50 Missing semicolon.

    reviewbotreviewbot

    Col: 46 Missing semicolon.

    reviewbotreviewbot

    Col: 18 '_pad' was used before it was defined.

    reviewbotreviewbot

    Col: 5 'TextFieldView' is defined but never used.

    reviewbotreviewbot

    Col: 20 'AutoCompleteView' is defined but never used.

    reviewbotreviewbot

    Col: 38 'MarkdownCapableView' is defined but never used.

    reviewbotreviewbot

    Col: 1 'RadioButtonFieldView' is defined but never used.

    reviewbotreviewbot

    Col: 23 'CheckboxFieldView' is defined but never used.

    reviewbotreviewbot

    Col: 42 'DataTimeFieldView' is defined but never used.

    reviewbotreviewbot

    Col: 1 'DropdownFieldView' is defined but never used.

    reviewbotreviewbot

    Col: 35 Missing semicolon.

    reviewbotreviewbot

    Col: 3 Missing semicolon.

    reviewbotreviewbot

    Col: 13 'options' is already defined.

    reviewbotreviewbot

    Col: 15 Missing semicolon.

    reviewbotreviewbot

    Col: 50 Missing semicolon.

    reviewbotreviewbot

    Col: 46 Missing semicolon.

    reviewbotreviewbot

    Col: 11 Missing semicolon.

    reviewbotreviewbot

    Col: 10 Unnecessary semicolon.

    reviewbotreviewbot

    Col: 15 Missing semicolon.

    reviewbotreviewbot

    Col: 50 Missing semicolon.

    reviewbotreviewbot

    Col: 46 Missing semicolon.

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    Col: 13 'f_options' is defined but never used.

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    Col: 13 'f_options' is defined but never used.

    reviewbotreviewbot

    Col: 18 '_pad' was used before it was defined.

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    Col: 13 'f_options' is defined but never used.

    reviewbotreviewbot

    Col: 18 '_pad' was used before it was defined.

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    Col: 13 'f_options' is defined but never used.

    reviewbotreviewbot

    Col: 18 '_pad' was used before it was defined.

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    undefined name '_all_fields'

    reviewbotreviewbot

    Col: 13 'f_options' is defined but never used.

    reviewbotreviewbot
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/reviews/fields.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/reviews/fields.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
    2. reviewboard/reviews/fields.py (Diff revision 1)
       
       
      Show all issues
      Col: 1
       E303 too many blank lines (4)
      
    3. reviewboard/reviews/fields.py (Diff revision 1)
       
       
      Show all issues
      Col: 1
       E302 expected 2 blank lines, found 1
      
    4. reviewboard/reviews/fields.py (Diff revision 1)
       
       
      Show all issues
      Col: 1
       E302 expected 2 blank lines, found 1
      
    5. reviewboard/reviews/fields.py (Diff revision 1)
       
       
      Show all issues
      Col: 31
       W291 trailing whitespace
      
    6. reviewboard/reviews/fields.py (Diff revision 1)
       
       
      Show all issues
      Col: 1
       E303 too many blank lines (3)
      
    7. reviewboard/reviews/fields.py (Diff revision 1)
       
       
      Show all issues
       undefined name '_populated'
      
    8. reviewboard/reviews/fields.py (Diff revision 1)
       
       
      Show all issues
       undefined name '_all_fields'
      
    9. reviewboard/reviews/fields.py (Diff revision 1)
       
       
      Show all issues
       undefined name '_all_fields'
      
    10. 
        
    JO
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/reviews/fields.py
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/reviewRequestFieldView.js
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/reviews/fields.py
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/reviewRequestFieldView.js
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
    2. reviewboard/reviews/fields.py (Diff revision 2)
       
       
      Show all issues
      Col: 1
       E303 too many blank lines (4)
      
    3. reviewboard/reviews/fields.py (Diff revision 2)
       
       
      Show all issues
      Col: 1
       E302 expected 2 blank lines, found 1
      
    4. reviewboard/reviews/fields.py (Diff revision 2)
       
       
      Show all issues
      Col: 1
       E302 expected 2 blank lines, found 1
      
    5. reviewboard/reviews/fields.py (Diff revision 2)
       
       
      Show all issues
      Col: 31
       W291 trailing whitespace
      
    6. reviewboard/reviews/fields.py (Diff revision 2)
       
       
      Show all issues
      Col: 1
       E303 too many blank lines (3)
      
    7. reviewboard/reviews/fields.py (Diff revision 2)
       
       
      Show all issues
       undefined name '_populated'
      
    8. reviewboard/reviews/fields.py (Diff revision 2)
       
       
      Show all issues
       undefined name '_all_fields'
      
    9. reviewboard/reviews/fields.py (Diff revision 2)
       
       
      Show all issues
       undefined name '_all_fields'
      
    10. 
        
    JO
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/reviews/fields.py
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/reviewRequestFieldView.js
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/reviews/fields.py
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/reviewRequestFieldView.js
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
    2. reviewboard/reviews/fields.py (Diff revision 3)
       
       
      Show all issues
      Col: 1
       E303 too many blank lines (4)
      
    3. reviewboard/reviews/fields.py (Diff revision 3)
       
       
      Show all issues
      Col: 1
       E302 expected 2 blank lines, found 1
      
    4. reviewboard/reviews/fields.py (Diff revision 3)
       
       
      Show all issues
      Col: 1
       E302 expected 2 blank lines, found 1
      
    5. reviewboard/reviews/fields.py (Diff revision 3)
       
       
      Show all issues
      Col: 31
       W291 trailing whitespace
      
    6. reviewboard/reviews/fields.py (Diff revision 3)
       
       
      Show all issues
      Col: 1
       E303 too many blank lines (3)
      
    7. reviewboard/reviews/fields.py (Diff revision 3)
       
       
      Show all issues
       undefined name '_populated'
      
    8. reviewboard/reviews/fields.py (Diff revision 3)
       
       
      Show all issues
       undefined name '_all_fields'
      
    9. reviewboard/reviews/fields.py (Diff revision 3)
       
       
      Show all issues
       undefined name '_all_fields'
      
    10. 
        
    RK
    1. Hey! Just thought I'd review your code! Looks great, it's mostly blank line and doc stuff. :)

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood. Ex: 'Return the default...' instead of 'Returns the default...'

      This applies to the rest of your function docs! :)

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

      Need blank line between 939 and 940.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      Need blank line between 1020 and 1021.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      Need blank line between 1089 and 1090.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      Need blank line between 1158 and 1159.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      blank line between 1169 and 1170.

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

      Blank line between 1172 and 1173.

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

      Blank line needed above this line.

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

      Blank line needed above this line.

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

      Blank line needed above this line.

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

      Blank line needed above this line.

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

      Blank line needed above this line.

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      No need for blank line here?

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

      For all your one-line summaries in your docs, the sentence has to be present tense/ imperative mood.

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

      Remove one extra blank line here

    30. 
        
    JO
    Review request changed
    Change Summary:

    Right I forgot to publish change.....

    Commit:
    c546272c896ddc874e70d1d64f148886731d3e1f
    e3080b24a94eafe1fbb2d78c6c150328eea831c9

    Checks run (2 failed, 1 failed with error)

    JSHint failed.
    PEP8 Style Checker internal error.
    Pyflakes failed.

    JSHint

    Pyflakes

    JO
    Review request changed
    Commit:
    e3080b24a94eafe1fbb2d78c6c150328eea831c9
    5c7e47d9bf78a92f5d461b61429fc96fcb2c9ddc

    Checks run (2 failed, 1 failed with error)

    JSHint failed.
    PEP8 Style Checker internal error.
    Pyflakes failed.

    JSHint

    Pyflakes

    JO
    Review request changed
    Description:
       

    The extension related to this is not posted yet.

    ~   CheckboxField and RadioButtonField are good now.
    ~   DateTimeField and DropdownButtonField should not be too bad.
      ~ The timezone for timefield are not yet implemented (so now they are just like a formatted text)
      ~ Text fields are still not done!

    -   It's text field which is troublesome...

    Commit:
    5c7e47d9bf78a92f5d461b61429fc96fcb2c9ddc
    de2731152f5a53485d519912158913c338089e88

    Checks run (2 failed, 1 failed with error)

    JSHint failed.
    PEP8 Style Checker internal error.
    Pyflakes failed.

    JSHint

    Pyflakes

    JO
    Review request changed
    Summary:
    [WIP] custom fields
    custom fields
    Description:
       

    The extension related to this is not posted yet.

    ~   The timezone for timefield are not yet implemented (so now they are just like a formatted text)
      ~ All fields except text fields should be working

    -   Text fields are still not done!

    Commit:
    de2731152f5a53485d519912158913c338089e88
    c82eb8d413e4950d24210c88546a6ba58ee3adf5

    Checks run (2 failed, 1 failed with error)

    JSHint failed.
    PEP8 Style Checker internal error.
    Pyflakes failed.

    JSHint

    Pyflakes

    JO
    Review request changed
    Change Summary:

    This is close to the final one! But not yet!

    Description:
    ~  

    The extension related to this is not posted yet.

    ~   All fields except text fields should be working

      ~

    The custome fields allow extension writters to write extensions with custom fields!

      ~ Which include:
      + Date field
      + Time field
      + Datetime field
      + Dropdown field
      + Checkbox field
      + Radiobutton field

    Testing Done:
      +

    Javascript unit test for the fields listed above have been done.

      + Test includes:
      + Correctly disable the fields when changes are not allowed.
      + Triggers "saveDraft" event when changes are made.

    Commit:
    c82eb8d413e4950d24210c88546a6ba58ee3adf5
    792721f4ef429946831128af68e09d342d82a9c8

    Checks run (2 failed, 1 failed with error)

    JSHint failed.
    PEP8 Style Checker internal error.
    Pyflakes failed.

    JSHint

    Pyflakes

    JO
    Review request changed
    Commit:
    792721f4ef429946831128af68e09d342d82a9c8
    29ab4fe3505f413bb093a02460a760d44c47fdfd

    Checks run (2 failed, 1 failed with error)

    JSHint failed.
    PEP8 Style Checker internal error.
    Pyflakes failed.

    JSHint

    Pyflakes

    JO
    Review request changed
    Commit:
    29ab4fe3505f413bb093a02460a760d44c47fdfd
    1650a0b9cef9a9df4d9053f9b7140e798565d749

    Checks run (2 failed, 1 failed with error)

    JSHint failed.
    PEP8 Style Checker internal error.
    Pyflakes failed.

    JSHint

    Pyflakes

    david
    Review request changed
    Status:
    Discarded