ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Chikunov <vt@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Q: Re: altrepodb - архитектура БД
Date: Sat, 18 Mar 2023 23:54:09 +0300
Message-ID: <20230318205409.33b7ebrjrrl7h4rp@altlinux.org> (raw)
In-Reply-To: <c8ddc57a-312d-620d-33e3-a5b0d237c686@gmail.com>

Leonid,

On Sat, Mar 18, 2023 at 11:36:01PM +0300, Leonid Krivoshein wrote:
> Привет!
> 
> 
> On 3/18/23 20:27, Vitaly Chikunov wrote:
> > Hi,
> > 
> > On Mon, Aug 15, 2022 at 10:42:30AM +0300, Danil Shein wrote:
> > > АПИ публичное и доступно тут: https://rdb.altlinux.org/api/
> > Подскажите, пожалуйста, каким запросом можно вывести тот же список
> > заданий, что выводится командой:
> > 
> >    ssh girar task ls --user=kernelbot --brief
> > 
> 
> Я в этом мало что понимаю, но вижу одну закономерность :-)
> 
> $ ssh girar task ls --user=kernelbot --brief |wc -l
> 25
> 
> $ curl -s -H 'accept: application/json' -X 'GET' \
> 'https://rdb.altlinux.org/api/task/progress/find_tasks?input=kernel-image&owner=kernelbot&state=EPERM,FAILED&tasks_limit=10000'

Да, в принципе, EPERM,TESTED,FAILED,NEW должно хватить.

Спасибо!



> \
>    |jq -C |less -r
> 
> 
> В начале вывод присутствует:
> 
> "length": 25
> 
> Могу предположить, что в этом выводе есть нужная информация, но её надо
> фильтровать на стороне клиента. Да, было бы удобно иметь запрос на активные
> задания без детализации.
> 
> 
> > Спасибо,
> > 
> > ps. Где girar это gyle.altlinux.org.
> > 
> > pps. JFYI. Я попытался сам угадать нужный запрос, но не смог. Не понятно
> > что значат в описании API такие фразы
> > 
> >    "Get branches list for last tasks"
> > что такое "last tasks".
> > 
> >    "Task search by ID, task owner or component."
> > 
> > "Компонента" нет в списке параметров.
> >    "branch  string  (query)	  name of packageset"
> > 
> > Что значит что branch это packageset?
> > 
> > Чем отличаются эти два запроса:
> > 
> >    "Task search by ID, task owner or component"
> >    "Task search by ID, owner, repo, state and component."
> > 
> > при этом, в первом запросе есть поле state, а во втором нет.
> 
> 
> -- 
> WBR, Leonid Krivoshein.
> _______________________________________________
> Devel mailing list
> Devel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel


  reply	other threads:[~2023-03-18 20:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-18 17:27 Vitaly Chikunov
2023-03-18 20:36 ` Leonid Krivoshein
2023-03-18 20:54   ` Vitaly Chikunov [this message]
2023-03-20  5:42   ` Anton Farygin
2023-03-20  9:10   ` Vitaly Chikunov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230318205409.33b7ebrjrrl7h4rp@altlinux.org \
    --to=vt@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git