kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

FE: UX: Do not auto refresh r/o data

Open AntoonBeres opened this issue 7 months ago • 10 comments

Issue submitter TODO list

  • [x] I've looked up my issue in FAQ
  • [x] I've searched for an already existing issues here
  • [x] I've tried running main-labeled docker image and the issue still persists there
  • [x] I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

The "Schema registry" page in the frontend randomly starts refreshing the table with results (only the table, not the whole page). This happens every time when switching to another tab and back to kafkaui, but also occasionally happens at random.

Expected behavior

It should not randomly refresh the table

Your installation details

Helm chart deployed in kubernetes cluster, using v1.2.0.

Using firefox on windows as browser.

Steps to reproduce

In the dashboard, click on "Schema registry", wait for results to load. Open another tab. switch to other tab in your browser, then switch back to kafka-ui (can be done repeatedly).

Behavior can also be achieved by switching to another window.

Screenshots

No response

Logs

No response

Additional context

No response

AntoonBeres avatar Apr 08 '25 13:04 AntoonBeres

Hi AntoonBeres! 👋

Welcome, and thank you for opening your first issue in the repo!

Please wait for triaging by our maintainers.

As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues. Sponsorship link

If you plan to raise a PR for this issue, please take a look at our contributing guide.

github-actions[bot] avatar Apr 08 '25 13:04 github-actions[bot]

It's never random:

  • window focus
  • internet connection restored
  • background refetch based on a time interval

It should not randomly refresh the table

Please elaborate on 'why'

Haarolean avatar Apr 08 '25 15:04 Haarolean

Further user feedback is requested. Please reply within 7 days or we might close the issue.

kapybro[bot] avatar Apr 08 '25 15:04 kapybro[bot]

@Haarolean I specified in the description, will admit it was a bad title.

It is based on window focus

AntoonBeres avatar Apr 08 '25 15:04 AntoonBeres

Thanks for the additional feedback! We'll get back to your issue soon.

kapybro[bot] avatar Apr 08 '25 15:04 kapybro[bot]

The question stands, why should this be changed?

Haarolean avatar Apr 08 '25 16:04 Haarolean

Further user feedback is requested. Please reply within 7 days or we might close the issue.

kapybro[bot] avatar Apr 09 '25 04:04 kapybro[bot]

@Haarolean Because, we have a very large schema registry, imagine copying values back and forth from kafkaUI to somewhere else and every time you switch tabs/windows, you have to wait for 10seconds for the table to load because it is refreshing

I wouldn't call that a great user experience.

AntoonBeres avatar Apr 09 '25 08:04 AntoonBeres

Thanks for the additional feedback! We'll get back to your issue soon.

kapybro[bot] avatar Apr 09 '25 08:04 kapybro[bot]

I see, it's a valid point. Perhaps our approach here should be to take a look at #472 and expand the feature set so one can disable/enable auto-refresh manually in the UI.

Haarolean avatar Apr 09 '25 08:04 Haarolean