1. 24 Feb, 2021 1 commit
  2. 17 Feb, 2021 1 commit
  3. 19 Feb, 2021 1 commit
  4. 16 Feb, 2021 1 commit
  5. 05 Jan, 2016 1 commit
  6. 17 Feb, 2021 2 commits
  7. 08 Feb, 2021 1 commit
  8. 17 Feb, 2021 2 commits
  9. 10 Feb, 2021 1 commit
  10. 09 Feb, 2021 1 commit
  11. 26 Jan, 2021 1 commit
  12. 16 Feb, 2021 1 commit
    • Simon Chabot's avatar
      fix(rql): refactor GROUP_CONCAT so that it handles NULL values · 580b4af3476e
      Simon Chabot authored
      the previous GROUP_CONCAT was a Postgresql aggregative function which was
      trying to deduplicate the values of concatenated array.
      
      If the value was already in the array, the function was appending NULL to the
      array. What we want, is do nothing, and return the same array.
      
      #259
      
      NOTE: before that changeset, the suggested test fails as follow:
      
      >           self.assertEqual(list(firstnames_rset), [["Alice, Bob"]])
      E           AssertionError: Lists differ: [['Alice']] != [['Alice, Bob']]
      E
      E           First differing element 0:
      E           ['Alice']
      E           ['Alice, Bob']
      E
      E           - [['Alice']]
      E           + [['Alice, Bob']]
      E           ?         +++++
      
      
      Alice is duplicated, therefore, as explained in the ticket, it adds NULL add the
      end of the table, and then it refuses to add any values.
      580b4af3476e
  13. 12 Feb, 2021 1 commit
  14. 06 Aug, 2015 1 commit
  15. 12 Feb, 2021 1 commit
  16. 09 Jul, 2014 1 commit
  17. 12 Feb, 2021 1 commit
  18. 11 Feb, 2021 1 commit
    • Simon Chabot's avatar
      fix(rql): make the rql completion working again · 603279be327c
      Simon Chabot authored
      the rql autocompletion was broken for a very long time, and it's a very helpful.
      
      The rql autocomplete was using a JSONController, which has been deprecated for
      very long time. In b01dd0ef43aa, JSONController has been removed, and the rql
      autocompletion has been broken since.
      
      As suggested by the deprecated warning, using the AjaxController instead is
      making everything working again.
      603279be327c
  19. 03 Feb, 2021 1 commit
  20. 10 Feb, 2021 1 commit
  21. 03 Feb, 2021 1 commit
  22. 29 Jan, 2021 1 commit
    • Philippe Pepiot's avatar
      [views] fix possible UnboundLocalError in ErrorView · a86026d00690
      Philippe Pepiot authored
      This fixes:
      
      File "/usr/local/lib/python3.7/dist-packages/cubicweb/web/views/management.py", line 156, in call
          binfo = text_error_description(ex, excinfo, req, eversion, cversions)
      UnboundLocalError: local variable 'eversion' referenced before assignment
      
      This occur when self._cw.cnx is False and `submit-mail` is configured.
      a86026d00690
  23. 09 Feb, 2021 3 commits
  24. 13 Mar, 2019 1 commit
  25. 21 May, 2019 1 commit
    • Laurent Peuch's avatar
      [database/exception] include the query information in database error for better debuging · 65caef71dc24
      Laurent Peuch authored
      This will change an exception from something like :
      
          psycopg2.IntegrityError: null value in column "asource" violates not-null constraint
          DETAIL:  Failing row contains (341471, CWRType, null, null).
      
      To:
      
          psycopg2.IntegrityError: when doing the query 'INSERT INTO entities ( eid, type ) VALUES ( %(eid)s, %(type)s )' with the args '{'type': u'CWRType', 'eid': 341471}' got the error 'null value in column "asource" violates not-null constraint
          DETAIL:  Failing row contains (341471, CWRType, null, null).'
      
      Tested with sqlite3 and postgresql.
      65caef71dc24
  26. 08 Feb, 2021 1 commit
  27. 11 Dec, 2020 1 commit
  28. 27 Jan, 2021 1 commit
  29. 03 Feb, 2021 1 commit
  30. 02 Nov, 2016 1 commit
  31. 13 Oct, 2016 1 commit
  32. 14 Nov, 2016 1 commit
  33. 27 Jan, 2021 1 commit
  34. 22 May, 2020 1 commit
  35. 08 Jul, 2020 1 commit
  36. 26 Jan, 2021 1 commit