Question about upgrade from v3.8 to v5

I haven’t tested v5 yet but just moving from 3.8.4 to 4.2.21 we did have to rework and debug a fair amount of code. It really depends on your particular implementation. URL parameters changed some time around 3.9 to prevent injection attacks, for example, and that was one thing we had to fix.

You’ll also have to change how your dashboard loads its pages, as that changed in 4.x with the addition of Get-UDPage. That will be the first thingto fix, as before we modified our code it wouldn’t deploy at all.

Here’s an example of how our main .ps1 file looks now:

$AppParams = @{
    Title = 'Our Dashboard'
    Theme = . "$Repository\themes\theme.ps1"
    Stylesheets = '/assets/global_styles.css'
    Pages = foreach ($Page in (Get-ChildItem -Path "$AppRoot\pages").BaseName) {
        Get-UDPage -Name $Page
    }
}

New-UDApp @AppParams

I will say it was 100% worth it. Happy upgrading!