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

Some poll is clearing the input fields of the Equipment exported actions #1141

Open
gabadinho opened this issue Nov 27, 2023 · 2 comments
Open

Comments

@gabadinho
Copy link

gabadinho commented Nov 27, 2023

Hello!

I noticed that when using one of the "exports" actions of some hardware object in the Equipment tab, the input fields get cleared every 5 seconds or so. I can see on the server running on the foreground that there's some geventwebsocket.handler call so I'm assuming some kind of polling.

Since I just barely started with React/Javascript I have no idea of where to even start to look at this. :-/
Anyone else has noticed this issue? I guess this feature is not really being used often, and even less with multiple parameters, so I assume it has always been like this but most people aren't really affected.

Cheers and thanks,
José

VID_20231124_151423677.mp4
@meguiraun
Copy link
Contributor

maybe this line, it refreshes the session every 9 s (not 5... ?), which maybe is what I see in the logs in your terminal. Can you change this number and see?

@gabadinho
Copy link
Author

Thanks Mikel.

I already had increased that value (should have mentioned that in my original post...) and it doesn't affect the issue I´m having.
Meanwhile I measured the poll interval and it's 10 seconds (rather close to that 9-second session refresh actually...).

I'm still running the development server (honestly I don't know how to run a production server... I followed some instructions that mention to install "serve" and use that after "npm run build", but then that server doesn't even pass the MXCuBE initial logo to the login screen). Not sure if that can have something to do with this...

Cheers, José

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants