summaryrefslogtreecommitdiff
path: root/doc/reference/guidelines.rst
diff options
context:
space:
mode:
authorOdoo's Mergebot <robodoo@odoo.com>2020-07-22 11:45:03 +0200
committerGitHub <noreply@github.com>2020-07-22 11:45:03 +0200
commitaffa40bc21db5bc077ff41244f4db649cdb147a2 (patch)
tree843e55bbc91f45aa0c7f0f90868e50231d484f00 /doc/reference/guidelines.rst
parent3beb4545c4599469eff77a247db12b630cace754 (diff)
parent8ae4544b76665beb23db60b58b9a1cd4a4d9c5fc (diff)
[FW][MERGE] website: improve visitor synchronization and tests
RATIONALE Event will soon gain a major update called Event Online, allowing to better support full-online events. In order to prepare its merge, preparatory merge are done to lessen the final diff and have a smooth integration in a stable version (13.3). PURPOSE Purpose of this merge is to clean visitor synchronization and tests. It prepares further improvements to visitor model linked to Event Online. SPECIFICATIONS Clean existing visitor tests. Use HttpCaseWithUserDemo. Make tests independent from existing database data, notably existing visitors. Currently if any visitor is present in db tests crash as they are badly designed. Introduce a mock for visitor from request allowing to shortcut some visitor / user synchronization and test directly expected results without too much boilerplate in tests. Add anchor methods to somehow merge visitors and update partner linked to visitors and their sub records. In this stable we cannot remove current unlink of duplicate visitors due to constraint of partner_id / visitor_id. However those methods allow to tweak behavior by override. This will be done in future tasks. Introduce a new configuration parameter in website allowing to set number of days before de-activating visitors: ``website.visitor.live.days`` . It is set to 30 days instead of 7 as before. See sub commits for more details LINKS Task ID 2290016 (improve visitor synchronization and tests) Prepares Task ID 2252655 (main Online Event task) Prepares Task ID 2284043 (Visitor-based track wishlist) PR odoo/odoo#54036 closes odoo/odoo#54078 Forward-port-of: odoo/odoo#54036 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'doc/reference/guidelines.rst')
0 files changed, 0 insertions, 0 deletions