Martin Trigaux
e95aeb659c
Forward port of branch saas-5 up to 9a7f48a
2014-09-02 14:50:51 +02:00
Martin Trigaux
b707719891
[IMP] gamification: improve 40e8437 to make only one global request
2014-09-02 11:25:02 +02:00
Martin Trigaux
40e843761f
[FIX] gamification: performance improvement
...
On a large database, thousands of badges may have been granted. This code used to prefetch all fields of the users and badge users. This was highly inefficient. Replace this code by SQL query.
2014-09-01 17:40:47 +02:00
Olivier Dony
e11eddf753
[MERGE] Forward-port of saas-5 up to 20cc18d
2014-08-13 20:46:47 +02:00
Olivier Dony
2a94d1d811
[MERGE] Forward-port saas-4 up to 2694ed1
2014-08-13 17:34:27 +02:00
Olivier Dony
2694ed1472
[MERGE] Forward-port saas-3 up to b9275da
2014-08-13 17:33:12 +02:00
Olivier Dony
7aa0376f3e
[FIX] gamification: prohibitive record rule processing with many users/goals
...
Due to the multi-company record rule on gamification.goal,
each access to the Goals menu and each opening of the
Messaging menu (thus calling get_serialised_gamification_summary())
is extremely slow (with several thousands goals/users).
Adding auto_join to the user_id FK on goals makes it much
faster. However it causes crashes when reading the table
because the _order of gamification.goal uses `create_date`,
which becomes ambiguous after the auto_join with res_users.
Solving this can be done by re-implementing _read_flat()
in the ORM using the internal Query object, as in search(),
which takes care of fully-qualifying all column names.
Until this is fixed, a simple workaround is to use
start_date in the _order instead of collision-prone `create_date`.
2014-08-13 13:47:50 +02:00
cod-odoo
fca77ad8c5
[FIX] gamification: prevent traceback in goals history
...
Closes #1536
2014-08-04 11:37:26 +02:00
Raphael Collet
cbe2dbb672
[MERGE] new v8 api by rco
...
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.
- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Jaydeep Barot
026e38b48f
[REM] Unnecessary size parameters on char fields
2014-06-25 17:13:43 +02:00
Christophe Simonis
eef6330c55
[MERGE] forward port of branch saas-5 up to adf07a9
2014-06-19 16:23:32 +02:00
Christophe Simonis
adf07a9490
[MERGE] forward port of branch saas-4 up to 5087612
2014-06-19 16:13:35 +02:00
Christophe Simonis
5087612d1d
[MERGE] forward port of branch saas-3 up to bf53aed
2014-06-19 15:44:07 +02:00
Paramjit Singh Sahota
9bb0abd641
[FIX] GAMIFICATION: Fixed the Attribute Error
...
' 'str' object has no attribute 'strftime' '
2014-06-17 15:12:15 +02:00
Olivier Dony
0f01df42ea
[MERGE] Forward-port saas-5 up to f15cbd6
2014-06-12 18:59:15 +02:00
Olivier Dony
f15cbd6520
[MERGE] Forward-port saas-4 bugfixes up to ad4c6ca
2014-06-12 18:54:36 +02:00
Christophe Simonis
7bee9447c4
[MERGE] forward port of branch saas-3 up to 3c7a54a
2014-06-11 11:06:04 +02:00
Martin Trigaux
387093a34a
gamification: when changing the domain on a goal definition give a simple check to avoid getting a traceback when the challenge is reloaded
2014-06-10 12:03:32 +02:00
Christophe Simonis
a5908c5812
[MERGE] forward port of branch saas-5 up to b1c0bc0
2014-06-03 20:02:00 +02:00
Christophe Simonis
b1c0bc0b46
[MERGE] forward port of branch saas-4 up to 65f68c1
2014-06-03 19:45:19 +02:00
Martin Trigaux
aa1165441c
[FIX] gamification: do not group on agregated field for sum
...
The read_group behaviour has changed and read_group no longer sum on the field you are grouping.
Instead agregate on the field we want to sum and use no groupby.
For future version, grouping on a user such as what is done in batch mode is a better way to process.
2014-06-03 10:48:26 +02:00
Martin Trigaux
ae8e7ea920
[IMP] gamification: remove deprecated method
2014-06-02 15:15:53 +02:00
Christophe Simonis
a756b82372
[MERGE] forward port of branch saas-4 up to revid bb26dea
2014-05-20 20:19:55 +02:00
Martin Trigaux
8f2bbf73ae
[FIX] gamification: avoid sending reports for non-reported challenges
2014-05-14 16:15:18 +02:00
Martin Trigaux
ce5ba45d45
[IMP] gamification: avoid fetching function field while we could reuse the cache system of the browse records (avoid memory errors when updating a large number of records)
2014-05-14 15:41:38 +02:00
Martin Trigaux
0043a58763
Forward-port of latest saas-3, up to revision 9456 (yep I missed one commit)
2014-05-14 11:01:36 +02:00
Martin Trigaux
3ff7b48a81
[FIX] gamification: make sure than a cron running more than once a day will not report the progress more than once
2014-05-14 10:59:20 +02:00
Martin Trigaux
583fe74ba2
Forward-port of latest saas-3, up to revision 9455 (rev-id mat@openerp.com-20140514080416-m4t23y0rxx2ot7y6)
2014-05-14 10:37:54 +02:00
Martin Trigaux
f14f632ef5
[IMP] gamification: improve the name of some m2m relations
...
bzr revid: mat@openerp.com-20140512092718-s6143ajy2g18ofy4
2014-05-12 11:27:18 +02:00
Martin Trigaux
3691ee0ca7
[FIX] gamification: avoid challenge to be initialised at the target limit (e.g. set your company data goal has a target of 0) and make sure we will compute the goal at least once
...
bzr revid: mat@openerp.com-20140509131839-lm5zt696sif1krvx
2014-05-09 15:18:39 +02:00
Martin Trigaux
fd50793820
[IMP] gamification: avoid subscription hacks and send directly relevant messages to followers of the challenge, remove the goals of users not matching the user domain anymore
...
bzr revid: mat@openerp.com-20140507095616-1xvetgj4qel7iqii
2014-05-07 11:56:16 +02:00
Martin Trigaux
3fa2751855
[FIX] name_get returns tuple
...
bzr revid: mat@openerp.com-20140506143834-od28gkhbpbhsgde4
2014-05-06 16:38:34 +02:00
Martin Trigaux
3cdb9803d4
[IMP] unsubscribing at each cron run is overkill
...
bzr revid: mat@openerp.com-20140506135953-3hssq2lycvy1c3df
2014-05-06 15:59:53 +02:00
Martin Trigaux
687d675de5
[FIX] gamification: using batch mode to check rewards
...
bzr revid: mat@openerp.com-20140506134805-4nsurv82cg9anfvm
2014-05-06 15:48:05 +02:00
Martin Trigaux
409bf269d3
[FIX] gamification: be sure that not challenge get subscribers depending of the report_message_frequency
...
bzr revid: mat@openerp.com-20140506115245-ktuxhcsml466ym6u
2014-05-06 13:52:45 +02:00
Martin Trigaux
a233e26f71
[IMP] gamification: commit for each goal definition in cron
...
bzr revid: mat@openerp.com-20140506113831-iut3aqbwfwbnertv
2014-05-06 13:38:31 +02:00
Martin Trigaux
697dcae728
[IMP] gamification: move write in goal update inside the first loop to be able to group the computation by definition (and potentially apply intermediate commits)
...
bzr revid: mat@openerp.com-20140506112109-z4rsx5umet5x6n26
2014-05-06 13:21:09 +02:00
Martin Trigaux
ccf4d142b0
[FIX] gamification: avoid recomputing every goal for every challenge
...
bzr revid: mat@openerp.com-20140506102942-obopc9j5a2136cxh
2014-05-06 12:29:42 +02:00
Martin Trigaux
bde55baaa9
[IMP] gamification: performance improvement on the goal computation
...
Removing the inheritance to mail.thread will avoid posting message at creation and other tracking mechanism at each write. Updating a challenge with a large number of users will be significantly faster.
bzr revid: mat@openerp.com-20140506093716-xvpe1n2ase2zix0v
2014-05-06 11:37:16 +02:00
Christophe Simonis
7a7d7febf8
[MERGE] forward port of branch saas-3 up to revid 9429 chs@openerp.com-20140424123538-rxk9got9k2on1ki1
...
bzr revid: chs@openerp.com-20140424131824-4ksluvhnegp7kplb
bzr revid: chs@openerp.com-20140424134533-lhhcd32n3s0m9cqk
2014-04-24 15:45:33 +02:00
Martin Trigaux
f73907587b
[FIX] gamification: do not set a start_date by default as the cron starts past challenges (making data challenge to start) and avoid useless write
...
bzr revid: mat@openerp.com-20140424110341-pnu79q44m7gzl8t0
2014-04-24 13:03:41 +02:00
Martin Trigaux
bb91b146dd
[MERGE] [FIX] gamification and website_forum
...
- add noupdate tag
- domain are evaluated at loading
- better user subscription and computation of domain
- batch creation of users
bzr revid: mat@openerp.com-20140422083856-3dffeml5qt0w0dt4
2014-04-22 10:38:56 +02:00
Martin Trigaux
6022f890cb
[FIX] gamification: convert calls to private method and don't forget to create missing goals
...
bzr revid: mat@openerp.com-20140422075247-5rddurvr6ymt80mo
2014-04-22 09:52:47 +02:00
Martin Trigaux
b24252d5e9
[IMP] gamification: force domain to be in unicode
...
bzr revid: mat@openerp.com-20140418163837-32nldgj5u04q9kyu
2014-04-18 18:38:37 +02:00
Martin Trigaux
4725d6f532
[REF] gamification: remove unused ref local variable
...
bzr revid: mat@openerp.com-20140418163440-7y1k3sliuk9bgco8
2014-04-18 18:34:40 +02:00
Martin Trigaux
130f572d81
[IMP] gamification: use evaluated version of the domain.
...
Needs server fix to avoid sending evaluated data.
bzr revid: mat@openerp.com-20140418161053-lc970koh96wfe200
2014-04-18 18:10:53 +02:00
Martin Trigaux
a6bcf53bd3
[IMP] gamification: performance improvement in generation method
...
bzr revid: mat@openerp.com-20140418150618-9g179rleuru44xrt
2014-04-18 17:06:18 +02:00
Martin Trigaux
1b006190d9
[REF] gamification
...
bzr revid: mat@openerp.com-20140418140741-djesyaxahxytnl1n
2014-04-18 16:07:41 +02:00
Martin Trigaux
067f21ce5a
[FIX] gamification: set data in noupdate blocks to allow the user to customise it without loosing changes after update
...
bzr revid: mat@openerp.com-20140418120846-h8yo4ljult88f1h3
2014-04-18 14:08:46 +02:00
Martin Trigaux
6f4efd45bb
[FIX] gamification: change scope of goal_obj variable
...
bzr revid: mat@openerp.com-20140418090520-zq4r6s4g9qn78mvx
2014-04-18 11:05:20 +02:00