felixmosh / bull-board

🎯 Queue background jobs inspector
MIT License
2.14k stars 342 forks source link

Contents of tabs is not updated with polling interval: off #696

Closed dmitriy-kudelko closed 4 months ago

dmitriy-kudelko commented 4 months ago

Hey guys!

Thanks for this great and useful app.

I'd like to report a UI issue which seemingly appeared in one of recent versions. I noticed it while upgrading to 5.14.1. Although tab headers are displayed properly, the bodies (content) are not. So the UI looks as follows:

Screenshot image

Looks like it's something related to routing as refreshing the page fixes the issue. However you need to do it each time you navigate to a different queue in the sidebar.

P.S. I'm using @bull-board/nestjs, but I guess it's just a wrapper, so I'm hopefully reporting this in the appropriate repo.

felixmosh commented 4 months ago

Hi @dmitriy-kudelko, thank you for reporting this issue.

I can't reproduce it with the express adapter (probably not related to server adapter at all)

Can you debug it? Check what do you get in the console.

There is the described behaviour, it refetches the new queue status.

Check the network, maybe there is some pending (un resolved requests)

dmitriy-kudelko commented 4 months ago

Hi @felixmosh ,

Sure I've looked into it and no requests to /api/queues are made when navigation between queues. They only happen when reloading or navigating to a specific queue using browser address bar. There are no errors in the console or long running requests.

So not sure what's going on.

Video https://github.com/felixmosh/bull-board/assets/10288627/6bfab855-ec77-451a-970e-75a62f1c8a0a
felixmosh commented 4 months ago

Can u check if there is a setting that disables the refetch (delay: off)

dmitriy-kudelko commented 4 months ago

@felixmosh , oh yeah, there indeed seems to be a bug related to polling... I had Polling interval set to off. When I set it to any other value (even 15 mins), queues data is properly fetched and displayed when navigating between tabs.

felixmosh commented 4 months ago

Can you elaborate?

dmitriy-kudelko commented 4 months ago

Can you elaborate?

Yes, sorry. I was talking about this settings modal, which pops up when clicking on gear icon on the top right:

Screenshot image

Are we talking about the same thing? Or what did you mean my saying a setting that disables the refetch?

felixmosh commented 4 months ago

polling interval = off, means it stops to poll the server. I thing that you are right, it should refetch when navigating, but without the polling.

Thanx, I'll work on it asap

felixmosh commented 4 months ago

fixed on v5.14.2