You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @asafc! I've stumbled upon this issue while experimenting with PATCH as save_method. Am I to understand that this issue is now resolved thanks to #483?
Hi @asafc! I've stumbled upon this issue while experimenting with PATCH as save_method. Am I to understand that this issue is now resolved thanks to #483?
Yes you understand correctly -this issue seems to be a duplicate and is closed by #483
Describe the bug
Currently the field save_method in the OPAL server API 'POST /data/config' is unused.
No matter what we set, it will always perform the save_method PUT.
https://github.com/permitio/opal/blob/master/packages/opal-client/opal_client/data/updater.py#L396
Expected behavior
The field same_method should be used to determined how OPAL gonna push the data on OPA.
At least, i want to implement the PATCH method. In fact, it's already in the code, we just need to use it in the updater (select the method based on the field save_method received).
https://github.com/permitio/opal/blob/master/packages/opal-client/opal_client/policy_store/opa_client.py#L493
OPAL version
The text was updated successfully, but these errors were encountered: