Bug Description
The “Upgrades Available” banner does not appear when the deployed version is 2.0.9 and a newer version 2.0.10 is available.
System Setup
Open Edge Orchestrator - v3.1.3
Reproducible Steps
- Deploy application with version 2.0.9
- Create application with version 2.0.10 available in the UI
- Observe that the “Upgrades Available” label does not appear
Expected Behavior
When the latest available version is 2.0.10 and the currently deployed version is 2.0.9, the UI should show the “Upgrades Available” indicator.
Actual Behavior
The indicator does not appear.
The system fails to recognize 2.0.10 as newer than 2.0.9.
But when User clicks on Upgrade, the newer version is visible in the dropdown.
Root Cause Analysis
(Suspecting) Version comparison seems to be done using string comparison instead of semantic versioning.
"2.0.10" < "2.0.9" // true when compared lexicographically