-
Notifications
You must be signed in to change notification settings - Fork 92
Wizard: fallback to displaying all parameters and scriptts if a stable release is not available #3153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…e is not available
Reviewer's Guide by SourceryThis pull request enhances the Wizard component by implementing fallback mechanisms for firmware versioning and script loading. It ensures that if a stable firmware version is unavailable, the system falls back to beta or development versions. Similarly, if version-specific scripts are not found, the system defaults to displaying all Rover scripts. Additionally, the parameter set filtering logic was modified to display all parameters if the firmware version is 'DEV' or 'BETA', and the sanitized name of the parameter set was modified to include the last 3 parts of the path. Sequence diagram for fetching firmware version with fallbacksequenceDiagram
participant Wizard Component
participant availableFirmwares
participant SemVer
Wizard Component->>availableFirmwares: fetchLatestFirmwareVersion()
availableFirmwares-->>Wizard Component: Firmware[] (stable, beta, dev)
alt stable firmware found
Wizard Component->>SemVer: new SemVer(stable.name.split('-')[1])
SemVer-->>Wizard Component: SemVer object
else beta firmware found
Wizard Component->>Console: console.warn('No stable firmware found, falling back to beta')
Wizard Component-->>Wizard Component: return 'BETA'
else dev firmware found
Wizard Component->>Console: console.warn('No stable or beta firmware found, falling back to dev')
Wizard Component-->>Wizard Component: return 'DEV'
else no firmware found
Wizard Component->>Console: console.error('No firmware found')
Wizard Component-->>Wizard Component: return undefined
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This allows loading navigator parameters on navigator64, and loading parameters from stable versions on beta/dev firmware