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

Update index after saving a doc #460

Open
skjerns opened this issue May 29, 2022 · 3 comments
Open

Update index after saving a doc #460

skjerns opened this issue May 29, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@skjerns
Copy link
Member

skjerns commented May 29, 2022

The changes introduced in #440 made stuff much faster, that's great!

However, when changing a rental status, the changes only appear in the paginated TableView after reloading the tab/page. Would it be possible to force a reload/reindexing after saving/chaning a doc?

See here for example
Animation

@daniel17903
Copy link
Contributor

Hm, I cannot reproduce this issue. Which browser and which version of the code did you use? Looks like the 111-complete-return-button branch? Were there any errors in the browser console?

@skjerns
Copy link
Member Author

skjerns commented May 31, 2022

The problem seems to persist in the master branch and also with chrome :-/ no errors in the console.

I've encountered the error also a couple of times when doing shifts, so it's definitely there.

@daniel17903
Copy link
Contributor

daniel17903 commented May 31, 2022

Currently this works by refreshing the page

when changes in the database occur

I did it this way so that

  • a refresh only occurs if something actually changes
  • a refresh also occurs if something was changed by another device

My best guess is that this change listener does not always work. We could investigate that by adding some logging to the change listener.

Or we could simplify this whole refresh logic by only refreshing when the user clicks "Speichern". However, then we would not refresh when something was changed on another device. I think this might be a good solution? What do you think?

@skjerns skjerns added the enhancement New feature or request label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants