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

user settings - scheduled/manual refresh from within the settings dialog doesn't work properly #1450

Open
sgratch opened this issue Jun 15, 2021 · 4 comments

Comments

@sgratch
Copy link
Member

sgratch commented Jun 15, 2021

If user settings dialog is open and no changes were done by the user but a property was changed not by the current browser (other browser or via rest) and a refresh is activated to fetch backend data (manual or scheduled) ->
then instead of updating the dialog relevant fields based on backend values , the 'save' button becomes enabled. Only leaving and re-entering the settings dialog will update the fields as it should.

We should either block manual/scheduled refreshes while settings dialog is opened or just fetch all data from backend and update ui fields. if no changes were done on ui (so no conflicts). As it is now- it seems strange.

We can also consider adding a message so that the user will know and suggest him to re-enter the dialog.

@michalskrivanek
Copy link
Member

it was discussed a long time ago - this is such a corner case it's really not worth the effort, the whole "background refresh" shouldn't have been implemented....

@sgratch
Copy link
Member Author

sgratch commented Jun 15, 2021

@michalskrivanek Exactly, so I suggest to block the refresh while the dialog is opened. Current scenario is that once one of the backend properties were changed, the 'save' button suddenly becomes enabled without a reason. The user won't know why and leaving the dialog requires applying that all user changes are discarded which is even more strange since nothing was triggered by the user on 1st place

@michalskrivanek
Copy link
Member

i don't midn the current behavior either tbh. it will never happen in reality anyway.

@sgratch
Copy link
Member Author

sgratch commented Jun 15, 2021

i don't midn the current behavior either tbh. it will never happen in reality anyway.

OK, I agree it's a corner case but it's also easy to fix (if current page is settings -> skip refresh).
We are not planning on handling it for 4.4.7 anyway.

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