-
-
Notifications
You must be signed in to change notification settings - Fork 68
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 #65
base: 18.0
Are you sure you want to change the base?
Commits on Oct 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b3bc435 - Browse repository at this point
Copy the full SHA b3bc435View commit details -
Configuration menu - View commit details
-
Copy full SHA for e57f7a2 - Browse repository at this point
Copy the full SHA e57f7a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for faf66e3 - Browse repository at this point
Copy the full SHA faf66e3View 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 11bc0ef - Browse repository at this point
Copy the full SHA 11bc0efView 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 4216646 - Browse repository at this point
Copy the full SHA 4216646View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3cf882 - Browse repository at this point
Copy the full SHA f3cf882View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e73280 - Browse repository at this point
Copy the full SHA 8e73280View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d2071c - Browse repository at this point
Copy the full SHA 5d2071cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39bbced - Browse repository at this point
Copy the full SHA 39bbcedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2642311 - Browse repository at this point
Copy the full SHA 2642311View commit details -
Configuration menu - View commit details
-
Copy full SHA for 512fbad - Browse repository at this point
Copy the full SHA 512fbadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94b76c9 - Browse repository at this point
Copy the full SHA 94b76c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa8ba4e - Browse repository at this point
Copy the full SHA aa8ba4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0845ca7 - Browse repository at this point
Copy the full SHA 0845ca7View commit details -
[UPD] Update endpoint_route_handler.pot
oca-ci authored and Samir GUESMI committedOct 20, 2024 Configuration menu - View commit details
-
Copy full SHA for 4765292 - Browse repository at this point
Copy the full SHA 4765292View commit details -
[UPD] Update endpoint_route_handler.pot
oca-ci authored and Samir GUESMI committedOct 20, 2024 Configuration menu - View commit details
-
Copy full SHA for 2bb5f49 - Browse repository at this point
Copy the full SHA 2bb5f49View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4a0e63 - Browse repository at this point
Copy the full SHA f4a0e63View 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 76b0032 - Browse repository at this point
Copy the full SHA 76b0032View commit details -
Configuration menu - View commit details
-
Copy full SHA for 076ecda - Browse repository at this point
Copy the full SHA 076ecdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c8e799 - Browse repository at this point
Copy the full SHA 3c8e799View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25de451 - Browse repository at this point
Copy the full SHA 25de451View commit details -
Configuration menu - View commit details
-
Copy full SHA for d812022 - Browse repository at this point
Copy the full SHA d812022View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5bc048 - Browse repository at this point
Copy the full SHA d5bc048View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c0b1fb - Browse repository at this point
Copy the full SHA 2c0b1fbView 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 627b357 - Browse repository at this point
Copy the full SHA 627b357View 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 d01c6ac - Browse repository at this point
Copy the full SHA d01c6acView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4b88cc - Browse repository at this point
Copy the full SHA d4b88ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4796a38 - Browse repository at this point
Copy the full SHA 4796a38View commit details -
[UPD] Update endpoint_route_handler.pot
oca-ci authored and Samir GUESMI committedOct 20, 2024 Configuration menu - View commit details
-
Copy full SHA for f2f3d6a - Browse repository at this point
Copy the full SHA f2f3d6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d6ff17e - Browse repository at this point
Copy the full SHA d6ff17eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c19871 - Browse repository at this point
Copy the full SHA 5c19871View commit details -
Configuration menu - View commit details
-
Copy full SHA for a654f6a - Browse repository at this point
Copy the full SHA a654f6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d2f918 - Browse repository at this point
Copy the full SHA 6d2f918View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0e541c - Browse repository at this point
Copy the full SHA e0e541cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87977e6 - Browse repository at this point
Copy the full SHA 87977e6View commit details -
[UPD] Update endpoint_route_handler.pot
oca-ci authored and Samir GUESMI committedOct 20, 2024 Configuration menu - View commit details
-
Copy full SHA for 1bc4523 - Browse repository at this point
Copy the full SHA 1bc4523View commit details -
Configuration menu - View commit details
-
Copy full SHA for 398e1c4 - Browse repository at this point
Copy the full SHA 398e1c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f1bd81 - Browse repository at this point
Copy the full SHA 1f1bd81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f0c640 - Browse repository at this point
Copy the full SHA 5f0c640View commit details -
[UPD] Update endpoint_route_handler.pot
oca-ci authored and Samir GUESMI committedOct 20, 2024 Configuration menu - View commit details
-
Copy full SHA for 6b3db7c - Browse repository at this point
Copy the full SHA 6b3db7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 69b5243 - Browse repository at this point
Copy the full SHA 69b5243View commit details -
Configuration menu - View commit details
-
Copy full SHA for 492c25d - Browse repository at this point
Copy the full SHA 492c25dView 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 c6c80c9 - Browse repository at this point
Copy the full SHA c6c80c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for aad97a1 - Browse repository at this point
Copy the full SHA aad97a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 947936e - Browse repository at this point
Copy the full SHA 947936eView commit details -
[UPD] Update endpoint_route_handler.pot
oca-ci authored and Samir GUESMI committedOct 20, 2024 Configuration menu - View commit details
-
Copy full SHA for f305b1f - Browse repository at this point
Copy the full SHA f305b1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1c3ba0 - Browse repository at this point
Copy the full SHA c1c3ba0View 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 85b138e - Browse repository at this point
Copy the full SHA 85b138eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51b62fe - Browse repository at this point
Copy the full SHA 51b62feView commit details -
Configuration menu - View commit details
-
Copy full SHA for c244e04 - Browse repository at this point
Copy the full SHA c244e04View commit details
Commits on Oct 21, 2024
-
[MIG] endpoint_route_handler: Migration to 18.0
Samir GUESMI committedOct 21, 2024 Configuration menu - View commit details
-
Copy full SHA for b1a230b - Browse repository at this point
Copy the full SHA b1a230bView commit details