-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[18.0][MIG] endpoint_route_handler: Migration to 18.0 #71
base: 18.0
Are you sure you want to change the base?
[18.0][MIG] endpoint_route_handler: Migration to 18.0 #71
Commits on Nov 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 83a7bba - Browse repository at this point
Copy the full SHA 83a7bbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 911cb58 - Browse repository at this point
Copy the full SHA 911cb58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5dc4831 - Browse repository at this point
Copy the full SHA 5dc4831View commit details -
endpoint_route_handler: fix archive/unarchive
When an endpoint is archived it must be dropped. When it's unarchive it must be restored.
Configuration menu - View commit details
-
Copy full SHA for 084f6dc - Browse repository at this point
Copy the full SHA 084f6dcView commit details -
endpoint_route_handler: fix multi env handling
Routing maps are generated **per env** which means that every new env will have its own routing map attached to `ir.http` registry class. This is not desired (as per core Odoo comment) but it's like this today :/ Hence, before this change, the routing map could be mis-aligned across different envs leading to random responses for custom endpoints. This refactoring simplifies a lot the handling of the rules leaving to std `_generate_routing_rules` the duty to yield rules and to `routing_map` to generate them for the new route map. EndpointRegistry memory consumption is improved too thanks to smaller data to store and to the usage of __slots__.
Configuration menu - View commit details
-
Copy full SHA for 6461cf5 - Browse repository at this point
Copy the full SHA 6461cf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2845a75 - Browse repository at this point
Copy the full SHA 2845a75View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbc5291 - Browse repository at this point
Copy the full SHA bbc5291View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac9a366 - Browse repository at this point
Copy the full SHA ac9a366View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64ff9dd - Browse repository at this point
Copy the full SHA 64ff9ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3017c0 - Browse repository at this point
Copy the full SHA b3017c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2006961 - Browse repository at this point
Copy the full SHA 2006961View commit details -
Configuration menu - View commit details
-
Copy full SHA for 398ed7b - Browse repository at this point
Copy the full SHA 398ed7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ee6b23 - Browse repository at this point
Copy the full SHA 9ee6b23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3256dce - Browse repository at this point
Copy the full SHA 3256dceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 268cb3e - Browse repository at this point
Copy the full SHA 268cb3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96aa270 - Browse repository at this point
Copy the full SHA 96aa270View commit details -
Configuration menu - View commit details
-
Copy full SHA for e07e119 - Browse repository at this point
Copy the full SHA e07e119View commit details -
endpoint_route_handler: add flag to control sync
To avoid multiple invalidation of all envs on each edit or create of persistent records, a new flag is introduced: 'registry_sync'. This flag delays the sync of the rule registry till manual action occurs. Records in the UI are decorated accordingly to notify users of the need to reflect changes on ther registry to make them effective. The sync happens in a post commit hook to ensure all values are in place for the affected records.
Configuration menu - View commit details
-
Copy full SHA for 6a5e354 - Browse repository at this point
Copy the full SHA 6a5e354View commit details -
Configuration menu - View commit details
-
Copy full SHA for 927f568 - Browse repository at this point
Copy the full SHA 927f568View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef3422b - Browse repository at this point
Copy the full SHA ef3422bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8755632 - Browse repository at this point
Copy the full SHA 8755632View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f98743 - Browse repository at this point
Copy the full SHA 3f98743View commit details -
Configuration menu - View commit details
-
Copy full SHA for f15bab3 - Browse repository at this point
Copy the full SHA f15bab3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0ad492 - Browse repository at this point
Copy the full SHA c0ad492View commit details -
endpoint_route_handler: fail gracefully when sync field not ready
Depending on your modules inheritance and upgrade order when you introduce this mixin on an existing model it might happen that gets called before the model's table is ready (eg: another odoo service loading the env before the upgrade happens). Let if fail gracefully since the hook will be called again later.
Configuration menu - View commit details
-
Copy full SHA for 4a17f67 - Browse repository at this point
Copy the full SHA 4a17f67View commit details -
endpoint_route_handler: get rid of register_hook
As routes are registered automatically in the db after sync there's no reason to look for non registered routes at boot. Furthermore, this is causing access conflicts on the table when multiple instances w/ multiple workers are spawned.
Configuration menu - View commit details
-
Copy full SHA for b85af52 - Browse repository at this point
Copy the full SHA b85af52View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5c3b34 - Browse repository at this point
Copy the full SHA b5c3b34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a7948f - Browse repository at this point
Copy the full SHA 8a7948fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb00612 - Browse repository at this point
Copy the full SHA cb00612View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e1117a - Browse repository at this point
Copy the full SHA 9e1117aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2f2da2 - Browse repository at this point
Copy the full SHA a2f2da2View commit details -
Configuration menu - View commit details
-
Copy full SHA for fefa593 - Browse repository at this point
Copy the full SHA fefa593View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9862cf7 - Browse repository at this point
Copy the full SHA 9862cf7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 366819e - Browse repository at this point
Copy the full SHA 366819eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8deb4d - Browse repository at this point
Copy the full SHA c8deb4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for adfde55 - Browse repository at this point
Copy the full SHA adfde55View commit details -
Configuration menu - View commit details
-
Copy full SHA for df21367 - Browse repository at this point
Copy the full SHA df21367View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24e8d75 - Browse repository at this point
Copy the full SHA 24e8d75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 774fb8e - Browse repository at this point
Copy the full SHA 774fb8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a19c06 - Browse repository at this point
Copy the full SHA 2a19c06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1abe61e - Browse repository at this point
Copy the full SHA 1abe61eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d497bd9 - Browse repository at this point
Copy the full SHA d497bd9View commit details -
Translated using Weblate (Italian)
Currently translated at 100.0% (29 of 29 strings) Translation: web-api-16.0/web-api-16.0-endpoint_route_handler Translate-URL: https://translation.odoo-community.org/projects/web-api-16-0/web-api-16-0-endpoint_route_handler/it/
Configuration menu - View commit details
-
Copy full SHA for 3dc72ea - Browse repository at this point
Copy the full SHA 3dc72eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for b9e7a44 - Browse repository at this point
Copy the full SHA b9e7a44View commit details -
Configuration menu - View commit details
-
Copy full SHA for e64246c - Browse repository at this point
Copy the full SHA e64246cView commit details -
Configuration menu - View commit details
-
Copy full SHA for da1641c - Browse repository at this point
Copy the full SHA da1641cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8811189 - Browse repository at this point
Copy the full SHA 8811189View commit details -
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: web-api-17.0/web-api-17.0-endpoint_route_handler Translate-URL: https://translation.odoo-community.org/projects/web-api-17-0/web-api-17-0-endpoint_route_handler/
Configuration menu - View commit details
-
Copy full SHA for 10c8a1c - Browse repository at this point
Copy the full SHA 10c8a1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1207fb2 - Browse repository at this point
Copy the full SHA 1207fb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba39664 - Browse repository at this point
Copy the full SHA ba39664View commit details -
[FIX] endpoint_route_handler: acl warning
Empty group_id in acl is deprecated. see odoo/odoo@ce1a4a2
Configuration menu - View commit details
-
Copy full SHA for b345c1d - Browse repository at this point
Copy the full SHA b345c1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0179f5 - Browse repository at this point
Copy the full SHA d0179f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a7f6ad - Browse repository at this point
Copy the full SHA 2a7f6adView commit details -
Configuration menu - View commit details
-
Copy full SHA for a287d22 - Browse repository at this point
Copy the full SHA a287d22View commit details