1. 16 Oct, 2019 5 commits
    • Jérome Perrin's avatar
      test_result: support templated URL for test results · bcf8ea72
      Jérome Perrin authored
      The previous way of using portal.ERP5Site_absoluteUrl() +
      test_result.getRelativeUrl() could not work with ERP5JS URLs.
      To be compatible with this and also maybe erp5_web-style URLs if we want
      to link to public tests results, we should have more flexibility in how
      we generate URLs.
      Introduce a "test result url template" property on gitlab connector, see
      unit test for a renderjs ui compatible usage.
      bcf8ea72
    • Jérome Perrin's avatar
      test_result: Support repositories or user ids with . · 9ca2ec45
      Jérome Perrin authored
      Because gitlab way of passing project ID as user/project URL-encoded
      does not support dots (it would needs to be encoded as %2E) and that
      requests rewrites %2F from URL to . (which is probably correct, that's
      the RFC), we cannot use encoded paths for when they contain a dot.
      To workaround this, when user or repo as a dot, make another API call to
      get the numerical project ID and use that instead.
      We only do that for projects with a dot because that's an extra request
      we'd like to avoid.
      9ca2ec45
    • Jérome Perrin's avatar
      test_result: tolerate buildout section ids with - · ba387535
      Jérome Perrin authored
      parsing of reference in TestResult_getTestSuiteData did not handle
      properly buildout section ids with -, this was causing
      
        File "Script (Python)", line 30, in TestResult_getTestSuiteData
          buildout_section_id_and_commits_count, revision = repository_string.split('-')
        ValueError: too many values to unpack
      ba387535
    • Jérome Perrin's avatar
      test_result: support test suite repositories named .*-repository · fb07f3da
      Jérome Perrin authored
      Their reference will not have the -repository prefix, so
      TestResult_getTestSuiteData should do similar processing to find the
      corresponding test suite repositories from reference.
      fb07f3da
    • Jérome Perrin's avatar
      test_result: sort test results by status · db68bb6e
      Jérome Perrin authored
      We want to have FAILED test results before PASSED, to easily see the
      failed tests.
      Apparently this was a local change on nexedi ERP5 for some time but the
      change got lost in yesterday's update. Let's commit it to make this
      permanent.
      db68bb6e
  2. 15 Oct, 2019 2 commits
  3. 14 Oct, 2019 1 commit
  4. 11 Oct, 2019 2 commits
  5. 10 Oct, 2019 7 commits
  6. 09 Oct, 2019 7 commits
  7. 08 Oct, 2019 4 commits
  8. 07 Oct, 2019 7 commits
  9. 05 Oct, 2019 3 commits
  10. 04 Oct, 2019 2 commits
    • Julien Muchembled's avatar
      Optimize WorkflowHistoryList · 1ca655a3
      Julien Muchembled authored
      This is done by inheriting most of the code of ConflictFreeLog,
      i.e. using a doubly-linked list:
      - for fast iteration of the first elements, and in particular
        immediate access to the first element (used for creation date);
      - that keeps track of the history length;
      - that implement fast reverse iteration (although it could
        have been done without changing the data structure).
      
      The size of buckets is not fixed anymore to 16 items:
      like ConflictFreeLog, WorkflowHistoryList is also a good candidate
      to look at the estimated serialized size of the bucket in order to
      decide if elements should be added to a new one or not.
      Then developers won't have to care about using Pdata or not.
      
      The size is bigger than the ConflictFreeLog default,
      because workflow items look a lot alike and adding
      a few more is cheap when the ZODB compresses.
      
      No more optimized __getstate__ (except for workflow histories that
      have not been migrated) so BT export will be a bit more verbose.
      
      The BBB code is because of
        nexedi/erp5!934
      
      /reviewed-on nexedi/erp5!941
      1ca655a3
    • Arnaud Fontaine's avatar
      ZODB Components: Before migrating Interfaces from FS, there must be one... · 694c9fee
      Arnaud Fontaine authored
      ZODB Components: Before migrating Interfaces from FS, there must be one Interface class per source file matching its name.
      
      Same as Document class: this avoids registering Interfaces at startup and just do it
      when using the Interface. In assuming that portal_components/XXX has a class
      name equals to XXX.getRference(), it is easier to:
       * List all existing Interfaces (for example in Portal Type Class view): getReference()
         on all validated 'Interface Component' in portal_components.
       * Lookup for an 'Interface Component': 'from erp5.component.interfaces.XXX import XXX'.
      694c9fee