Closed aclindsa closed 2 years ago
I did some shallow digging, and came up with a candidate for a fix for this issue: https://github.com/redstreet/fava_investor/pull/70
I've attempted to gate the change based on the fava version, but I confess I have not tested it with earlier versions (fava < 1.22) to ensure it still works.
Awesome, thanks for catching these bleeding edge issues. I tend to be slow to ugprade versions, so I'm glad you seem to be on the other end :-) 👍
Left a comment on the PR. Once ready, I'll test on (fava < 1.22) before merging.
Awesome, thanks for catching these bleeding edge issues. I tend to be slow to ugprade versions, so I'm glad you seem to be on the other end :-) +1
Left a comment on the PR. Once ready, I'll test on (fava < 1.22) before merging.
Sounds good! I'll take a look and address it in the next few days as I can.
And FYI, it appears there is another possible issue that I'm now hitting with the latest upstream fava where the output from fava_investor is being output without error by fava, but as raw, un-rendered HTML. I'm suspecting this is another API change we'll need to work around, but haven't yet made time to 1) confirm its not something that I've broken and 2) triage it. So there may be an additional fix coming.
And FYI, it appears there is another possible issue that I'm now hitting with the latest upstream fava where the output from fava_investor is being output without error by fava, but as raw, un-rendered HTML. I'm suspecting this is another API change we'll need to work around, but haven't yet made time to 1) confirm its not something that I've broken and 2) triage it. So there may be an additional fix coming.
It looks like this was an issue in Fava itself: https://github.com/beancount/fava/pull/1440
BTW: I made this change in 757fc2035 (in addition to a03223affaed4) so all modules now respect the UI context. Still waiting on https://github.com/beancount/fava/issues/1467 to complete it.
If you happen to test this out, feedback is appreciated 😃 .
Upstream Fava changed the arguments to
QueryShell.execute_query()
in https://github.com/beancount/fava/commit/6f4bcd5db8603a8baa4cdd190f22d62b0520db46#diff-7ae3e08b8e89a98b64814a30622d443c8b09336df4f7b866c941476f14090bc5 such that it takes an additional positional argument, 'entries', prior to the pre-existing 'query' argument.This leads to failures like: