Bug 158657 - Revamp the online update dialog
Summary: Revamp the online update dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Automatic-Updater
  Show dependency treegraph
 
Reported: 2023-12-12 10:15 UTC by Heiko Tietze
Modified: 2024-05-22 14:09 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2023-12-12 10:15:51 UTC
With the latest changes to the online update mechanism the existing dialog as shown here 
 https://ask.libreoffice.org/t/how-to-update-libre-writer-there-is-no-update-options-button-missing-online-update becomes more crowded as shown in https://pasteboard.co/G2LZ2NuLWXJo.png.

I struggle with 
[x] Check for updates automatically
[ ] Enable automatic updates

If the two options are mutually we can use radio buttons, if the automatic update just applies the update we could change the wording (and make it depending ie. disabled from the "check for updates" option).

As a user I don't know what to do with the download destination - expect the application to use the default dir, and if experts/admins want/need to change this it could be an expert option.

The same applies to "[ ] Send OS version...", which sounds like statistics. The updater probably wont work without knowing OS/DE but I can switch it just on/off anyway. If this is needed by average users we should find a better name (or explain in the help). Help says "Enable the check to send information about your LibreOffice version, operating system and basic hardware. This information is used to optimize the download."
We could hide the actual text with an expander.

To summarize what I have in mind:

Online Update Options
  Check for updates
   ( ) Never
   ( ) Daily
   ( ) Weekly
   (o) Monthly
   [Check Now]

  [x] Apply updates automatically

Download Channel
  (o) Use browser info
      > More info
  ( ) Use application info
      > More info
  ( ) Configure OS and hardware manually
      [Windows  v]
      [64bit    v]
(makes no sense to me, apparently it's used somehow differently)

See also https://wiki.documentfoundation.org/Development/Updater/SeeAlso#Testing_on_Linux
Comment 1 Stephan Bergmann 2023-12-12 10:44:43 UTC
(In reply to Heiko Tietze from comment #0)
> With the latest changes to the online update mechanism the existing dialog
> as shown here 
>  https://ask.libreoffice.org/t/how-to-update-libre-writer-there-is-no-update-
> options-button-missing-online-update becomes more crowded as shown in
> https://pasteboard.co/G2LZ2NuLWXJo.png.
> 
> I struggle with 
> [x] Check for updates automatically
> [ ] Enable automatic updates
> 
> If the two options are mutually we can use radio buttons, if the automatic
> update just applies the update we could change the wording (and make it
> depending ie. disabled from the "check for updates" option).

There are two features involved here:

1  --enable-online-update, for the traditional mechanism of checking for updates, notifying the user about available updates, and potentially also downloading an update's msi file (but never automatically applying such updates, but leaving that to be done manually by the user).  Most of the option pane is about this feature, from "Check for updates automatically" all through to "Privacy Policy".

2  --enable-online-upate-mar, for the Mozilla-technology-based mechanism of checking for updates periodically, downloading an update's mar file, and on the next start of soffice automatically updating the LO installation with that mar file.  The part of the option pane that is about this feature is the bottom part "Automatic Update" and "Enable automatic update".

The first feature is tried and tested for a long time now, while the second feature had rotten a bit and is now about to be resurrected.  The intent is to have the second feature available but off by default for now, let it mature for a while on LO 24.2, and eventually drop the first feature completely and have the second feature on by default.

At least technically, these two features are not mutually exclusive.  So, to have the first feature remain available for now, and the second feature to be available for the venturous users to enable and try out, the idea was to have two individual sets of checkboxes that control each of the two features individually.
Comment 2 Heiko Tietze 2024-01-26 08:35:42 UTC
If we keep most of the dialog, I think this is a simple change in the UI and easy to understand

 Online Update Options
   Check for updates
    ( ) Never
    ( ) Daily
    ( ) Weekly
    (o) Monthly
    [Check Now]
 
   [x] Apply updates automatically

Essentially it integrates the checkbox "Check for updates automatically" into the radio button list, and adds the new "Apply updates automatically" below.

The stretch goal would be to combine the auto apply and download only (aka "Download updates automatically") or to remove this auto download completely.

And I don't what sending the user agent information means regarding the update mechanism. There is only one Windows version now, and we should remove this too.
Comment 3 Philippe Cloutier 2024-03-02 14:19:37 UTC
(In reply to Stephan Bergmann from comment #1)
> (In reply to Heiko Tietze from comment #0)
> > With the latest changes to the online update mechanism the existing dialog
> > as shown here 
> >  https://ask.libreoffice.org/t/how-to-update-libre-writer-there-is-no-update-
> > options-button-missing-online-update becomes more crowded as shown in
> > https://pasteboard.co/G2LZ2NuLWXJo.png.
> > 
> > I struggle with 
> > [x] Check for updates automatically
> > [ ] Enable automatic updates
> > 
> > If the two options are mutually we can use radio buttons, if the automatic
> > update just applies the update we could change the wording (and make it
> > depending ie. disabled from the "check for updates" option).
> 
> There are two features involved here:
> 
> 1  --enable-online-update, for the traditional mechanism of checking for
> updates, notifying the user about available updates, and potentially also
> downloading an update's msi file (but never automatically applying such
> updates, but leaving that to be done manually by the user).  Most of the
> option pane is about this feature, from "Check for updates automatically"
> all through to "Privacy Policy".
> 
> 2  --enable-online-upate-mar, for the Mozilla-technology-based mechanism of
> checking for updates periodically, downloading an update's mar file, and on
> the next start of soffice automatically updating the LO installation with
> that mar file.  The part of the option pane that is about this feature is
> the bottom part "Automatic Update" and "Enable automatic update".

Thank you, but what do you mean by "an update's mar file"? I assume the option is --enable-online-update-mar.
Comment 4 Philippe Cloutier 2024-03-02 14:36:55 UTC
Thank you Heiko
I do not see the last fieldset in your screenshot ("Automatic Update") in my LibreOffice 24.2.1.2 on Windows 11, but this does need revamping, notably due to the first 2 (broken) section titles.

Your proposal is an improvement, but no fieldset should be named "Online Update Options". The panel is named "Online Update". All of it are "Online Update Options".
Comment 5 Philippe Cloutier 2024-03-02 15:24:10 UTC
(In reply to Philippe Cloutier from comment #4)
> Thank you Heiko
> I do not see the last fieldset in your screenshot ("Automatic Update") in my
> LibreOffice 24.2.1.2 on Windows 11, but this does need revamping, notably
> due to the first 2 (broken) section titles.

Automatic updates being experimental, one needs to have experimental features enabled to see that field. See "Tools" > "Options" > "Advanced" > "Enable experimental features".

For more information on Online Update's development, see https://wiki.documentfoundation.org/Development/Online_Update
Comment 6 Stephan Bergmann 2024-03-04 06:55:57 UTC
(In reply to Philippe Cloutier from comment #3)
> (In reply to Stephan Bergmann from comment #1)
> > 2  --enable-online-upate-mar, for the Mozilla-technology-based mechanism of
> > checking for updates periodically, downloading an update's mar file, and on
> > the next start of soffice automatically updating the LO installation with
> > that mar file.  The part of the option pane that is about this feature is
> > the bottom part "Automatic Update" and "Enable automatic update".
> 
> Thank you, but what do you mean by "an update's mar file"?

That file contains the actual data to carry out an update on the client side, sent from LO's update server (all "behind the user's back", without needing user interaction).

> I assume the option is --enable-online-update-mar.

Yes, sorry for the typo.  (And for LibreOffice 24.2 the feature in addition also is experimental, as you describe in comment 5).