Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
d7442458 by Cédric Krier at 2023-09-20T10:15:28+02:00
Return an ordered tuple for groups of current user

So the tuple can be easily compared and used as key.
- - - - -
faeda566 by Cédric Krier at 2023-09-22T11:04:29+02:00
Use user groups instead of user id in key of access cache

This increases the cache hint as it should be less group combinations than
users.
- - - - -
3d928b49 by Cédric Krier at 2023-09-21T14:05:03+02:00
Remove unused name parameter from User.get_groups
- - - - -
86f52c76 by Cédric Krier at 2023-09-22T13:42:59+02:00
Remove unnecessary clear of caches when groups are modified

It is the link between group and user that matters for the caches.
- - - - -
489e27eb by Cédric Krier at 2023-09-21T14:07:51+02:00
Remove own session access rules

They are useless because session models CRWD methods are not available for
RPC.
- - - - -
8976c870 by Cédric Krier at 2023-09-21T14:51:42+02:00
Remove own favorite access rule

The favorites are managed by dedicated get/set/unset methods which enforce
same user.
So we can just restrict modification to administrator group.
- - - - -
179dd150 by Cédric Krier at 2023-09-21T17:55:40+02:00
Remove own export access rules

Instead we use dedicated get/set/unset methods which enforce access rights.
- - - - -
df84ccbd by Cédric Krier at 2023-09-21T17:55:29+02:00
Remove own view search access rules

Instead we use dedicated get/set/unset methods which enforce access rights.
- - - - -
01aecbcc by Cédric Krier at 2023-09-24T13:23:53+02:00
Use dedicated method to skip user warning
- - - - -
f2d4e71a by Cédric Krier at 2023-09-24T13:59:00+02:00
Allow customizing context per model for rule
- - - - -
52ba8409 by Cédric Krier at 2023-09-24T13:35:39+02:00
Remove user from evaluation context of rule domain

Closes #12581
- - - - -
5282fcc1 by Cédric Krier at 2023-09-24T13:56:20+02:00
Remove employee and employees from evaluation context of rule domain

Closes #12581
- - - - -
88e48416 by Cédric Krier at 2023-09-21T17:53:48+02:00
Require a user application

There is no empty option so it is in fact required so it is better that the UI
manage it.
- - - - -
1e65b4f6 by Cédric Krier at 2023-09-21T17:54:29+02:00
Expand menu column in favorite list
- - - - -
e61cd534 by Cédric Krier at 2023-09-22T12:58:20+02:00
Clean unrelated comment in ModelButton delete
- - - - -
24336a58 by Cédric Krier at 2023-09-22T15:22:57+02:00
Remove context from view toolbar cache

The cached values depend only on the language and the groups of the user.
- - - - -
5eb049eb by Cédric Krier at 2023-09-22T15:26:54+02:00
Remove context from keyword cache

The cached values depend only on the language and the groups of the user.
- - - - -
8a2762f4 by Cédric Krier at 2023-09-22T15:28:58+02:00
Remove context on RNG cache

The content of RNG does not depend on the context.
- - - - -
39f1e569 by Cédric Krier at 2023-09-22T15:39:26+02:00
Use groups as key for fields_view_get cache

This permits to not clear the cache when users or actions are modified.
- - - - -
003e0215 by Cédric Krier at 2023-09-22T15:48:16+02:00
Clear view toolbar cache when translations are changed
- - - - -
a0ab7c6b by Cédric Krier at 2023-09-22T15:49:13+02:00
Clear action keyword cache when translations are changed

The cache contains the translated label of the actions.
- - - - -
00bb7fe0 by Cédric Krier at 2023-09-22T15:50:50+02:00
Use memory cache for RNG

The cache store the etree element so it can only be cached in memory.
- - - - -
4c522e6f by Cédric Krier at 2023-09-23T16:02:38+02:00
Remove user from contextual key of Cache

The user was added by 08e1868e307c because it was part of the arguments of the
cached function before.
But actually cache would have better hit ratio without the user as many users
should share the same context.
- - - - -
e6d0edc1 by Cédric Krier at 2023-09-23T18:22:20+02:00
Clear cache when specific types and models are modified

The cached values linked to translations are rarely modified but other
translations can be modified very often by users.
- - - - -


30 changed files:

- modules/attendance/__init__.py
- + modules/attendance/ir.py
- modules/company/CHANGELOG
- modules/company/ir.py
- modules/company/res.py
- modules/purchase_requisition/__init__.py
- + modules/purchase_requisition/ir.py
- modules/timesheet/__init__.py
- + modules/timesheet/ir.py
- sao/src/common.js
- sao/src/rpc.js
- sao/src/window.js
- tryton/tryton/common/common.py
- tryton/tryton/gui/window/win_export.py
- trytond/CHANGELOG
- trytond/trytond/cache.py
- trytond/trytond/ir/action.py
- trytond/trytond/ir/export.py
- trytond/trytond/ir/model.py
- trytond/trytond/ir/rule.py
- trytond/trytond/ir/translation.py
- trytond/trytond/ir/ui/menu.py
- trytond/trytond/ir/ui/view.py
- trytond/trytond/ir/view/export_form.xml
- trytond/trytond/ir/view/export_list.xml
- trytond/trytond/ir/view/ui_menu_favorite_list.xml
- trytond/trytond/model/modelview.py
- trytond/trytond/res/__init__.py
- trytond/trytond/res/group.py
- trytond/trytond/res/ir.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/766e6e71e72759a0f5717916db68eb8f076900ca...e6d0edc120cc35f2be67026bbe34ea9d829e4c2b

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/766e6e71e72759a0f5717916db68eb8f076900ca...e6d0edc120cc35f2be67026bbe34ea9d829e4c2b
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to