WebUI and API are inconsistent

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

WebUI and API are inconsistent

Dinar Valeev
Hi,
I see weird inconsistency of results returned by WebUI and api.

On WebUI [1] I see:
<version>20160321</version>

At the same time API returns:
osc api /source/openSUSE:Factory:PowerPC/_product/openSUSE.product |
grep \<version\>
        <version>20160108</version>

I tried to trigger a product service, but that didn't help.

[1] https://build.opensuse.org/package/view_file/openSUSE:Factory:PowerPC/_product/openSUSE.product?expand=1
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: WebUI and API are inconsistent

Andreas Schwab
Dinar Valeev <[hidden email]> writes:

> osc api /source/openSUSE:Factory:PowerPC/_product/openSUSE.product |

That shows the unmerged file contents (same as osc cat ...).

> I tried to trigger a product service, but that didn't help.

That doesn't modify the _product package, it only regenerates the
_product:* packages.

Andreas.

--
Andreas Schwab, [hidden email]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: WebUI and API are inconsistent

Dinar Valeev
On Tue, Mar 22, 2016 at 10:22 PM, Andreas Schwab <[hidden email]> wrote:
> Dinar Valeev <[hidden email]> writes:
>
>> osc api /source/openSUSE:Factory:PowerPC/_product/openSUSE.product |
>
> That shows the unmerged file contents (same as osc cat ...).
Any suggestions how to get it solved? Currently dashboard [1] is using it,
and shows misleading snapshot version.

[1] https://build.opensuse.org/project/dashboard/openSUSE:Factory:PowerPC

>
>> I tried to trigger a product service, but that didn't help.
>
> That doesn't modify the _product package, it only regenerates the
> _product:* packages.
>
> Andreas.
>
> --
> Andreas Schwab, [hidden email]
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: WebUI and API are inconsistent

Andreas Schwab
Dinar Valeev <[hidden email]> writes:

> On Tue, Mar 22, 2016 at 10:22 PM, Andreas Schwab <[hidden email]> wrote:
>> Dinar Valeev <[hidden email]> writes:
>>
>>> osc api /source/openSUSE:Factory:PowerPC/_product/openSUSE.product |
>>
>> That shows the unmerged file contents (same as osc cat ...).
> Any suggestions how to get it solved?

Use the same as the WebUI (hint: look at the query options).

Andreas.

--
Andreas Schwab, [hidden email]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: WebUI and API are inconsistent

Dinar Valeev
On Tue, Mar 22, 2016 at 10:32 PM, Andreas Schwab <[hidden email]> wrote:

> Dinar Valeev <[hidden email]> writes:
>
>> On Tue, Mar 22, 2016 at 10:22 PM, Andreas Schwab <[hidden email]> wrote:
>>> Dinar Valeev <[hidden email]> writes:
>>>
>>>> osc api /source/openSUSE:Factory:PowerPC/_product/openSUSE.product |
>>>
>>> That shows the unmerged file contents (same as osc cat ...).
>> Any suggestions how to get it solved?
>
> Use the same as the WebUI (hint: look at the query options).
Thanks, It seems I've found a way[1] to fix it.

[https://github.com/openSUSE-Team/obs_factory/pull/52]
>
> Andreas.
>
> --
> Andreas Schwab, [hidden email]
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]