On Wednesday 31 of October 2012 15:00:48 Johannes Renner wrote:
> Hello,
> 
> We found that the list of installable packages for a given system differs if
> you either ask the API (via system.listLatestInstallablePackages) or if you
> go to the Web UI (Systems -> [choose a system] -> Software -> Packages ->
> Install).
> 
> After looking into it, I found there is two different queries used for this
> (both to be found in Package_queries.xml):
> 
> 1. system_latest_all_available_packages (API)
> 2. system_available_packages (Web UI)
> 
> My questions:
> 
> - Query (1.) seems to return all available versions of a package, which
> means 'all' rather than 'latest'? I think we could have two separate API
> calls, one for 'latest' and one for 'all', but 'latest_all'?

Right, the naming is strange.

> - Shouldn't we use the same query for API and Web UI in order to get the
> same results here?

I'd say we do not want to get the same results.
As people are used to the WebUI, they may select and install any version of an 
available package. I wouldn't change that.

If an API is called listLatestInstallablePackages, it shall definitelly return 
list of *latest* installable packages.

But what we could do is we can introduce a 
listAllInstallablePackages/listAvailableInstallablePackages API, that could 
reuse the WebUI query. :-)


Regards,
-- 
Tomas Lestach
RHN Satellite Engineering

> 
> Thanks,
> Johannes

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to