Skip to content
Snippets Groups Projects
  1. Oct 18, 2019
  2. Oct 17, 2019
    • Xavier-Do's avatar
      [IMP] base: avoid invalidate cache on first assets · fbfae7ef
      Xavier-Do authored
      
      Assets bundle creation will try to find previous version of assets and unlink them.
      This needs to invalidate ormcache to notify other workers.
      
      Since assets are never commited during test, assets will be generate at each request if request is
      not commited (cursor closed) whtch is the case with 404.
      
      Invalidating the orm cache only when a previous attachement was existing will help to
      mitigate the problem, and slightly improve HTTPCases test speed.
      
      closes odoo/odoo#38979
      
      X-original-commit: d4d63549
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      fbfae7ef
    • Xavier-Do's avatar
      [FIX] web: avoid expensive 404 during js tests · d65fcfec
      Xavier-Do authored
      A 404 will take 3 to 5 seconds to be resolved and execute +- 1900 query, to return
      a rendered page which is quite expensive, especially when multiple missing images
      are rendered in a view.
      
      Catching static route and marking them as not frontend will help to avoid to handle miss
      on static resources. In this case server returns a standard 404.
      
      This commit also fix a iframe src in order to avoid a 404 on
      /web/(test )/report/html/some_report (thx to aab-odoo)
      
      X-original-commit: 818d0cb5
      d65fcfec
  3. Oct 18, 2019
  4. Oct 17, 2019
  5. Oct 18, 2019
  6. Oct 17, 2019
Loading