https://bugs.kde.org/show_bug.cgi?id=514055

            Bug ID: 514055
           Summary: Irresponsive Update Stock and Currency Prices UI with
                    file-based online quotes
    Classification: Applications
           Product: kmymoney
      Version First 5.2.1
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: ux-ui
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
I have 2 investment accounts. Each of them uses a different custom Online Quote
to get the prices of my stocks updated. From a functional perspective, both
work just fine, that is, I'm able to get the prices of my stocks updated. The
first one uses a remote HTML endpoint that returns a JSON object which strips
the price and date of each stock. The second uses a custom script I created.
The URL is file:/home/musikolo/scripts/kmymoney-quote.sh %1. Each call to the
script takes around half a second:

[musikolo@MyPc ~]$ time sh file:/home/musikolo/scripts/kmymoney-quote.sh
stock-id
15.925
2025-12-31
real    0m0.434s
user    0m0.134s
sys     0m0.041s

I have 14 different stocks that depend on this Online Quote, and I noticed that
the UI doesn't respond until all of them are updated. The first few times this
happened to me, I got the feeling the app was frozen (and I killed it).
However, if you give it around 10-15 seconds, the app comes back to live and it
shows all prices updated at once. However, with the HTML-based online quote,
what I see is that once the price of a stock is retrieved, it  immediately
shows on screen. I miss the same behavior and responsiveness would occur with
the file-based Online Quotes.

STEPS TO REPRODUCE
1. Create 2 investment accounts with 15+ stocks.
2. Create an HTML-based Online Quote for the 1st investment account, and
another file-based Online Quote for the 2nd investment account.
3. Update the prices of the stocks of both investment accounts. 

OBSERVED RESULT
- Updating the prices of the stocks with the HTML-based Online Quote is very
responsive. As soon as the price of a stock is retrieved, it immediately shows
on the screen.
- Updating the prices of the stocks with the file-based Online Quote is totally
irresponsive. Nothing happens on the UI until all prices are retrieved. The
application looks like frozen while the update process is ongoing.

EXPECTED RESULT
- Updating the prices of the stocks with a file-based Online Quote should be
responsive. As soon as the price of a stock is retrieved, it immediately shows
on the screen. The same UI behavior is expected to occur for both, HTML-based
and file-based Online Quotes.

SOFTWARE/OS VERSIONS
- Linux/KDE Plasma: 6.5.4
- KDE Plasma Version: 6.5.4
- KDE Frameworks Version: 6.21.0
- Qt Version: 6.10.1

ADDITIONAL INFORMATION
- Kernel version: 6.18.2-arch2-1 (64-bit)
- Graphics Platform: Wayland

Happy New Year! :-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to