Details
-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:
-
Story Points:1.5
-
Epic Link:
-
Sprint:Fall 6 : 28 Oct to 8 Nov, Fall 7 : 11 Nov to 22 Nov
Description
On changing the AppDescription.md file for different versions of a single app, the repository.xml gets updated. However, the description displayed in App Manager does not reflect these changes for each versions. Kindly refer to the issue linked to this ticket and review the comments and screenshots for more clarification.
Attachments
Issue Links
- relates to
-
REL-29 App Manager should show & install correct App versions from App Store
- Fix Requested
Observations made :
As per the below functions in BundleInfoManager.java, the app is updated only if the version is same. So might have to change the logic here.
public boolean isUpdateable(Bundle bundle) {
{ return repoBundle.getVersion().compareTo(installedBundle.getVersion()) == 1; }if (Arrays.asList(bundleContext.getBundles()).stream()
.anyMatch(installedBundle -> installedBundle.getSymbolicName().equals(bundle.getSymbolicName()))) {
Bundle installedBundle = Arrays.asList(bundleContext.getBundles()).stream()
.filter(b -> b.getSymbolicName().equals(bundle.getSymbolicName())).findFirst().get();
return repositoryManagedBundles.stream()
.filter(repoBundle -> repoBundle.getSymbolicName().equals(bundle.getSymbolicName()))
.anyMatch(repoBundle ->
);
{ return false; }} else
}
public Bundle getLatestBundle(Bundle bundle) {
{ return o1.getVersion().compareTo(o2.getVersion()); }if (isUpdateable(bundle)) {
List<Bundle> updateableVersions = repositoryManagedBundles.stream()
.filter(b -> b.getSymbolicName().equals(bundle.getSymbolicName()))
.collect(Collectors.toList());
Collections.sort(updateableVersions, (Bundle o1, Bundle o2) ->
);
{ return updateableVersions.get(updateableVersions.size() - 1); }if (!updateableVersions.isEmpty())
}
return bundle;
}
[~aloraine]