Skip to content

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Jun 16, 2025

We claim on the user-facing maintenance page that it'll automatically refresh when service is restored. However the JS-based watcher wasn't loading because depends on common1.

Not sure how long this was broken for, but probably going back at least several majors (maybe more).

Still only a partial solution to the broader problem, but addresses the scenario that occurs when toggling maintenance mode during operations that do not use the built-in Updater2.

Follow-up ideas:

  • Adjust and clean up template design and language (what I was doing when I noticed this)
  • Remove dependencies on other JS assets
  • Remove dependencies on styling pulled from running system / or ?

Footnotes

  1. Since the maintenance page is "special" (and relatively simple) we should/could probably eliminate it's dependence on common. Of course the maintenance page is still stuck with styling dependencies... See next item.

  2. During normal operations, toggling maintenance mode on/off will work (and refresh automatically with this PR), but when using the standard Updater presumably it'll break due to both a loss of styling and Javascript asset access. This is because in the Updater we replace the entry points as an intermediate step. Directly related to Plain maintenance mode page #5789. Also, somewhat related to, Allow communicating expectations to users during maintenance #35787.

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards requested a review from a team as a code owner June 16, 2025 20:01
@joshtrichards joshtrichards requested review from nfebe and skjnldsv and removed request for a team June 16, 2025 20:01
@joshtrichards joshtrichards requested a review from sorbaugh June 16, 2025 20:01
Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense

@joshtrichards joshtrichards added this to the Nextcloud 32 milestone Jun 16, 2025
@joshtrichards
Copy link
Member Author

/backport to stable31

@joshtrichards
Copy link
Member Author

/backport to stable30

@skjnldsv skjnldsv requested review from a team and szaimen and removed request for a team July 1, 2025 10:43
@szaimen szaimen requested review from icewind1991 and removed request for szaimen July 1, 2025 11:12
@icewind1991 icewind1991 merged commit 21c7ae6 into master Aug 11, 2025
194 checks passed
@icewind1991 icewind1991 deleted the jtr-maint-refresh-part-1 branch August 11, 2025 09:44
@skjnldsv skjnldsv mentioned this pull request Aug 19, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants