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] usability_webhooks #242

Open
wants to merge 45 commits into
base: 18.0
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
8e01f10
[ADD] usability_webhook
Saran440 Apr 20, 2022
6baabb4
[FIX] convert type
Saran440 Aug 3, 2022
1be9bb0
[15.0][MIG] usability_webhook
Saran440 Jun 29, 2023
d096274
[ENH] webhook logs and test itself
Saran440 Aug 10, 2023
d7dee90
[FIX] add create date on list view
Saran440 Aug 11, 2023
ce36653
[FIX] create logs after done
Saran440 Aug 11, 2023
4093452
[FIX] return api.log with false exception
Saran440 Aug 15, 2023
95411f0
[FIX] rollback api configuration on system parameter
Saran440 Aug 15, 2023
8e84f39
[FIX] self to request
Saran440 Aug 15, 2023
03fc226
[FIX] api log view
Saran440 Aug 24, 2023
ab62639
[ENH] api logs
Saran440 Sep 13, 2023
5f27af4
[IMP] usability_webhooks: pre-commit stuff
Saran440 Nov 28, 2023
102162a
[MIG] usability_webhooks: Migration to 16.0
Saran440 Nov 28, 2023
4930710
[ENH] webhooks: search_data by query
Saran440 Dec 8, 2023
51670c7
[FIX] traceback error when call api is not success
Saran440 Dec 14, 2023
b414600
[UPD] send context for function create()
Saran440 Dec 27, 2023
202e0d6
[ENH] usability_webhook: performance with cache
Saran440 Apr 10, 2024
76d7a49
[FIX] usability_webhooks: improved word error with key
Saran440 Apr 11, 2024
f1ae7d9
[ENH] webhooks_usability: enhance auto-vacuum log
Saran440 Apr 23, 2024
681c48c
[UPD] copier update
Saran440 Jul 17, 2024
d95c95e
[UDP] usage update
Pani-k-folk Jul 26, 2024
9654968
[ENH] add new api for call method
Pani-k-folk Aug 20, 2024
1252486
[UDP] usage update
Pani-k-folk Aug 20, 2024
7b4c20e
[ADD] usability_webhooks: can choose whether to keep log
Pani-k-folk Jul 23, 2024
d4d129b
[ENH] usability_webhooks: search_data by search_read function
Saran440 Jul 19, 2024
9d0d024
[IMP] usability_wenhooks: filter value 2many in search_data
Saran440 Sep 30, 2024
c81bcb6
[IMP] usability_webhooks: support x2many, many2one to fetch field
Saran440 Sep 30, 2024
6e1defc
[IMP] usability_webhooks: add key for product.template
Pani-k-folk Oct 1, 2024
3fb2aa2
[FIX] usability_webhooks: version
Saran440 Oct 1, 2024
4de7f79
[FIX] usability_webhooks: add call function logs
Saran440 Oct 1, 2024
9d80be3
[FIX] usability_webhooks: readme
Saran440 Oct 1, 2024
f91f1ad
[IMP] usability_webhooks: check_company
Pani-k-folk Oct 1, 2024
2fbd018
[IMP] usability_webhooks: use parameter 'search_key' to search record
Saran440 Oct 3, 2024
6f89192
[FIX] usability_webhooks: multi search_key
Saran440 Oct 4, 2024
e1b994a
[FIX] usability_webhooks: varresult_dict
Saran440 Oct 8, 2024
47272e4
[FIX] usability_webhooks: orm cache
Saran440 Oct 10, 2024
5c04568
[FIX] update copier with ruff format
Nov 14, 2024
8fc8b3a
[IMP] usability_webhooks: update multi record
Nov 14, 2024
25b4481
[FIX] update readme
Nov 14, 2024
8ffad89
[FIX] usability_webhooks: split function for hooks
Saran440 Nov 21, 2024
aa9c06c
[IMP] usability_webhooks: pre-commit auto fixes
Saran440 Mar 10, 2025
6a65b51
[FIX] usability_webhooks: auto delete log with direct query
Saran440 Dec 13, 2024
2a5f8bc
[IMP] usability_webhooks: many2many format
Saran440 Nov 25, 2024
9e354ad
[IMP] usability_webhooks: support reference type
Saran440 Dec 13, 2024
ecc4201
[MIG] usability_webhooks: Migration to 18.0
Saran440 Mar 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[UDP] usage update
Pani-k-folk authored and Saran440 committed Mar 10, 2025
commit 125248692a3641f56bf94f03f7fde2373df2fbeb
30 changes: 27 additions & 3 deletions usability_webhooks/README.rst
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ and the body should include:
}
}
Following successful authentication, you can proceed with four API routes:
Following successful authentication, you can proceed with five API routes:

1. '/api/create_data': This route allows the creation of new data only.
The format for creating data should be in the following structure:
@@ -95,7 +95,7 @@ The format follows that of 'create_data', but it requires a unique key in the fi
3. '/api/update_data': This route allows updating exist data.
using a unique key in the field to find the desired data and update values in that recordset.
using a unique key in the field to find the desired data and update values in that recordset.

.. code-block:: python
@@ -114,7 +114,7 @@ The format follows that of 'create_data', but it requires a unique key in the fi
4. '/api/search_data': This route allows you to search for the value of a desired field in a model.
by using a search domain to find the desired recordset. You can also limit and order the resulting data
by using a search domain to find the desired recordset. You can also limit and order the resulting data

.. code-block:: python
@@ -132,6 +132,30 @@ The format follows that of 'create_data', but it requires a unique key in the fi
}
}
5. '/api/call_function': This route allows you to call a function on a model object based on the provided input.

Parameters:
- name (str): The name of the model to perform the function on.
- method (str): The name of the function to call.
- parameter (dict):
A dictionary containing the arguments to pass to the function. (if any)

.. code-block:: python
{
"params": {
"model": "<model name>",
"vals": {
"payload": {
"name": "<name>",
"method": "<method>",
"parameter": {},
}
}
}
}
Bug Tracker
===========

30 changes: 27 additions & 3 deletions usability_webhooks/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ and the body should include:
}
}
Following successful authentication, you can proceed with four API routes:
Following successful authentication, you can proceed with five API routes:

1. '/api/create_data': This route allows the creation of new data only.
The format for creating data should be in the following structure:
@@ -55,7 +55,7 @@ The format follows that of 'create_data', but it requires a unique key in the fi
3. '/api/update_data': This route allows updating exist data.
using a unique key in the field to find the desired data and update values in that recordset.
using a unique key in the field to find the desired data and update values in that recordset.

.. code-block:: python
@@ -74,7 +74,7 @@ The format follows that of 'create_data', but it requires a unique key in the fi
4. '/api/search_data': This route allows you to search for the value of a desired field in a model.
by using a search domain to find the desired recordset. You can also limit and order the resulting data
by using a search domain to find the desired recordset. You can also limit and order the resulting data

.. code-block:: python
@@ -91,3 +91,27 @@ The format follows that of 'create_data', but it requires a unique key in the fi
}
}
}
5. '/api/call_function': This route allows you to call a function on a model object based on the provided input.

Parameters:
- name (str): The name of the model to perform the function on.
- method (str): The name of the function to call.
- parameter (dict):
A dictionary containing the arguments to pass to the function. (if any)

.. code-block:: python
{
"params": {
"model": "<model name>",
"vals": {
"payload": {
"name": "<name>",
"method": "<method>",
"parameter": {},
}
}
}
}