Skip to content
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

UI refresh causes sorting order to reset #20306

Closed
4 tasks done
lindhe opened this issue Apr 1, 2024 · 5 comments
Closed
4 tasks done

UI refresh causes sorting order to reset #20306

lindhe opened this issue Apr 1, 2024 · 5 comments
Labels

Comments

@lindhe
Copy link

lindhe commented Apr 1, 2024

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

I want to sort my list of helpers by type, and then stare at them for a long time. I cannot do that, because Home Assistant keep resetting the sort order of the list.

Describe the behavior you expected

Every few minutes, the Home Assistant GUI performs some sort of state refresh that causes the sorting of lists to reset to their default sort order. It seems to be occurring with irregular intervals. I've observed intervals ranging from about 1 minute to slightly less than 5 minutes.

Steps to reproduce the issue

  1. Go to a list of items, e.g. your helpers: https://my.home-assistant.io/redirect/helpers/
  2. Click once on "Type" to sort the helpers by type.
  3. Wait for a few minutes (typically less than 5 minutes).
  4. Observe how the list is no longer sorted by type, but instead by name.

What version of Home Assistant Core has the issue?

core-2024.3.3

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Firefox 124.0.1 (64-bit)

Which operating system are you using to run this browser?

Ubuntu 22.04

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

⚠️ The resource at “https://home.lindhe.io/static/fonts/roboto/Roboto-Regular.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly.

⚠️The resource at “https://home.lindhe.io/static/fonts/roboto/Roboto-Medium.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly.

Additional information

The refresh is especially pronounced when booting in safe mode, because then Home Assistant displays the "Safe mode" pop-up on refresh, in addition to resetting the sorting of the lists:

Screenshot from 2024-04-01 13-39-14

I'm not sure if the pop-up is supposed to show up at random intervals or if that is part of the same bug.

@bramkragten
Copy link
Member

It seems like something is causing a refresh of the page, is that correct?

@lindhe
Copy link
Author

lindhe commented Apr 3, 2024

Seems so. But its not my browser, I tried a fresh brower and incognito mode.

@ildar170975
Copy link
Contributor

ildar170975 commented Apr 4, 2024

I managed to reproduce it.
Chrome.
Opened "Helpers" page in a browser's tab, sorted by "type", then did smth in another browser's tabs.
Then came back to the tab, it was refreshed automatically right after opening back to "sorted by Name".
I wonder could it be a browser's issue?

@lindhe
Copy link
Author

lindhe commented Apr 5, 2024

I have it in Firefox too, so probably not a browser problem.

The strange thing is that I see no new packets being sent during the refresh event, so it's not a full refresh. Just some sort of javascript controlled state, I guess.

BTW: Since 2024.4.0 had a major overhaul of the table views, I tried it again and it's still there.

Copy link

github-actions bot commented Jul 4, 2024

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jul 4, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants