1. 07 Mar, 2023 1 commit
    • Jérome Perrin's avatar
      pylint: fix KeyError: <type 'numpy.ufunc'> visible with pandas 0.24.2 · 533f7e55
      Jérome Perrin authored
      Updating pandas to 0.24.2 revealed as :
      
            File "develop-eggs/astroid-1.3.8+slapospatched001-py2.7.egg/astroid/raw_building.py", line 360, in _set_proxied
              return _CONST_PROXY[const.value.__class__]
          KeyError: <type 'numpy.ufunc'>
      
      when linting code referencing pandas. The problem is actually with
      some numpy `ufunc`, such as numpy.sin, but we don't seem to have code
      using it in the test suite.
      533f7e55
  2. 06 Mar, 2023 4 commits
    • Gabriel Monnerat's avatar
      erp5_stripe: Use activity to store stripe session in ERP5 · ce9ec7b6
      Gabriel Monnerat authored
      Creating Stripe Payment Session and HTTP Exchange in the same transaction can raise conflict errors and when it happens, we already created the session on the Stripe side.
      
      With this, when this happens, we receive one useless webhook to inform that the session has expired.
      
      Also, batch_mode was removed because we only use it in tests. The tests were updated to use like in production.
      
      This change will probably avoid the issue below:
      
      ```
      ------
      2023-03-01 13:03:33,503 INFO Tracking queuing message: activity=SQLDict, object_path=/erp5/stripe_payment_session_module/20230301-1B990F0, method_id=immediateReindexObject, args=(), kw={}, activity_kw={'group_id': '', 'serialization_tag': '/erp5/stripe_payment_session_module/20230301-1B990F0', 'alternate_method_id': 'alternateReindexObject', 'group_method_id': 'portal_catalog/catalogObjectList'}, user_name=...
      ------
      2023-03-01 13:03:33,516 INFO Tracking queuing message: activity=SQLDict, object_path=/erp5/system_event_module/20230301-9DDE8DD8, method_id=immediateReindexObject, args=(), kw={}, activity_kw={'group_id': '', 'serialization_tag': '/erp5/system_event_module/20230301-9DDE8DD8', 'alternate_method_id': 'alternateReindexObject', 'group_method_id': 'portal_catalog/catalogObjectList'}, user_name=...
      ------
      2023-03-01 13:03:33,549 INFO ZPublisher.Conflict ReadConflictError at ......_startStripePaymentSession: database read conflict error (oid 0x06be91ef, serial this txn started with 0x03eec0ca6bdaf611 2023-03-01 10:50:25.278590, serial currently committed 0x03eec0d78f096a55 2023-03-01 11:03:33.524245) (12 conflicts (0 unresolved) since startup at Tue Jan 17 03:21:57 2023)
      ------
      2023-03-01 13:03:35,057 INFO Tracking queuing message: activity=SQLDict, object_path=/erp5/stripe_payment_session_module/20230301-1E233DB, method_id=immediateReindexObject, args=(), kw={}, activity_kw={'group_id': '', 'serialization_tag': '/erp5/stripe_payment_session_module/20230301-1E233DB', 'alternate_method_id': 'alternateReindexObject', 'group_method_id': 'portal_catalog/catalogObjectList'}, user_name=...
      ------
      2023-03-01 13:03:35,066 INFO Tracking queuing message: activity=SQLDict, object_path=/erp5/system_event_module/20230301-5C3B7E3, method_id=immediateReindexObject, args=(), kw={}, activity_kw={'group_id': '', 'serialization_tag': '/erp5/system_event_module/20230301-5C3B7E3', 'alternate_method_id': 'alternateReindexObject', 'group_method_id': 'portal_catalog/catalogObjectList'}, user_name=...
      ```
      
      See merge request !1747
      ce9ec7b6
    • Kazuhiko Shiozaki's avatar
    • Kazuhiko Shiozaki's avatar
      erp5_core: remove Guard Role field in Worklist_view, as it should be defined... · 92bfa7e1
      Kazuhiko Shiozaki authored
      erp5_core: remove Guard Role field in Worklist_view, as it should be defined in predicate listbox at the bottom.
      92bfa7e1
    • Gabriel Monnerat's avatar
      erp5_stripe: Use activity to store stripe session in ERP5 · ec4a3f9d
      Gabriel Monnerat authored
      Creating Stripe Payment Session and HTTP Exchange in the same transaction can raise conflict errors and when it happens, we already created the session on the Stripe side.
      
      With this, when this happens, we receive one useless webhook to inform that the session has expired.
      
      Also, batch_mode was removed because we only use it in tests. The tests were updated to use like in production.
      ec4a3f9d
  3. 05 Mar, 2023 1 commit
  4. 03 Mar, 2023 34 commits