"There is an update for Vikunja available!" when there is not #2007

Closed
opened 2023-01-24 10:32:28 +00:00 by jbd7 · 2 comments

Description

Description: Vikunja FE shows a modal for an available update. Clicking on it has no impact. This modal would always come back every few days.

Steps to reproduce

  • Log in Vikunja
  • Click on username in top left, About, and note down the versions (0.20.2 for FE, 0.20.1 for API)
  • Notice the "There is an update for Vikunja available!" modal at bottom of page (see attached screenshot) and click on "Update Now"
  • The modal disappears and the page refreshes
    • Click on username in top left, About, and note down the versions

Actual behavior

  • The versions are the same as before the update

Expected behavior

  • The version number have increased, because an update took place

More likely expected behavior

  • There is no update pushed on https://kolaente.dev/vikunja/frontend/releases in the last month, and my instance is up to date. Therefore, I would say that the more likely expected behavior is to NOT display the update available, when there is no update available.

Additional notes

  • I think on 0.19 this modal was on top of the screen, next to the search button, and it has moved at the bottom of the screen with 0.20.
  • Knowing Vikunja has 2 parts (FE and API), the modal could be clearer: which part has an update? Also, when I click "Update now", do I expect Vikunja to self-update and restart the service? When it says an update is available, does it mean it already downloaded the package and it only needs unpacking? If it's about the FE, what if the Vikunja service doesn't have permission to edit FE files in the webserver directory? Etc.

Vikunja Frontend Version

0.20.2

Vikunja API Version

0.20.1

Browser and version

Chrome Version 108.0.5359.125 (Official Build) (64-bit)

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

### Description **Description**: Vikunja FE shows a modal for an available update. Clicking on it has no impact. This modal would always come back every few days. **Steps to reproduce** - Log in Vikunja - Click on username in top left, About, and note down the versions (0.20.2 for FE, 0.20.1 for API) - Notice the "There is an update for Vikunja available!" modal at bottom of page (see attached screenshot) and click on "Update Now" - The modal disappears and the page refreshes - - Click on username in top left, About, and note down the versions **Actual behavior** - The versions are the same as before the update **Expected behavior** - The version number have increased, because an update took place **More likely expected behavior** - There is no update pushed on https://kolaente.dev/vikunja/frontend/releases in the last month, and my instance is up to date. Therefore, I would say that the more likely expected behavior is to *NOT* display the update available, when there is no update available. **Additional notes** - I think on 0.19 this modal was on top of the screen, next to the search button, and it has moved at the bottom of the screen with 0.20. - Knowing Vikunja has 2 parts (FE and API), the modal could be clearer: which part has an update? Also, when I click "Update now", do I expect Vikunja to self-update and restart the service? When it says an update is available, does it mean it already downloaded the package and it only needs unpacking? If it's about the FE, what if the Vikunja service doesn't have permission to edit FE files in the webserver directory? Etc. ### Vikunja Frontend Version 0.20.2 ### Vikunja API Version 0.20.1 ### Browser and version Chrome Version 108.0.5359.125 (Official Build) (64-bit) ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
jbd7 added the
kind/bug
label 2023-01-24 10:32:28 +00:00
Owner

The update dialog is only used to update the frontend files cached in your browser. When the dialog is available it has already downloaded the new files quietly in the background and only needs to switch them. Hence the reload when you click on it.

The dialog might appear multiple times due to browsers not properly invalidating old cached files. That might explain as well why you already had the newest version in the "about" modal.

Vikunja does not update anything on the server by itself.

The update dialog is only used to update the frontend files cached *in your browser*. When the dialog is available it has already downloaded the new files quietly in the background and only needs to switch them. Hence the reload when you click on it. The dialog might appear multiple times due to browsers not properly invalidating old cached files. That might explain as well why you already had the newest version in the "about" modal. Vikunja does not update anything on the server by itself.
Author

Thanks, I cleared the website cache and the "update available" modal didn't return. It's been a few hours.

FYI, it happened with the latest Chrome browser version on Android and on Windows.

Thanks, I cleared the website cache and the "update available" modal didn't return. It's been a few hours. FYI, it happened with the latest Chrome browser version on Android and on Windows.
jbd7 closed this issue 2023-01-25 14:08:48 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#2007
No description provided.