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 #65

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

Commits on Oct 20, 2024

  1. Add endpoint_route_handler

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    b3bc435 View commit details
    Browse the repository at this point in the history
  2. endpoint_route_handler: reduce log noise

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    e57f7a2 View commit details
    Browse the repository at this point in the history
  3. endpoint_route_handler 14.0.1.0.1

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    faf66e3 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 Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    11bc0ef 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 Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    4216646 View commit details
    Browse the repository at this point in the history
  6. endpoint_route_handler 14.0.1.0.2

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    f3cf882 View commit details
    Browse the repository at this point in the history
  7. Misc fix of authorship name

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    8e73280 View commit details
    Browse the repository at this point in the history
  8. endpoint_route_handler 14.0.1.0.3

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    5d2071c View commit details
    Browse the repository at this point in the history
  9. endpoint_route_handler: fix rules by group

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    39bbced View commit details
    Browse the repository at this point in the history
  10. endpoint_route_handler 14.0.1.0.4

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    2642311 View commit details
    Browse the repository at this point in the history
  11. endpoint_route_handler: dev status = Beta

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    512fbad View commit details
    Browse the repository at this point in the history
  12. endpoint_route_handler 14.0.1.1.0

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    94b76c9 View commit details
    Browse the repository at this point in the history
  13. endpoint_route_handler: move to OCA/web-api

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    aa8ba4e View commit details
    Browse the repository at this point in the history
  14. [UPD] README.rst

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    0845ca7 View commit details
    Browse the repository at this point in the history
  15. [UPD] Update endpoint_route_handler.pot

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

    oca-ci authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    2bb5f49 View commit details
    Browse the repository at this point in the history
  17. endpoint_route_handler: fix cross worker lookup

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    f4a0e63 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 Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    76b0032 View commit details
    Browse the repository at this point in the history
  19. endpoint_route_handler: add constraints

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    076ecda View commit details
    Browse the repository at this point in the history
  20. endpoint_route_handler: add auto timestamp to routes

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    3c8e799 View commit details
    Browse the repository at this point in the history
  21. endpoint_route_handler: fix typo in validator

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    25de451 View commit details
    Browse the repository at this point in the history
  22. endpoint_route_handler: add new tool model

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    d812022 View commit details
    Browse the repository at this point in the history
  23. endpoint_route_handler: use sequence as version

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    d5bc048 View commit details
    Browse the repository at this point in the history
  24. endpoint_route_handler: log table setup and wipe

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    2c0b1fb 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 Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    627b357 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 Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    d01c6ac View commit details
    Browse the repository at this point in the history
  27. endpoint_route_handler: fix auto_not_found param

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    d4b88cc View commit details
    Browse the repository at this point in the history
  28. endpoint_route_handler: 14.0.2.0.0

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    4796a38 View commit details
    Browse the repository at this point in the history
  29. [UPD] Update endpoint_route_handler.pot

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

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    d6ff17e View commit details
    Browse the repository at this point in the history
  31. endpoint_route_handler: update ROADMAP

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    5c19871 View commit details
    Browse the repository at this point in the history
  32. [UPD] README.rst

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    a654f6a View commit details
    Browse the repository at this point in the history
  33. endpoint_route_handler 14.0.2.0.1

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    6d2f918 View commit details
    Browse the repository at this point in the history
  34. endpoint_route_handler: migrate to v16

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    e0e541c View commit details
    Browse the repository at this point in the history
  35. endpoint_route_handler: adapt to new dispatch

    simahawk authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    87977e6 View commit details
    Browse the repository at this point in the history
  36. [UPD] Update endpoint_route_handler.pot

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

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    398e1c4 View commit details
    Browse the repository at this point in the history
  38. [IMP] endpoint_route_handler: add request_content_type application_js…

    …on_utf8
    OriolMForgeFlow authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    1f1bd81 View commit details
    Browse the repository at this point in the history
  39. endpoint_route_handler 16.0.1.1.0

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    5f0c640 View commit details
    Browse the repository at this point in the history
  40. [UPD] Update endpoint_route_handler.pot

    oca-ci authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    6b3db7c View commit details
    Browse the repository at this point in the history
  41. [UPD] README.rst

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    69b5243 View commit details
    Browse the repository at this point in the history
  42. Added translation using Weblate (Italian)

    mymage authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    492c25d 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 Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    c6c80c9 View commit details
    Browse the repository at this point in the history
  44. [IMP] endpoint_route_handler: pre-commit auto fixes

    nguyenminhchien authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    aad97a1 View commit details
    Browse the repository at this point in the history
  45. [MIG] endpoint_route_handler: Migration to 17.0

    nguyenminhchien authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    947936e View commit details
    Browse the repository at this point in the history
  46. [UPD] Update endpoint_route_handler.pot

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

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    c1c3ba0 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 Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    85b138e View commit details
    Browse the repository at this point in the history
  49. [FIX] endpoint_route_handler: Line too long

    pedrobaeza authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    51b62fe View commit details
    Browse the repository at this point in the history
  50. [BOT] post-merge updates

    OCA-git-bot authored and Samir GUESMI committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    c244e04 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. [MIG] endpoint_route_handler: Migration to 18.0

    Samir GUESMI committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    b1a230b View commit details
    Browse the repository at this point in the history