Skip to content
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

Open
wants to merge 54 commits into
base: 18.0
Choose a base branch
from

Commits on Nov 20, 2024

  1. Add endpoint_route_handler

    simahawk authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    83a7bba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    911cb58 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5dc4831 View commit details
    Browse the repository at this point in the history
  4. endpoint_route_handler: fix archive/unarchive

    When an endpoint is archived it must be dropped.
    When it's unarchive it must be restored.
    simahawk authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    084f6dc View commit details
    Browse the repository at this point in the history
  5. 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__.
    simahawk authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    6461cf5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2845a75 View commit details
    Browse the repository at this point in the history
  7. Misc fix of authorship name

    simahawk authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    bbc5291 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ac9a366 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    64ff9dd View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b3017c0 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2006961 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    398ed7b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9ee6b23 View commit details
    Browse the repository at this point in the history
  14. [UPD] README.rst

    OCA-git-bot authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    3256dce View commit details
    Browse the repository at this point in the history
  15. [UPD] Update endpoint_route_handler.pot

    oca-ci authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    268cb3e View commit details
    Browse the repository at this point in the history
  16. [UPD] Update endpoint_route_handler.pot

    oca-ci authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    96aa270 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e07e119 View commit details
    Browse the repository at this point in the history
  18. 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.
    simahawk authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    6a5e354 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    927f568 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    ef3422b View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    8755632 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    3f98743 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    f15bab3 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    c0ad492 View commit details
    Browse the repository at this point in the history
  25. 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.
    simahawk authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    4a17f67 View commit details
    Browse the repository at this point in the history
  26. 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.
    simahawk authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    b85af52 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    b5c3b34 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    8a7948f View commit details
    Browse the repository at this point in the history
  29. [UPD] Update endpoint_route_handler.pot

    oca-ci authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    cb00612 View commit details
    Browse the repository at this point in the history
  30. [UPD] README.rst

    OCA-git-bot authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    9e1117a View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    a2f2da2 View commit details
    Browse the repository at this point in the history
  32. [UPD] README.rst

    OCA-git-bot authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    fefa593 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    9862cf7 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    366819e View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    c8deb4d View commit details
    Browse the repository at this point in the history
  36. [UPD] Update endpoint_route_handler.pot

    oca-ci authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    adfde55 View commit details
    Browse the repository at this point in the history
  37. [UPD] README.rst

    OCA-git-bot authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    df21367 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    24e8d75 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    774fb8e View commit details
    Browse the repository at this point in the history
  40. [UPD] Update endpoint_route_handler.pot

    oca-ci authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    2a19c06 View commit details
    Browse the repository at this point in the history
  41. [UPD] README.rst

    OCA-git-bot authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    1abe61e View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    d497bd9 View commit details
    Browse the repository at this point in the history
  43. 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/
    mymage authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    3dc72ea View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    b9e7a44 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    e64246c View commit details
    Browse the repository at this point in the history
  46. [UPD] Update endpoint_route_handler.pot

    oca-ci authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    da1641c View commit details
    Browse the repository at this point in the history
  47. [BOT] post-merge updates

    OCA-git-bot authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    8811189 View commit details
    Browse the repository at this point in the history
  48. Update translation files

    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/
    weblate authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    10c8a1c View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    1207fb2 View commit details
    Browse the repository at this point in the history
  50. [BOT] post-merge updates

    OCA-git-bot authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    ba39664 View commit details
    Browse the repository at this point in the history
  51. [FIX] endpoint_route_handler: acl warning

    Empty group_id in acl is deprecated.
    see odoo/odoo@ce1a4a2
    qgroulard authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    b345c1d View commit details
    Browse the repository at this point in the history
  52. [BOT] post-merge updates

    OCA-git-bot authored and BertVGroenendael committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    d0179f5 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    2a7f6ad View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    a287d22 View commit details
    Browse the repository at this point in the history