1. 14 May, 2018 1 commit
  2. 13 May, 2018 2 commits
  3. 30 Apr, 2018 3 commits
  4. 13 Apr, 2018 1 commit
  5. 15 Mar, 2018 1 commit
  6. 01 Mar, 2018 1 commit
  7. 28 Feb, 2018 1 commit
  8. 27 Feb, 2018 1 commit
  9. 26 Feb, 2018 2 commits
  10. 20 Feb, 2018 4 commits
  11. 23 Jan, 2018 6 commits
  12. 16 Jan, 2018 11 commits
  13. 15 Jan, 2018 4 commits
    • Arkadiusz Hiler's avatar
      urls: Use named URLs · 492485df
      Arkadiusz Hiler authored
      Using the quoted doted path to the view callable object
      (e.g. 'patchwork.views.projects') is going to be deprecated soon.
      Using either the actual callable or a named URL is recommended.
      
      Let future-proof urls.py by using the actual callables there and
      name all the URLs, so we can use the names everywhere else.
      Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      492485df
    • Arkadiusz Hiler's avatar
      models: Use explicit on_delete=models.CASCADE · f5869cb5
      Arkadiusz Hiler authored
      As it will be mandatory in future versions of django.
      Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      f5869cb5
    • Arkadiusz Hiler's avatar
      forms: Move definitions of fields that depend on runtime data to __init__ · ace98b24
      Arkadiusz Hiler authored
      Newer versions of django does not initialize models completely and this
      cause exception.
      Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      ace98b24
    • Arkadiusz Hiler's avatar
      django-rest-framework: Update to 3.3 · f63f424e
      Arkadiusz Hiler authored
       * QUERY_PARAMS and DATA are now lower case
      
       * we set date format to ISO8601 in the ModelSerializer itself now, no
         need for subclassing
      
       * there is no WritableField anymore, just use Field
      
       * to_native and from_native got renamed to to_representation and
         to_internal_value respectively
      
       * dropped the field names from the field serializer instantiation if
         the data field is named the same as the python field
      
       * allow_none is now split into allow_blank and allow_null, so use both
      
       * serialized/validated data is now split into sub-dictionaries on dot,
         so use the new notation (e.g. f['a.b'] becomes f['a']['b'])
      
       * some error messages got changed, updated the tests to expect the new
         values
      
       * is_valid_field() is now invoked on raw names, so we do not have to
         accommodate for the mapping introduced by the get_ordering()
      
       * dropped our own implementation of UpdateModelMixin in favor of the
         one provided by the framework, which additionally allowed us to get
         rid of a deprecated save hook
      
       * pagination configuration happens now by subclassing the page handling
         class
      Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      f63f424e
  14. 10 Nov, 2017 1 commit
    • Arkadiusz Hiler's avatar
      series: Disable "test [...] again" button when appropriate · 4a03e386
      Arkadiusz Hiler authored
      Move the button to a div container, so it can be disabled with an
      overlay with a tooltip.
      
      The button is now disabled if the user is not logged in or is not a
      maintainer of the project, with an appropriate tooltip explaining this.
      
      Also juggle fade_{enable,disable} functions so they are exported as a
      part of the pw object, so we can reuse them for disabling the
      before mentioned button.
      Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      4a03e386
  15. 01 Nov, 2017 1 commit
    • Arkadiusz Hiler's avatar
      series: Add test latest revision again button · 337d9b47
      Arkadiusz Hiler authored
      Before, to rerun tests on a series, we had to go to series lists, search
      for it, select a checkbox and press the button.
      
      This is quality of life improvement that adds the button to the series
      page, so there's less hassle required.
      
      The button is blue, and when clicked it is disabled and turns yellow for
      the duration of request to the server, then turns either green, if the
      rerun was queued successfully, or red when the request has failed.
      
      Button's text also changes to reflect the current state.
      
      To re-enable the button (e.g. in unusual scenario of queueing two
      reruns) page needs to be refreshed.
      Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      337d9b47