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

[16.0][MIG] - rest_log #354

Merged
merged 15 commits into from
Dec 12, 2023
Merged

[16.0][MIG] - rest_log #354

merged 15 commits into from
Dec 12, 2023

Commits on Dec 12, 2023

  1. rest_log: add sanitize params hook

    Provide a hook to customize stored params.
    At the same time, assume passwords must be always cleaned up.
    simahawk authored and sbejaoui committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    5a16143 View commit details
    Browse the repository at this point in the history
  2. rest_log 15.0.1.0.1

    OCA-git-bot authored and sbejaoui committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    46979c6 View commit details
    Browse the repository at this point in the history
  3. [16.0][MIG] - rest_log

    sbejaoui committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    126d60d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    abda1ab View commit details
    Browse the repository at this point in the history
  5. [IMP] rest_log: never crash the call because of the log

    nans authored and sbejaoui committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    cf678f7 View commit details
    Browse the repository at this point in the history
  6. [IMP] rest_log: do not fail logging because of non-serializable param…

    …eters
    nans authored and sbejaoui committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    a0d2c2b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cb64427 View commit details
    Browse the repository at this point in the history
  8. [FIX] rest_log: fix params management

    SilvioC2C authored and sbejaoui committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    9dbfa2f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    17c6ef2 View commit details
    Browse the repository at this point in the history
  10. [IMP] rest_log: handle odoo.http.Response objects in logs

    Some endpoints will not return a dict as expected by the ``_dispatch_with_db_logging`` method (and the other methods called within), but an object of type ``odoo.http.Response``.
    When that happens, the instance fails to handle it while creating logs (ie: tries to call ``json.dumps()`` on such object, which is not allowed).
    This patch should fix the issue.
    SilvioC2C authored and sbejaoui committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    a275c69 View commit details
    Browse the repository at this point in the history
  11. rest_log: add hook to customize result

    simahawk authored and sbejaoui committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    b2fc4d7 View commit details
    Browse the repository at this point in the history
  12. rest_log: add hook to customize error

    simahawk authored and sbejaoui committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    2ddda58 View commit details
    Browse the repository at this point in the history
  13. rest_log: postpone serialization of values

    This way we can hook an manipulate data w/out having to decode from JSON back and forth.
    simahawk authored and sbejaoui committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    27d62b2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    cb8e8c5 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    daab30b View commit details
    Browse the repository at this point in the history