-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
API: reconciled: false
does not have precedence
#8893
Comments
I'll check it out, thanks! |
Hi there! This is an automatic reply. This issue has been marked as being in triage. The root cause is not known yet, or the issue needs more investigation. You can help by sharing debug information (from Thank you for your contributions. |
Assuming you want to update protected fields.
|
Alright thank you, I'll add some code for this case in my app then to not re-submit unmodified values. |
Support guidelines
I've found a bug and checked that ...
Description
Dealing with changes to reconciled transactions using the API is a bit unexpected.
When editing a reconciled transaction via
PUT api/v1/transactions/1234
, as soon as the request has any "protected" field the API call will fail with an error that the transaction is reconciled. This is true even whenreconciled: false
is submitted in the request, or if the "protected" field value is not changed.Debug information
Demo Page
Expected behaviour
reconciled: false
, it should un-reconcile the transaction and then proceed any changes made in the same request. Currently, areocnciled: false
request is needed, followed by a separate request to actually update any fields.amount
, but that field is not changed compared to the stored value, the request should not fail but proceed to update any other fields if applicable.Steps to reproduce
No response
Additional info
Looking at the web page, all fields seem to be filtered out of the update request when the transaction is reconciled to not fail according to the second point above. If this is the way you intend it to be, then consider this request only for the first point above (as this is quite annoying), and I'll implement something similar like the web page in the app!
The text was updated successfully, but these errors were encountered: