1. 13 May, 2015 1 commit
    • Julien Muchembled's avatar
      CMFActivity: new invokeGroup API · da234001
      Julien Muchembled authored
      The recent API change was not enough.
      A grouping method may need more information: in particular, the dummy grouping
      method must be fixed to change user.
      da234001
  2. 06 May, 2015 1 commit
    • Julien Muchembled's avatar
      CMFActivity: slightly delay non-executed grouped messages · c85a840f
      Julien Muchembled authored
      When grouped messages fail, ActivityTool must distinguish 3 groups,
      in order to reexecute them separately, as follows:
      - first, those that succeeded
      - then, those that were skipped
      - at last, failed ones
      
      Grouping methods are updated to handle partial failures, and stop doing
      anything when something goes wrong.
      
      Without this, we would have the following pathological cases.
      
      1. Let's suppose first that skipped messages are marked as succeeded.
      
      The problem is that each skipped message that will fail causes the reexecution
      of those that didn't fail.
      
      Exemple: A:ok B:ok C:err D:err E:err F:err
        1: A:ok, B:ok, C:err, D:skipped, E:skipped, F:skipped
        2: A:ok, B:ok, D:err, E:skipped, F:skipped
        3: A:ok, B:ok, E:err, F:skipped
        4: A:ok, B:ok, F:err
        5: A:ok, B:ok -> commit
      
      And worst, the first failed (C) may be processable again before 5, entering
      a failing loop if it is executed again in the same group as A & B.
      
      2. Another implementation is to mark all skipped as failed.
      
      Example:
        1: A:ok, B:ok, C:err, D:skipped, E:skipped, F:skipped
        2: A:ok, B:ok -> commit
        3: C:err, D:skipped, E:skipped, F:skipped
       >3: same as 3
      
      => D, E or F are never tried.
      c85a840f
  3. 31 Mar, 2015 1 commit
  4. 25 Mar, 2015 1 commit
  5. 29 Jan, 2015 1 commit
  6. 08 Nov, 2014 1 commit
    • Kazuhiko Shiozaki's avatar
      use fulltext search in title and description. · d47df833
      Kazuhiko Shiozaki authored
      * to quickly setup catalog_full_text table, you can use the following SQL.
      
        REPLACE INTO catalog_full_text SELECT uid, title, description FROM catalog;
      
      * non fulltext queries like '=abc', '>abc', '%abc%' are supported.
      
      * now erp5_full_text_mroonga_catalog is used for unit tests thus I recommend using it instead of erp5_full_text_myisam_catalog.
      
      * to migrate existing MyISAM full_text table into Mroonga, you can use the following SQL.
      
        ALTER TABLE full_text DROP KEY SearchableText,
          ENGINE = mroonga,
          ADD FULLTEXT KEY SearchableText (`SearchableText`) COMMENT 'parser "TokenBigramSplitSymbolAlpha"';
      
      * fulltext search score is no longer provided as (column_name) but now provided as (column_name)__score__.
      
      * (category)_title, like source_title, related keys are automatically generated. (category)_description keys as well.
      d47df833
  7. 16 Oct, 2014 1 commit
  8. 08 Sep, 2014 2 commits
  9. 04 Sep, 2014 1 commit
  10. 30 Apr, 2014 3 commits
  11. 19 Mar, 2014 1 commit
    • Julien Muchembled's avatar
      CatalogTool: fix searchAndActivate when called with a condition on 'uid' · 25ff6cf0
      Julien Muchembled authored
      Because the method internally overrode 'uid' after the first group of objects,
      passing a list of uids could make it go berserk and activate all objects in
      catalog with an uid greater than those of the first group.
      
      Although searchAndActivate was not initially written to be called with such
      list, this commit fixes this instead of forbidding conditions on 'uid',
      since it remains useful to easily split & group activities.
      25ff6cf0
  12. 10 Mar, 2014 3 commits
  13. 21 Jan, 2014 1 commit
  14. 19 Aug, 2013 1 commit
  15. 23 May, 2013 1 commit
  16. 27 Mar, 2013 1 commit
    • Vincent Pelletier's avatar
      getSecurityUidDictAndRoleColumnDict micro-optimisation · c70f1f3d
      Vincent Pelletier authored
      try..except is significantly slower than getattr with default value when
      an exception is raised.
      defaultdict is faster than calling setdefault.
      The two other try..except blocks need more careful analysis of typical
      hit-rates to tell if they are optimal.
      c70f1f3d
  17. 12 Jul, 2012 5 commits
  18. 27 Jun, 2012 1 commit
  19. 22 Jun, 2012 1 commit
  20. 21 Jun, 2012 1 commit
  21. 02 Jun, 2012 1 commit
    • Kazuhiko Shiozaki's avatar
      use UnrestrictedMethod's super user instead of ad-hoc SUPER_USER. Squashed commit of the following: · 4b16e1dd
      Kazuhiko Shiozaki authored
      commit 2ba8fb59b67cda4a35bda5ee809ac0dd6af40d84
      Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
      Date:   Fri Jun 1 23:26:30 2012 +0200
      
          if the activity is called by super user, it should be invoked with the same permission as UnrestrictedMethod.
      
      commit f63c2e8625934d0a5a056e933f4c7215098bfa1b
      Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
      Date:   Fri Jun 1 15:58:41 2012 +0200
      
          use UnrestrictedMethod's super user instead of ad-hoc SUPER_USER.
      
      commit 965460b092967bc3ada3ee7268e1f942fc770efd
      Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
      Date:   Fri Jun 1 15:57:45 2012 +0200
      
          security query for super user should be simply empty.
      
      commit 6d519b78f52f1a631d6663ee5594ae92a0730cc3
      Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
      Date:   Fri Jun 1 15:37:33 2012 +0200
      
          support both ERP5Security's SUPER_USER and UnrestrictedMethod's super user.
      
      commit 21431518b821a5e2756caad5393fc746bed79d36
      Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
      Date:   Fri Jun 1 15:32:45 2012 +0200
      
          make sure that SUPER_USER can access the object explicitly, that can be required with erp5_web.
      
      commit 63279ac74cbb40e520da36571927bfdee5af5e05
      Author: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
      Date:   Fri Jun 1 15:27:00 2012 +0200
      
          use UnrestrictedMethod instead of ad-hoc SUPER_USER, still keeping SUPER_USER for compatibility.
      4b16e1dd
  22. 09 May, 2012 3 commits
  23. 04 May, 2012 2 commits
  24. 20 Sep, 2011 1 commit
  25. 02 Aug, 2011 3 commits
  26. 28 Jul, 2011 1 commit