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

Unify handling of loading state #2815

Merged
merged 3 commits into from
Feb 24, 2025
Merged

Conversation

PhilippMa
Copy link
Contributor

Summary of changes

  • the loading state is set/unset from the backend only
  • frontend components directly listen on the FileLoading ipc channel again, no more loading state in redux
  • add StopLoading ipc channel as a temporary solution for handling loading state on export (see Move export preprocessing to backend #2812)

Context and reason for change

  • Heavy operations requiring the use of loading state should all run in the backend to guarantee that the UI stays responsive, thus the loading state should also be controlled from the backend
  • Inconsistent handling of loading state in different components is confusing and can lead to bugs

How can the changes be tested

Check that the ProcessPopup is shown for open/export and that the import dialog properly displays logs during loading.

* the loading state is set/unset from the backend only
* frontend components directly listen on the FileLoading ipc channel again, no more loading state in redux
* add StopLoading ipc channel as a temporary solution for handling loading state on export (see issue 2812)
* error messages are not displayed in dialog otherwise
@PhilippMa PhilippMa force-pushed the refactor/unify-loading-state branch from 380ccec to 7c23e99 Compare February 24, 2025 18:02
@PhilippMa PhilippMa merged commit 7145e7d into main Feb 24, 2025
5 checks passed
@PhilippMa PhilippMa deleted the refactor/unify-loading-state branch February 24, 2025 18:10
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

Successfully merging this pull request may close these issues.

2 participants