Dnn.Platform icon indicating copy to clipboard operation
Dnn.Platform copied to clipboard

[Enhancement]: Improve UI for upgrading DNN

Open donker opened this issue 3 months ago • 5 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Description of problem

Since version 10.1.0 DNN will commence upgrading if

  1. There is an appropriate upgrade package in App_data/Upgrade
  2. The SuperUser clicks on the "UPGRADE" label under the DNN logo at the top left of the screen

This is IMHO undersold as to how important this change is moving forward. We need to get everyone to understand that this is how upgrades should be done. However, this is begging for an improved experience.

Description of solution

My proposal is as follows:

  1. On the "Servers" page of the PB we add a new tab called Upgrades
  2. On that new tab we show a list of uploaded packages under the App_Data/Upgrade folder
  3. The user can upload/delete files from the UI
  4. The user can kick off the upgrade from that screen

I also suggest that

  1. We add the ability to show releases from Github and provide a "cloud download" button in place.
  2. We no longer release the Upgrade package

The latter will ensure everyone moves to the new installation mechanism.

Description of alternatives considered

No response

Anything else?

No response

Do you plan to contribute code for this enhancement?

  • [x] Yes

Would you be interested in sponsoring this enhancement?

  • [ ] Yes

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

donker avatar Sep 30 '25 09:09 donker

This is a surprise to me. I just tested a clean installed of DNN v10.01.00 and clicking the UPDATE link below the DNN logo in the PersonaBar just opens the DNN project on GitHub in a new window/tab.

I also then downloaded from Releases, DNN_Platform_10.1.1_Upgrade.zip and put it in the folder as you described above: Image

I tried reloading the site, logging in as host, etc. Nothing I did triggered an upgrade. I also tried renaming the file from .zip to DNN_Platform_10.1.1_Upgrade.resources, reloaded again, etc. Nothing initiated an upgrade.

Image

jeremy-farrance avatar Sep 30 '25 14:09 jeremy-farrance

When the upgrade package is in place, the link to GitHub will change and become a button that kicks off the upgrade. There is no visual indication that anything is different. Are you sure that the Upgrade button continues to redirect to GitHub after putting the upgrade zip in the App_Data/Upgrade folder?

(This was added in https://github.com/dnnsoftware/Dnn.Platform/pull/6599).

bdukes avatar Sep 30 '25 15:09 bdukes

Ok, a little more playing and I did get it to work with DNN_Platform_10.1.1_Upgrade.zip in the folder. It was a bit of a shock though, hovering on the UPDATE link showed nothing in the brower's status (like you see pictured above with the github link), and when clicked, NOTHING happened. But I waited... right about 40 seconds I was surprised to see the normal DNN upgrade screen asking for host login to go from 10.1.0 to 10.1.1.

I realize this post is about providing a UI, so my first tiny suggestion is that - when there is a zip detected - the link change from red UPDATE to a green UPGRADE.

Anyhow, I am really enthusiastic about this addition to DNN, seems to provide a lot of options in the future for pre-upgrade steps, patches, etc.

jeremy-farrance avatar Sep 30 '25 16:09 jeremy-farrance

Putting it there I think was temporary and @donker is proposing building a proper UI for this in the servers module. Maybe the upgrade link could open that area of the persona bar or something like that...

valadas avatar Sep 30 '25 17:09 valadas

Yes. The intent of this post is not to point out the failings in the current UI, but to open a discussion on what a new UI would look like. Which features we want to implement. Etc.

donker avatar Sep 30 '25 18:09 donker