EOS-Solutions / Gordon

Repository to manage Issues related to Gordon apps
0 stars 0 forks source link

Install apps in order of selection #59

Closed alessiopellindgm closed 3 months ago

alessiopellindgm commented 3 months ago

Is your feature request related to a problem? Please describe. In smeagol, installing or updating apps from the feed followed the app selection order and not the list view order. This is useful when you need to update many apps that are dependent using the sequence indicated by DevOps.

Describe the solution you'd like In image example, I selected the apps in this order:

  1. Common data layer
  2. Doc shipping Common Data Layer
  3. Commissions
  4. Commissions for Italy

Product

Additional context image

Stefano-Primo-EOS commented 3 months ago

Gordon sends the app to the "Core" with the selected order. Then the core, sorts and adds needed apps for the dependency resolution.

So, in your case, you can directly choose to install only the "Commission for Italy", then gordon will check: Which app is needed for this app? and it will build the dependency tree as needed

alessiopellindgm commented 3 months ago

Okay. For updating already published apps, it's the best solution and have all dependent apps correctly aligned. In development it's complicated since I don't have a released version and I can't link the dependency version correctly.

Does updating the calculated apps in the dependency tree update to the latest version app of the feed or by evaluating the minimun dependency and skip latest version? I do test and try to give you feedback.

Stefano-Primo-EOS commented 3 months ago

In the latest version, has been added a new flag in "Global Settings": "Show AppManager Advanced Options". If enabled it will show in the Service App List a new parameter: "DependecyResolutionPolicy" where the default is (as always been) "Minimum Version" but you could use also "Strict" and "Latest Version"

alessiopellindgm commented 3 months ago

Update (use "Minimum Version" and "Latest Version" ) return an error:

Log

Getting apps from Service
Retrived metadata from service (19651 ms)
Get app from service finished (2 ms)
Getting apps from Feed
Retrived metadata from feed (6 ms)
Get app from feed finished (0 ms)
Getting apps from Service
Retrived metadata from service (21335 ms)
Get app from service finished (11 ms)
Getting apps from Feed
Retrived metadata from feed (304 ms)
Get app from feed finished (1 ms)
Resolving dependencies using policy 'MinimumVersion'
This operation cannot be performed on a default instance of ImmutableArray<T>. Consider initializing the array, or checking the ImmutableArray<T>.IsDefault property.
Getting apps from Service
Retrived metadata from service (16266 ms)
Get app from service finished (0 ms)
Getting apps from Feed
Retrived metadata from feed (40 ms)
Get app from feed finished (0 ms)
Resolving dependencies using policy 'LatestVersion'
This operation cannot be performed on a default instance of ImmutableArray<T>. Consider initializing the array, or checking the ImmutableArray<T>.IsDefault property.
Getting apps from Service
Stefano-Primo-EOS commented 3 months ago

Fix in 1.0.143

alessiopellindgm commented 3 months ago

Fix in 1.0.143

Confirm.